[Papervision3D] What am I doing wrong?

Pelle Christensen pelle.christensen at gmail.com
Wed Jan 10 10:32:07 EST 2007


The Main.as from HelloAse has been changed in one place  Line 61

  //var material :BitmapAssetMaterial = new BitmapAssetMaterial( "Bitmap" );
        var material :BitmapAssetMaterial = new BitmapAssetMaterial("
world.png");
        //var material :BitmapAssetMaterial = new
BitmapAssetMaterial("c:/world.png");

I've tried both relative and absolute paths, but still get the same error.

I suscpect that, my understanding of how to handle the example files is
somewhat faulty, and building projects in FlashDevelop is also new to me.

/Pelle

'scene' will be scoped to the default namespace; Main internal. It will not
be visible outside of this package.

On 1/10/07, John Grden <neoriley at gmail.com> wrote:
>
> can you post the code for us to see?
>
> On 1/10/07, Pelle Christensen <pelle.christensen at gmail.com> wrote:
>
> > Hi
> >
> > My name is Pelle, and I've been on the mailinglist for about a week.
> >
> > I have picked up the files from the repository and have tried to build
> > the examples, but i get the following error (HelloAse example)
> >
> > ReferenceError: Error #1065: Variable png is not defined.
> >     at global/flash.utils::getDefinitionByName()
> >     at
> > org.papervision3d.materials::BitmapAssetMaterial/org.papervision3d.materials:BitmapAssetMaterial::createBitmap()
> >     at org.papervision3d.materials::BitmapMaterial/set texture()
> >     at org.papervision3d.materials::BitmapMaterial$iinit()
> >     at org.papervision3d.materials::BitmapAssetMaterial$iinit()
> >     at Main/::init3D()
> >     at Main$iinit()
> >
> > I've tried to put the image in the same folder, and even supplied an
> > absolute path, but it dosen't help.
> >
> > Ps: Using flashdevelop with a setup for AS3
> >
> > Can anybody help?
> >
> > --
> > Med venlig hilsen / Best regards
> > Pelle Klit Christensen
> >
> > Phone (+045) 26 88 11 89
> > www.gamecraft.dk
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
> >
> >
>
>
> --
> [  JPG  ]
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
>


-- 
Med venlig hilsen / Best regards
Pelle Klit Christensen

Phone (+045) 26 88 11 89
www.gamecraft.dk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070110/61b8bb55/attachment.htm


More information about the Papervision3D mailing list