PDA

View Full Version : List Component attach external Icons


andyman3000
10-15-2004, 06:35 PM
Hi,

I have a strange Problem:
I am programming an XML-based AddressBook in Flash using external Class Files.
When I want to attach Icons to my ListBox it only works if I give them an identifier and export them into the first frame which makes the first frame too big and will only let my preloader popup after 64kb have been already loaded.

I read a lot about the preloader problem and I managed to reduce the amount of bytes in the first fame quite a bit by moving the import of my external classfiles to a later frame.

However when I tried unchecking "export into first frame" for the library items and used a "skipped frame" (a frame which is not shown but contains all the icons and components), my icon-function to attach the icons to the list did not work anymore. No icons get aztached to the list. I cant use attachMovie on the icons either.

Has anyone experienced something similar?

andyman3000
10-15-2004, 06:52 PM
Sorry guys,

sometimes you just ask a little too early. So here is the solution:

The List.iconFunction works fine when you have the icons exported in the first Frame. I chose to make my Icons graphic symbols as i did not see a need to make them MovieClip. When yopu do that the icons will not work once you uncheck the "export into first frame" box.

The icons MUST be MovieClips! Graphic symbols wont work.
(That's of course why attachMovie didnt work wither but I was just focussing at the wrong side of the problem so I just did not consider that).