[Papervision3D] Tween object question
Huge Ontoman
darbam at hotmail.com
Mon May 31 11:42:07 PDT 2010
Hello,
why do You want to put the second tween call INTO the detection condition in the first place?
If there is no explicit reason to do so, create a private function You call on finishing the first tween, and call that...
cheers,
huge
> Date: Mon, 31 May 2010 10:39:58 -0700
> From: tim at rorschachpropfx.com
> To: papervision3D at osflash.org
> Subject: [Papervision3D] Tween object question
>
>
> Hi, I am trying to run some tween animations on a dae object on detection of
> a marker (with FLARToolkit)
>
> On detection I want it to play the first tween shown below, which I have got
> working fine on detection.
>
> I want to add a second tween anim on completion of the first that is looped
> but I am not sure how or where to add it. I am guessing it needs to go
> somewhere within the 'detection positive' section.
>
> I know I can trigger a new event using OnComplete: in the first tween
> argument but I am unsure how to trigger the second event using this (within
> the detection bit of the code)
>
> any ideas on how I can trigger the second tween within the positive
> detection section
>
> suggestions would be greatly appreciated
>
>
> --rest of code omitted--
>
>
> private function mainEnter(e:Event):void
> {
>
> capture.draw(vid);
>
> //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,});
>
>
>
>
> renderer.render();
> }
> else
> {
> mainContainerA.visible = false;
> renderer.render();
>
>
> }
> }
> }
> }
> --
> View this message in context: http://papervision3d.758870.n4.nabble.com/Tween-object-question-tp2237660p2237660.html
> Sent from the Papervision3D mailing list archive at Nabble.com.
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
_________________________________________________________________
NEW! Get Windows Live FREE.
http://www.get.live.com/wl/all
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20100531/c4f4ff9e/attachment.html>
More information about the Papervision3D
mailing list