[Papervision3D] Controlling DAE animations once loaded

Jonathon Stierman jstierman at modernclimate.com
Wed Jul 15 14:30:32 PDT 2009


They are extensively using ASDocs, but whoever is publishing updates to the source is not triggering a refresh of the online docs:
http://papervision3d.googlecode.com/svn/trunk/as3/trunk/docs/index.html

Jonathon

From: papervision3d-bounces at osflash.org [mailto:papervision3d-bounces at osflash.org] On Behalf Of Mark I. Ross
Sent: Wednesday, July 15, 2009 4:28 PM
To: papervision3d at osflash.org
Subject: Re: [Papervision3D] Controlling DAE animations once loaded

aren't the doc's just generated from the comments in the code (ie. ASDOC or some such)?


Jonathon Stierman wrote:
To follow up - Does anyone know who updates the documentation?  I have found a few discrepancies between the code, and what the documentation lists.  It'd be nice to get an update so people don't get confused.

I'd be more than happy to proof doc updates, and publish them, if there's not an active person doing it.

Jonathon

From: papervision3d-bounces at osflash.org<mailto:papervision3d-bounces at osflash.org> [mailto:papervision3d-bounces at osflash.org] On Behalf Of Jeff Fox
Sent: Wednesday, July 15, 2009 3:13 PM
To: papervision3d at osflash.org<mailto:papervision3d at osflash.org>
Subject: Re: [Papervision3D] Controlling DAE animations once loaded


Perfect. That did the trick. Thanks Jonathon.

-Jeff


On Wed, Jul 15, 2009 at 12:39 PM, <papervision3d-request at osflash.org<mailto:papervision3d-request at osflash.org>> wrote:

Date: Wed, 15 Jul 2009 11:39:28 -0500
From: Jonathon Stierman <JStierman at modernclimate.com<mailto:JStierman at modernclimate.com>>
Subject: Re: [Papervision3D] Controlling DAE animations once loaded
To: "papervision3d at osflash.org<mailto:papervision3d at osflash.org>" <papervision3d at osflash.org<mailto:papervision3d at osflash.org>>
Message-ID:
       <BDE29F4DE8452E42BDC51A52C0F6A0A3BC92BE1980 at exchange.wolfmotell.local><mailto:BDE29F4DE8452E42BDC51A52C0F6A0A3BC92BE1980 at exchange.wolfmotell.local>
Content-Type: text/plain; charset="us-ascii"

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> [mailto: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<mailto: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><mailto:jfox015 at gmail.com<mailto:jfox015 at gmail.com>>






________________________________






_______________________________________________

Papervision3D mailing list

Papervision3D at osflash.org<mailto:Papervision3D at osflash.org>

http://osflash.org/mailman/listinfo/papervision3d_osflash.org


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090715/225ced76/attachment-0001.html>


More information about the Papervision3D mailing list