0 Replies Latest reply on Sep 9, 2010 9:13 AM by 10001110101jganc

    [CS5 AS2] Image Not Staying on one Frame

    10001110101jganc
      My flash document that has multiple frames that the user can navigate by clicking buttons. Each frame has unique symbols that will zoom to full screen when the user mouses over the thumbnails. The problem I am having is that the LAST picture that is "rolled over" stays on the page, no matter the frame.

      I've posted an example .fla and .swf of the problem.


      SWF: https://docs.google.com/leaf?id=0B1A...ut=list&num=50


      FLA: https://docs.google.com/leaf?id=0B1Azg28axRRvNGU3OTJlMjItNDczMS00NGU1LTk4M TktOWY4ZDdkMmYxMDc0&sort=name&layout=list&num=50


      There as supposed to be two pages. One with the red football team, the other with the blue football team. If you just click the arrow to go back and forth between the two pages, it works as intended.


      However, if you mouse over one of the teams and see the image zoom in, then that image "sticks" on the stage even when you move to the other frame and you see both images.


      How do I fix this?

       

       

      The way the rollover effect is being done is a movie clip symbol. The actionscript is as follows:

       

      stop();
      this.onEnterFrame = function(){
      if(zoom == true){
      prevFrame();
      }
      }
      this.onRollOver = function(){
      zoom = false;
      this.swapDepths(100)
      play();
      }
      this.onRollOut = function(){
      zoom = true;
      }

       


      I think it has something to do with the "this.swapDepths(100)" command.

       

      Can anyone help me keep the symbols from "following" the user around multiple frames and, instead, just stay to their propper frame?