2 Replies Latest reply on May 23, 2006 8:00 PM by Brett_Kinross

    Action Script not triggering in nested movie clip

    Brett_Kinross Level 1
      Hi - I am new to Flash so sorry if this is a simple question. I have a nested movie clip however when it is playing within the parent timeline the actionscript doesn't seem to trigger. Below is the code that I am trying to use:

      Can someone please give me some hints as to how to get it to work. Thanks in advance.
        • 1. Re: Action Script not triggering in nested movie clip
          atog
          Your script looks ok... I assume the trace action fires?

          To clarify, it is on a frame of the nested movie...
          Are you trying to send the nested mc to a frame or send the parent to a frame???

          If you are trying to send the parent to a frame, change gotoAndPlay() to _parent.gotoAndPlay()
          • 2. Re: Action Script not triggering in nested movie clip
            Brett_Kinross Level 1
            Yes this actionscript is on a frame from the nested movie clip. Unfortunately it doesn't fire the trace action.
            The aim of the script is to control the motion of an eye in an animation and make it a bit random - thus it is to control the frame of the sub clip. I have used "this.gotoAndPlay(22)" as well but to no avail. When it is playing and I go Debug -> List Variables the following prints out in the output window:
            Level #0:
            Variable _level0.$version = "WIN 8,0,22,0"
            Movie Clip: Target="_level0.instance1"
            Movie Clip: Target="_level0.instance2"
            Movie Clip: Target="_level0.instance5"
            Movie Clip: Target="_level0.instance6"

            But no mention of the randomFrame variable.
            Cheers