0 Replies Latest reply on Jul 22, 2008 12:45 PM by Newsgroup_User

    accessing MC from external class

    Level 7
      Hi all. I'm just learning about external classes, so please be gentle.

      I want to access a movieclip on the main timeline from an external class
      (turn the MC invisible). My MC is named "mainframe"

      my external class is this:

      package {
      public class MyClass{
      public function MyClass() {

      and in my fla I call it like this:

      var myClass:MyClass = new MyClass();

      This is the error I get:

      1120: Access of undefined property mainframe.

      Can someone please explain to me how to reference a movieClip on the main
      timeline? I've spent 2 days looking for the answer and it's getting very