[Papervision3D] Controlling DAE animations once loaded

Jonathon Stierman JStierman at modernclimate.com
Wed Jul 15 09:39:28 PDT 2009


The DAE class has an autoplay parameter in it's constructor:

DAE(autoPlay:Boolean = true, name:String = null, loop:Boolean = false)

Which looks like it would do what you want by default... Make sure you didn't pass in true for the "loop" parameter.  The play method on the DAE class also has a loop parameter (though I didn't see this in the docs!):

public function play(clip:String="all", loop:Boolean=true):void

Make sure you're setting it to false when calling play.

Jonathon

From: papervision3d-bounces at osflash.org [mailto:papervision3d-bounces at osflash.org] On Behalf Of Jeff Fox
Sent: Wednesday, July 15, 2009 10:16 AM
To: papervision3d at osflash.org
Subject: [Papervision3D] Controlling DAE animations once loaded

I am using FLARManager with PaperVision3D on a personal AR R&D project. I am importing several Collada DAE files to build a scene and one of the DAE has an animation in it.

The issue I'm having is that once loaded, the animation loops continuously and I can't find anyway in the Papervision docs to figure out how to stop it once it plays through completely. I'd prefer to use the animation rather than break the DAE into three separate elements that I animate myself via Tweener so any help or suggestions would be great!

-Jeff

--
Jeff Fox
jfox015 at gmail.com<mailto:jfox015 at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090715/c7f4cc8d/attachment-0001.html>


More information about the Papervision3D mailing list