0 Replies Latest reply on Aug 23, 2007 10:13 AM by MazAwushu

    [AS3] reference to stage variable from MC

    MazAwushu
      Hi!

      At the begining I'm sory for my English ;)

      I've been coding in AS2 for a while, but now I decided to try AS3. The situation is like:
      - I've got one Movie Clip on a stage
      - I have a code in the 1st frame of the Main Timeline:
      var somevar:String = "somevalue"
      - I have a code in the 1st frame of the Movie Clip's timeline:
      trace(root.somevar) // error
      trace(parent.somevar) // error

      How to trace that variable?? The same is with stopping the Main Timeline's playback.
      parent.stop() and root.stop() don't work :(

      HEEELLLP MEEE! ;)