Join Login


Video Tutorials
Blog



Adobe CS5.5 Design Premium

List Component


By: RiverCityGraphix      Views: 3251      Share: Bookmark and Share

In this tutorial, you will learn how to use the List Component in Flash CS4.

The List Component can easily be used to create ordered items in Flash. I have seen this component used before to order songs for playlists, or offer options in forms. Overall, this component allows you to easily maximize your space while offering a sleek interface to your users.

ActionScript 3.0
listbox.addItem( { label: "Song 1" } );
listbox.addItem( { label: "Song 2" } );
listbox.addItem( { label: "Song 3" } );
listbox.addItem( { label: "Song 4" } );
listbox.addItem( { label: "Song 5" } );
listbox.addItem( { label: "Song 6" } );
listbox.addItem( { label: "Song 7" } );
listbox.addItem( { label: "Song 8" } );
listbox.addItem( { label: "Song 9" } );
listbox.addItem( { label: "Song 10" } );

listbox.addEventListener(Event.CHANGE, songselected);

function songselected (event:Event):void{
songtitle.text = event.target.selectedItem.label;
}




Free Source Files Zip