help

Software: Away3D 4.x

alpoman, Jr. Member
Posted: 11 October 2014 03:29 AM   Total Posts: 40

can someone tell me how to control meshes in a .awd file from .as file.
for example, if i had a cube mesh in awd imported into .as file, how would i rotate that cube, move it, or anything.  i just dont know the syntax to access the assets in the awd file from .as

thanks in advance

   

rdoi, Member
Posted: 13 October 2014 03:16 PM   Total Posts: 86   [ # 1 ]

Yes someone can tell you.

Load your AWD with the Loader3D (and AWD2Parser).
In its ASSET_COMPLETE event, check the asset type or name, if its the mesh you want, assign it to a variable you can access from other part of your code and manipulate it as you like.

Also, use a more suggestive post title.

 

   

alpoman, Jr. Member
Posted: 13 October 2014 06:03 PM   Total Posts: 40   [ # 2 ]

thanks!  perfect!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X