It should work if you create a MovieClip in the Library and place your PNG inside, then use the MovieClip Class name as icon.

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Roman Blöth wrote:
Hello folks,


since hours now I'm trying to put an image into my List...

I have built some small AS3-app that reads some data frorm an external source and populates the DataProvider for my List. One of the fields of each entry is called "iconSource" and contains the link name of a small PNG graphics included in the FLAs library (I used "export to Flash" of course) - like so: dp.addItem( { iconSource:btn_download, label:"someText", src:decodeURIComponent(aArray[0]) } );
I tell the list that "iconSource" is the iconField to use:
   playList.iconField = "iconSource";
I also do not replace the iconFunction. Within my external AS class file (where the List and it's DataProvider are created/initialized) I also declared the link name of the PNG graphics like "public var btn_download:BitmapData".

But everything that happens is that - like before I have tried to add some graphics to the list - the "label"-part of my list data is displayed, but not the PNG graphics.

Has anyone before desparately tried to achieve this and maybe could tell me what I might be missing?!


Any comment welcome,
best regards,
Roman.
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to