[Papervision3D] Loading Papervision swfs - Error 1009

Collin Cusce rafajafar at gmail.com
Mon Jul 9 07:37:10 EDT 2007


Myloader is null. That's the problem. Why is it null, is the question you're
asking. Two things to note...

1) It might not matter, but there's no parens after you say "new Loader"
(should be "new Loader();"). I never tried so I'm unsure if that's a
problem. I think it might be.

2) Be sure you imported the Loader class by saying "import flash.display.*"

On 7/9/07, Thomas Wagner <t.wagner at designassembly.de> wrote:
>
> thanks for the quick answer @ tomsamson and pete,
> but that was a misunderstanding:
>
> i do NOT mix AS3 and AS2, that was just what brought me to experimenting
> with distributed swfs.
>
> i have an AS3 file that loads an AS3 papervision file - and this makes the
> papervision swf bring up the error, as described.
>
>
> btw.: loading an AS2 and communicating via localConnection works fine, but
> as said, that has nothing to do with this problem.
>
>
> ----- Original Message -----
> From: "tomsamson" <blumenzuechter at gmx.de>
> To: <papervision3d at osflash.org>
> Sent: Monday, July 09, 2007 10:23 AM
> Subject: Re: [Papervision3D] Loading Papervision swfs - Error 1009
>
>
> hi Thomas,
> note that your problem isn´t related to papervision that much as it is
> about how as3/f9 player works.
> You just can´t load as2 movies into as3 ones and then have code in the
> as2.swfs executed as you´d expect. Read more about that in the flash
> help by searching for AVM1Movie.
> There are workarounds for this to achieve an external communication
> "bridge" but yeah,its pretty cumbersome and overall i´d suggest you
> better don´t use as2 movies in as3 ones if avoidable.
>
> -----------------------------------
> http://www.stimunationgames.com/
>
> Thomas Wagner wrote:
> > Hi alltogether,
> >
> > I'm quite new to AS3 and just started out experimenting with
> > Papervision3D.
> >
> > I created an AS3 file that should load and manage some content, AS2 as
> > well as AS3 swfs.
> >
> > Everything works fine, but when loading a Papervision swf, it will
> > constantly throw Error 1009 due to calling a null property (and thus
> > the Papervision code will not be executed).
> >
> > Is there a way to prevent this error >from within the loading host swf
> > file?
> >
> > Looks like this, just a normal loader:
> >
> > myloader = new Loader;
> > addChildAt( myloader, 1);
> > myloader.load( new URLRequest( "papervision.swf") );
> >
> >
> > Thanks,
> >
> > Thomas
> >
> > ______________________________
> >
> > Thomas Wagner
> > www.designassembly.com <http://www.designassembly.com>
> > www.cbg-live.com <http://www.cbg-live.com>
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
> _______________________________________________
> 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/20070709/497fb782/attachment.html 


More information about the Papervision3D mailing list