Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

AS3 complex scene and movie clip toggling:

Community Beginner ,
Mar 03, 2016 Mar 03, 2016

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);

}

TOPICS
ActionScript
350
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 03, 2016 Mar 03, 2016

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 07, 2016 Mar 07, 2016
LATEST

http://k12reach.org/multimedia/autoformat/get_swf.php?videoSite=reach&videoFile=mm_adaptation_46.swf...

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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines