8 Replies Latest reply on Feb 10, 2009 10:31 PM by kglad

    _parent from a class

    brian914 Level 1
      I am having a hard time with scope.
      I am working on a class that is linked to an MC and from that class trying to call a function on the timeline of the _parent MC. I thought I could do something like the following, but can't seem to reach the function. I am pretty sure it has to do with scope, but I just don't quite get it yet. What am I doing wrong? How is this done?

      Thank you so much!

      private function onItemClick(e:Object):Void
      {
      _parent.loadVideo(e.target.id);
      }