hello flash coders!

ive just joined and there are some nice discussions here, i hope to
contribute positivly to the level of knowledge in the group.
:)

i'm currently learning how to work in an OOP manner in flash, and thus
meeting some basic hurdles.
it would be very kind of you if you could assist me in my [probably very
simple] problems.
:-)

I'm using external *.as files, and at the moment i am trying to figure out
how to attach a movie to it [should be simple, right?]

my as file:

class Post extends CoreClass  {
   private var myPost:MovieClip;

   public function setCord(px,py,pz):Void {

       //set coordinates
       public var px:Number = px;
       public var py:Number = py;
       public var pz:Number = pz;
       //original point locations
       private var ox:Number = px;
       private var oy:Number = py;
       private var oz:Number = pz;
   }

   public function attachMe ():Void {
       attachMovie("signPost", "myPost", this.getNextHighestDepth());
       myPost._x = 0;
       myPost._y = 0;
       trace ("myPost = " + myPost._x);
   }
}

In frame 1 of the movie i write:

Post0 = new Post ();
//Post0.setCord(100,100,0.9);
Post0.attachMe();

The trace comes up 'undefined'
if i use the 'attachmovie' from the root in the main time line, it works
just fine.

any clues?

thanks!

sebastian / amsterdam
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to