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 ( 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);
} 

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X