0 Replies Latest reply on Feb 24, 2011 11:43 PM by Zfriddd

    AS help with a movieclip button within a movieclip button

    Zfriddd

      Hello,

       

      I am experiencing some difficulties here and I was hoping to get some kind help here.. Here is the .swf file.

       

      Problem:

      I want "Test1" to be a movieclip button and play its animations when you RollOver it. Its located between a mask inside "Menu".

      Also I am trying to get it to be accessable after "Menu" has played its RollOver animation. 

       

      Just to paint a picture in your mind on where everything is located:

       

      Scene 1 -> Symbol 6*here I have Menu, Pics movieclips and its working Actionscripts on seperate layers.* -> "Menu" *Here is Test1 movieclip located.

       

      "Menu" instance name is menu_mc.

      "Test1" instance name is test_1.

       

      Menu's actionscript:

       

      this.menu_mc.onRollOver = function() {
           menu_mc.gotoAndPlay("_over");
      }
      
      this.menu_mc.onRollOut = function() {
           menu_mc.gotoAndPlay("_out");
      }
      

       

       

      Becuase Test1 is located within Menu I tried this on the same Frame as Menu AS is:

       

      this.menu_mc.onRollOver = function(){
      test1.gotoAndPlay("overtest");
      }
      
      

       

       

      I tried to put it inside "Menu":

      this.test1.onRollOver = function(){
      test1.gotoAndPlay=("overtest");
      }
      

       

      What I am doing wrong?

       

      Thanks in advance!