[FL8-AS2.0]Passing MC coordinatesto a function whitin a class
Hi,
Im new with flash classes (just started learning) and i've finished those small tutorials, so i gave myself, lets call it a mission :D to make something bigger :P
And here i'am with a problem (hope its an easy one for you guys.. and girls):
I have a class named Test in Test.as file :
Code:
class Test{
public function set movePlayer(_Playah:MovieClip):Void {
trace(_Playah._x);
}
}
and when I "run" this function in my .fla file, its says "undefined" (for this position):S
i have no ideas how to "pass" MC informations to a function inside a class (x,y coordinates, rotation..) although when I trace only "_Playah" it shows the correct name of MC i've passed to it.
pls, give mi some tip how to solve this problem
tnx ;)