Copy link to clipboard
Copied
I have a project that has a winter scene and a summer scene. There are two buttons: one to click on the winter and another to click on the summer. The movie clips are of animals on the two scenes, winter versions and summer versions of the animals. I have managed to make this work so that you can click on the winter button, and you can click on a winter animal, it zooms in, then you click on it again to make it zoom back out. Our clientele would like to be able to click on the winter animal, have it zoom in, then, they would like to click on the summer button so that they can see the same animal, zoomed in, in its summer version. It's not working...any hints at coding on this?
Would I add it after this, and how could I structure it? Would I have to name each movie clip? I really have no idea how to tackle this.
function playInstance(e:Event)
{
var m:MovieClip = MovieClip(e.target);
// move the background forward to cover previous clicked-on instances
m.parent.addChild(faded_background);
// move this child to the top;
m.parent.addChild(m);
// play;
m.play();
rollOutSetFilter(m);
}
Copy link to clipboard
Copied
You will have to explain how you have things designed. For myself, I see nothing in your code that either selects different scenes or zooms in on anything.
Copy link to clipboard
Copied
Above is the link to the multimedia I created.
The code exists in a master page, also code for the two different scenes (winter and summer), and a bit of code on each mc of the animals (that's where I just used tweening and when the user clicks on the animal_mc, it enlarges - when they click on the animal_mc again, it diminishes and they can again click on another animal).
The problem is that when the user wants to just toggle between one animal, but the two different seasons, they don't end up on the same animal in the different scene. It's actually a huge amount of code - shall I paste it and label it here?
Thank you!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now