im passing some data into a tilelist component, flash AS3 file. specifically a video playlist (thumbnails + description + datasource paths), all of that works great and can be seen at the top of the page here: brs.intunemedia.com
i want to hack in some added functionality into the tilelist and i seem a bit confused on where to start or if it is possible. specifically i want to add some buttons into each of the tile list items (small plus sign button) that saves the selected item into a playlist.. has anyone successfully built in added functionality into a tilelist, and if so, do you have source or a link explaining how? i could put some buttons into the skin, but im not sure how id go about attaching them in a way that each item would know which cell it is clicked from and be able to do something with it accordingly
ive dug into the components skin a bit and have changed that up (just the look and feel).
if you want to see the source of what im doing, that is here: brs.intunemedia.com/bobPlayerPHP.fla
any help or links in the right direction, majorly appreciated. thanks d
Well, the Tile List (I wasn't even sure what that was, I thought you meant datagrid) borrows from the List Class so all styling needs to be there. I know you can add what you want because I've done it in AS2. (I haven't in AS3 yet)....but here ya go.....
The following example creates a list with an icon for each item. A symbol named RedBox must exist in the library and have "Export for ActionScript" toggled in its symbol properties: import fl.data.DataProvider; import fl.controls.List;
var dp
ataProvider = new DataProvider();
dp.addItem( { iconSource:RedBox, label:"Item 1" } );
dp.addItem( { iconSource:RedBox, label:"Item 2" } );
dp.addItem( { iconSource:RedBox, label:"Item 3" } );
var list:List = new List(); list.iconField = "iconSource"; list.dataProvider = dp; addChild(list);
So your dataProvider could be anything really (our AS2 system read .csv data) and you can have RedBox, BlueBox, whatever. Adding a Button is possible; it's all defined by what you tag as the appropriate "iconField". I can't help any further.
(our system added red lights and green lights for real time functions from the car diagnostic computer. It sucked and was a pain in the ass, so good luck. 