1 Reply Latest reply on Sep 10, 2006 8:26 AM by kglad

    Targeting Functions in different Timelines

    scsherwood
      According to documentation, to target a function (myFunction) inside a MovieClip (firstLevelMC) located on the _root level all I have to do is use dot notation as follows:

      _root.firstLevelMC.myFunction();

      I'm running Flash 8, and I can't get this to work. myFunction() is on frame one of the "firstLevelMC" MovieClip.

      firstLevelMC timeline frame 0:

      function myFunction() {
      trace("Hello World");
      }

      _root or level0 stage contains "firstLevelMC." Placing "_root.firstLevelMC.myFunction()" on frame 0 of _root does nothing.

      Does anyone know why this doesn't work? What am I overlooking?