PDA

View Full Version : replacing sub-MCs in a larger clip?


megara133
05-14-2002, 12:20 AM
Hi everyone..I'm not sure how to explain my question, but I'll try my best..hopefully someone can understand and try to help :)

What I have is a graphic made up of many small, duplicated movie clips. I want to, at a point in the movie, replace that graphic with one that is made up of movie clips of the same size, but look different. Basically, the size and positioning of the sub-clips should be identical but the shape will change. Is there an easy way either in Flash or using Actionscript to do this? I'm not particularily looking forward to doing it manually, but I will if I have to.

Thanks in advance, guys~

edit: I forgot to add that I *have* checked the tutorials and searched the forum..so if I didn't find anything, please feel free to yell at me ;)

CyanBlue
05-14-2002, 02:16 AM
Hi...

Basically what you want to do is to exchange one of the movieclip with the different movieclip which have different look, am I getting it right???
What about creating that movieclip with a couple of sections???
For example, have a graphic of a circle in the first frame which will be the default look, and have a square at the second frame... What you need to do is create a frame lable for each sections and name it properly with stop action at the locations too...
Then, you can change the look by calling
_root.mainMC.subMC.dupMC01.gotoAndStop("Square");
How's is that??? Would this solve your problem???

HTH
Jason

megara133
05-21-2002, 01:56 PM
CyanBlue, your way worked, but I just found a "swap symbol" button in the Instance panel. THAT is exactly what I needed. As you can see, I'm not the best at Flash yet ^^;

Thanks anyway, though~

CyanBlue
05-21-2002, 05:04 PM
Hi...

Thanks for letting me know... :)
And thanks for letting me know the thing that I didn't know...
Swap symbols... Hehe... Didn't know that before... :)

One strange thing is... I was reading the online manual, and it says...
At the instance on the Stage and choose Window > Panels > Instance; or Alt-double-click (Windows) or Option-double-click (Macintosh) the instance on the Stage to bring the Instance panel forward.I did Alt+doubleclick and it did show me the Instance panel, and it opened the script editor right away... Is it the way it is supposed to be or just not on the document??? Strange, eh???

Thanks...
Jason