hello,
I'm trying to make a preloader but I could this is my code and
preloader_mc is a MovieClip in the scene.
it is inside the package
private var toLoad:Number=loaderInfo.bytesTotal;
private var loaded:Number=loaderInfo.bytesLoaded;
private var total:Number=loaded/toLoad;
private function preloader(event:Event):void{
if(loaded==toLoad){
removeEventListener(Event.ENTER_FRAME,preloader);
trace("go");
view.scene.visible=true;
preloader_mc.visible=false;
}else{
preloader_mc.preloaderFill_mc.scaleX=total;
preloader_mc.porcentaje_txt.text=Math.floor(total*100)+"%";
preloader_mc.ofBytes_txt.text=loaded+"bytes";
preloader_mc.totalBytes_txt.text=toLoad+"bytes";
}
}
the preloader works good but what it does is load the scene at the
same point where I always see the downloading of images depending on
the bandwidth of each computer, and I do not want it to look like the
example to uqe already armed and loaded all the textures of an object
Max3DS appears and disappears the preloader scene.
somebody help me please!!
To unsubscribe from this group, send email to
away3d-dev+unsubscribegooglegroups.com or reply to this email with the words
"REMOVE ME" as the subject.