[Papervision3D] Sharing Collada between SWF problem
Mark I. Ross
nospam at therossman.org
Wed Jan 27 12:59:23 PST 2010
Step 1: Create an URLLoader and load the DAE.
Step 2: In the Event.COMPLETE event listener convert the loaded data to
an XML object (var myXML:XML = new XML( e.target.data ); )
Step 3:Create your new DAE's from that XML like:
daeRef.load( myXML, null , false );
Then you should be good to go!
bebensiganteng wrote:
> Hi Damien,
>
> thanks for your reply, but i'm kind of new to papervision can you
> explain how to do it, please ?
>
> On Wed, Jan 27, 2010 at 5:03 PM, Damien Pegoraro [via Papervision3D]
> <[hidden email]
> <http://n4.nabble.com/user/SendEmail.jtp?type=node&node=1311635&i=0>>
> wrote:
>
> Maybe you could load the dae file only once in your nav and then
> just
> share the XML between your modules and create a new DAE instance
> in each
> module instead of sharing the DAE itself.
>
>
> bebensiganteng a écrit :
>
> > Hi,
> >
> > Basically i have 3 SWF file:
> >
> > - Nav.swf (loaded at the beginning as the main navigation)
> > - CollectionPage.swf (loaded on-demand)
> > - AppPage.swf (loaded on-demand)
> >
> > since i'm only using 1 Collada, i thought i load the collada in
> Nav.swf so
> > the each page can pull the collada from it whenever its being used.
> >
> > but i've pulling my hair off since when i load the collada from,
> say the
> > CollectionPage.swf, it loads and added to the scene perfectly
> >
> > but when i tried to load it from Nav.swf and pull it from the
> respective
> > pages it shows me this error
> >
> > TypeError: Error #1034: Type Coercion failed: cannot convert
> > org.papervision3d.objects.parsers::DAE at e87c2a9 to
> > org.papervision3d.objects.parsers.DAE.
> >
> > and what i dont understand is the error is saying it cannot
> convert DAE to
> > DAE?
> >
>
> --
> *Damien PEGORARO*, Flash Developer
> ACTIPLAY SA <http://www.actiplay.com/>
>
> _______________________________________________
> Papervision3D mailing list
> [hidden email]
> <http://n4.nabble.com/user/SendEmail.jtp?type=node&node=1311575&i=0>
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
>
> ------------------------------------------------------------------------
> View this message in context: Re: [Papervision3D] Sharing Collada
> between SWF problem
> <http://n4.nabble.com/Sharing-Collada-between-SWF-problem-tp1311542p1311635.html>
> Sent from the Papervision3D mailing list archive
> <http://n4.nabble.com/Papervision3D-f758870.html> at Nabble.com.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Papervision3D mailing list
> 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/20100127/bd54bcff/attachment.html>
More information about the Papervision3D
mailing list