Hello all,
Does any one know a good solution of passing by reference ? I just cannot find any good example by googing around. Here is the code snippet:
Is it possible to pass an object by reference ( such as myPlayer below)
Thanks, - Hugo
// function call
createPlayer ( myPlayer, texture, 0 ,128 , 0 , 256 ,256 ,180);
...
//declaration
private function createPlayer(newChar:Mesh, newCharTexture:Class, x:int, y:int, z:int, witdh:int , height:int, rotationY:int):void
...
addChild (newChar);
}