1 Reply Latest reply on May 23, 2007 3:01 AM by Jakob_Wagner

    Access variables and methods from one class by another

    Jakob_Wagner
      Hi

      I have a document with a document class (class1) on the stage of that document I have a MovieClip with a class attached to it using linkage (class2).

      They are both part of the same package.

      In class1 I have a method called "zoom":

      internal function zoom(p:Number):void
      {
      trace(p);
      }

      How can I call that method from class2?

      I've tried:

      parent.zoom(p);

      But I get the compiler error:

      1061: Call to a possibly undefined method zoom through a reference with static type flash.display:DisplayObjectContainer.


      Anyone?

      Regards,
      Jakob