A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [FL8-AS2.0]Passing MC coordinatesto a function whitin a class

Threaded View

  1. #1
    4, 8, 15, 16, 23, 42
    Join Date
    Mar 2009
    Posts
    8

    [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 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
    Last edited by weeblo; 07-21-2009 at 08:31 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center