[Papervision3D] Changing material

Seb Lee-Delisle sebstar55 at gmail.com
Mon Dec 1 08:40:36 PST 2008


Hi Arthur,

It could be that the BitmapFileMaterial has loaded already, in which
case, it won't fire the LOAD_COMPLETE event. Although I have to say I
thought we updated BitmapFileMaterial so that the load complete event
would fire anyway. Are you using the latest version of the source?
I'll do some checks later.

cheers!

Seb



Seb Lee-Delisle
Technical Director
Plug-in Media
pluginmedia.net



On Mon, Dec 1, 2008 at 2:29 PM, Arthur Bilyik <arthur_bilyik at mail.ru> wrote:
>
> It's one more question. I'm creating a gallery with multiple images, but all
> pictues are not loading to BitmapFileMaterial twice!!!!
> Why is it so?
> Here the part of code:
>
>
> var bitmapFileMaterial:BitmapFileMaterial;
>
> function onClick(event:MouseEvent){
>
>        var num:Number = event.target.parent.ID;
>        bitmapFileMaterial = new BitmapFileMaterial(mid_pic[num]);
>        bitmapFileMaterial.doubleSided = true;
>        bitmapFileMaterial.interactive = true;
>        bitmapFileMaterial.smooth = true;
>        bitmapFileMaterial.addEventListener(FileLoadEvent.LOAD_COMPLETE,
> loadCompleteHandler);
>
> bitmapFileMaterial.addEventListener(FileLoadEvent.LOAD_PROGRESS,FileLoadProgress);
> }
>
> function loadCompleteHandler(event:FileLoadEvent):void
>                {
>
> plane_array.material = bitmapFileMaterial;
>
>                }
>
> function FileLoadProgress(event:FileLoadEvent):void
>                {
>
>                        kaka_mc.loaded_txt.text=event.bytesLoaded;
>
>                }
>
>
>
> Please, help!
>
> Quoted from:
> http://www.nabble.com/Changing-material-tp20608654p20629286.html
>
> --
> View this message in context: http://www.nabble.com/Changing-material-tp20608654p20772964.html
> Sent from the Papervision3D mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>



More information about the Papervision3D mailing list