When to Tween

Software: Away3D 4.x

johnh, Newbie
Posted: 29 January 2013 08:29 PM   Total Posts: 5

I am using TweenMax to move an object.
It is moving but with much delay on my droid.
It moves immediately in the Flex emulator.

There seems to be a disconnect.
Can anyone suggest how to speed this up on the droid?

   

johnh, Newbie
Posted: 29 January 2013 09:10 PM   Total Posts: 5   [ # 1 ]

Discovered this i snot a problem.
For some reason I need to tap on the object then tap on the general environment to get the tween to execute.
Makes no sense to me.
I have the tween in ...

private function onMeshMouseDown( event:MouseEvent3D ):void {
  var mesh:Mesh = event.target as Mesh;
if(mesh.name == “whiskey”){
    TweenMax.to(mesh, 1, {bezierThrough:[{x:20, y:0, z:-18.369}, {x:-5, y:-27, z:-80}]});
  }
}

   

johnh, Newbie
Posted: 29 January 2013 09:35 PM   Total Posts: 5   [ # 2 ]

Problem solved.
My addEventListener was mesh.addEventListener( MouseEvent3D.MOUSE_DOWN, onMeshMouseDown ); and should have been mesh.addEventListener( MouseEvent3D.CLICK, onMeshMouseDown );

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X