This content has been marked as final. Show 5 replies
the width and height parameters are irrelevant in your constructor and you should be using bd for the instance reference, not my_image (which is the class, not linkage).
Use the URLLoader class in conjunction with the Bitmap and BitmapData classes. This will allow you full dynamic control over the assets and they'll never have to be in the library although perhaps in a folder relative to the flash app or swf....
Woah, they really are irrelevant.
I could've sworn they resized the image.... Then again, there's Flex Builder 2, Flex 2 SDK, Flash CS3, FL components and MX components swirling all inside my head!
The Loader classes would be my second choice, though I really wanted to embed the images inside the SWF file and not load them externally.
if you really want them in your library, import them to your library. i'm not aware of any limitations of using library bitmaps vs loading them.
There aren't limitation by any means. I am the type of person who prefers to keep as much dynamic as I can. Unless I'm developing a GUI for an application I will use pure AS to get stuff like this done.