flash actionscript:
Tried to post this a second ago but for some reason it did not take, So if
this is rehash, sorry
Need help with the following
First the layout.
On the stage in frame 1 I have three buttons, a red, green and yellow button.
Also on the stage I have a circle outline instance named circleOutline. In my
library I have three more circle instances they are circleRed, circleGreen and
circleYellow. The circle instances are all made from bitmap files and not
Flash drawings and all have the same dimensions and registration as
circleOutline. The movie is 1 frame in length.
The question is...
What I want to do is to be able to click on the red button and somehow swap
out the circleOutline instance with the circleRed instance in the library,
without navigating to another frame in the movie.
I do not want to do this for example
on (release) {
gotoAndStop(5);
}
and have frame 5 have the redCircle instance on it.
If anyone knows Lingo a simple Lingo statement woul be
on mouseup
sprite(1).member = "redCircle"
end
The only thing I can figure is to make seperate .swf files and write a code
that loads circleOutline.swf first and then loads the other color .swf files
into the appropriate layer when needed
example
on (release) {
loadMovieNum("circleRed.swf", 1);
}
My issue is that the final project will have many color option and I'm not
sure if making 40-50 color .swf files is the best way
any ideas?
Thanks!
D