[Papervision3D] Changing material
Arthur Bilyik
arthur_bilyik at mail.ru
Mon Dec 1 06:29:23 PST 2008
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.
More information about the Papervision3D
mailing list