View Full Version : Play SWF files from List box Component

11-30-2011, 05:17 PM
I have trying to play SWF files using a list box, and any help would be greatly appreciated. I have the ActionScript to create, place and size the list box, and then populate the list box, but not sure how to write the code to play. Here is the code I have so far:

import fl.controls.List;
import flash.display.Loader;
import fl.containers.UILoader;
import flash.events.MouseEvent;

/*create area size and location of listbox*/
var list:List = new List();
list.move(192, 520);

list.addItem( { label: "SWFMovie1" } );
list.addItem( { label: "SWFMovie2" } );
list.addItem( { label: "SWFMovie3" } );