If I have three different boxes in my library, all with the same dimentsions, what I am trying to do on rollover of three buttons is change the box using actionscript on rollover, can anyone help me achieve this, and would it be possible to fade the change in?
I have three movie clips all the same size, so perfect for a simple swap, but only one on the stage at any one time.
So my requirement is to swap the movie clip item with the second and third depending on which button is pressed or even just on hover.
This make sense, this would need to be swapped using action script, and not an external movie clip loaded into a container, but the elements are in the same movie due to size
Ive never heard of a swapMovie-ish function.
Im affraid there isnt… :ne:
Maybe you could make a movieclip and attach those mc’s to it.
So you add this code to each button:
mcHolder.attachMovie("linkageName", "currMc", 0);
But ofcourse other linkage names per button/mc.
I believe they will replace eachother this way.
Becouse their inscance-names are the same: [COLOR=Red]“currMc”[/COLOR]
But why dont you place those 3 mc’s in another mc?
Every one on a different keyframe…
Then add some gotoAndStop actions to those buttons…