[Papervision3D] Tween object question

Flotilla tim at rorschachpropfx.com
Tue Jun 1 07:11:51 PDT 2010


Hi Huge,
       thankyou so much for your help. It has helped me to understand a
great deal, however my version of your code runs fine with no errors but the
second tween does not seem to have any effect

code below: (I changed the } on your tweenlite command as I believe the
onComplete: is supposed to be within the {} (it threw up errors when done
your way)


any idea why the second tween is not working?


thanks again



private function mainEnter(e:Event):void 
        {

//detector variables/confidence

                if (detector.detectMarkerLite(raster, 80) &&
detector.getConfidence() > 0.3)
                {
                        detector.getTransformMatrix(trans);

                        mainContainerA.setTransformMatrix(trans);
                        mainContainerA.visible = true;

			TweenLite.to(_daeA, 3, {z:40, scale:4, onComplete:onFinishTween});
						
    
                        mainContainerE.setTransformMatrix(trans);
                        mainContainerE.visible = true;


                
                        renderer.render();
                }
                else
                {
                        mainContainerA.visible = false;
                        renderer.render();
                        
                        TweenLite.to(_daeA, 0.1, {z:0.1, scale:2.7});

                        mainContainerE.visible = false;
                        renderer.render();                  
             
 }
        }
		private function onFinishTween():void{
		
		TweenLite.to(_daeA, 3, {z:180});
			
		}               
                

                }
        }


-- 
View this message in context: http://papervision3d.758870.n4.nabble.com/Tween-object-question-tp2237660p2238553.html
Sent from the Papervision3D mailing list archive at Nabble.com.



More information about the Papervision3D mailing list