TwelvestoneFlash

hacking added functionality into a tilelist component


Sign in

  • Waiting for Godot ( 720 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 4.8 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.8 k posts )
    general front end design an...
  • Back End ( 9.6 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
derrickito
 
2008-10-01

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

Storm
 
2008-10-01

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 dpkataProvider = 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. k (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. k

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFlash

hacking added functionality into a tilelist component