Groups | Blog | Home
all groups > flash actionscript > december 2006 >

flash actionscript : Loading Bitmap Symbol from Library?


flashgruven
12/14/2006 7:45:30 PM
What is the proper way to display a bitmap Graphic Symbol (eg. jpg) from the
library onto a MovieClip using ActionScript??

My project has 10 bitmaps that represent state and at runtime I want to
display that the appropriate bitmap on a MovieClip based upon the state.

I'm pretty new at this and everything I'm finding is for loading external
bitmaps.

TIA,
g
Metro Media
12/14/2006 9:47:19 PM
First convert the pics to movie clips
then right click on them in the library and select properties.
Then check the export for actionScript box and give it an identifier name

once you have done this for all of them you can use attachMovie to load them
into another movie clip like this:



MyButtton.onRelease = function(){
holderMC.attachMovie("IdentifierName", "new name", 99);
}
AddThis Social Bookmark Button