3 Replies Latest reply on Dec 14, 2007 10:15 AM by Newsgroup_User

    Where is this actionscript code?

    evanton
      Dear All,

      I am getting the message below which does make sense but I cannot find any actionscript on Scene 1, layer=Layer 1, frame=1:Line 2.

      I get the ststement on three different frames. None of them have actionscript. I believe the fla file was previously an older version (possibly 5) and now I am working with 2004 MX.

      **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 2: Statement must appear within on/onClipEvent handler
      {

      Thanks again. I am getting so confused over this one.

      Alastair MacFarlane
        • 1. Re: Where is this actionscript code?
          BSpero Level 1
          It might be attached directly to a movieClip.
          • 2. Re: Where is this actionscript code?
            Damon Edwards Level 3
            Yes, that means that the script is on a movie clip or button, and it is of the type that needs to be on a frame.
            • 3. Re: Where is this actionscript code?
              Level 7
              I have found the code!

              Thanks for both your help.

              Alastair

              "evanton" <webforumsuser@macromedia.com> wrote in message
              news:fjtrfo$qdu$1@forums.macromedia.com...
              > Dear All,
              >
              > I am getting the message below which does make sense but I cannot find any
              > actionscript on Scene 1, layer=Layer 1, frame=1:Line 2.
              >
              > I get the ststement on three different frames. None of them have
              > actionscript.
              > I believe the fla file was previously an older version (possibly 5) and
              > now I
              > am working with 2004 MX.
              >
              > **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 2: Statement must
              > appear
              > within on/onClipEvent handler
              > {
              >
              > Thanks again. I am getting so confused over this one.
              >
              > Alastair MacFarlane
              >