Any Solution for Passing By Reference ?

Software: Away3D 4.x

HugoW, Newbie
Posted: 08 May 2013 09:47 AM   Total Posts: 11

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 myPlayertexture,128 256 ,256 ,180);  
...

//declaration
private function createPlayer(newChar:MeshnewCharTexture:Class, x:inty:intz:intwitdh:int height:introtationY:int):void

...
addChild (newChar);

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X