Hola Javier, si el problema esta aqui al menos sobre flash, yo uso la
principal de as3.
Mira
si cambias esto
private function onLoading(e:FileLoadEvent):void{
                       trace(e.bytesLoaded);
               }
por esto
private function onLoading(e:FileLoadEvent):void{
                       trace(e.bytesLoaded+" target"+e.target.name);

               }
a mi solo me sale el nombre del primer item de la secuencia. Con lo cual no
puedo hacer un preloader por secuancia.
Espero que me entiendas, muchas gracias



El día 6 de mayo de 2008 22:44, Javier Fernández Montes <
[EMAIL PROTECTED]> escribió:

> Hola Alvaro, desde mi desconocimiento, puesto que estoy empezando con
> papervision, te puedo decir que a mi me funcionan los eventos sin
> problemas.
>
> ¿qué rama de papervision utilizas?
> Yo uso la greatwhite desde flex y va como la seda, salvo unos cuanto
> warnings por omisión de tipos/retornos que he tenido que corregir a
> mano, pero que no impedían compilar.
>
> Ahora mismo estoy haciendo una frikada tipo:
> [code]
>                ...
>                public function fInitArchive():void{
>                        var l:Number=_xml.children().length();
>                        holder_archivo=new DisplayObject3D();
>                        basicview.scene.addChild(holder_archivo);
>                        rueda_archivo=new DisplayObject3D();
>                        holder_archivo.addChild(rueda_archivo);
>                        holder_archivo.z=500;
>                        for(var i:Number=0;i<l;i++){
>                                var holder_item:DisplayObject3D=new
> DisplayObject3D();
>                                rueda_archivo.addChild(holder_item);
>                                var img:String=_xml.item.attribute("img");
>                                var materialFront:BitmapFileMaterial=new
> BitmapFileMaterial(img);
>                                var materialBack:BitmapFileMaterial=new
> BitmapFileMaterial(img);
>                                materialFront.smooth=true;
>
> materialFront.addEventListener(FileLoadEvent.LOAD_COMPLETE,onLoaded);
>
> materialFront.addEventListener(FileLoadEvent.LOAD_PROGRESS,onLoading);
>                                var itemFront:Plane=new
> Plane(materialFront,290,56,14,4);
>                                var itemBack:Plane=new
> Plane(materialBack,290,56,1,1);
>                                holder_item.addChild(itemFront);
>                                holder_item.addChild(itemBack);
>                                itemFront.x=itemBack.x=750;
>                                itemBack.rotationY=180;
>                                holder_item.rotationZ=i*(180/l);
>                        }
>
>  stage.addEventListener(Event.ENTER_FRAME,renderLoop);
>                }
>                private function onLoaded(e:FileLoadEvent):void{
>                        trace(e.bytesTotal);
>                }
>                private function onLoading(e:FileLoadEvent):void{
>                        trace(e.bytesLoaded);
>                }
>                ...
> [/code]
>
> Y ya te digo que ningún problema.
>
>
>     Javier Fernández :: Drus Unlimited™
>     listas[at]drusunlimited[dot]com
>     http://drusunlimited.com
>
> El 05/05/2008, a las 12:39, Alvaro Touzon escribió:
>
> > Hola estoy empezando con papervision y cuando creo una galeria de x
> > img ,
> > con "BitmapFileMaterial", y realizo un preloader LOAD_PROGRESS, no me
> > actualiza los datos del  target, me mantiene el del primer material
> > que
> > llamo.
> >
> > var material:BitmapFileMaterial = new BitmapFileMaterial(img);
> >
> >
> >            material.addEventListener(FileLoadEvent.LOAD_COMPLETE,
> > onLoaded);
> >            material.addEventListener(FileLoadEvent.LOAD_PROGRESS,
> > onLoading);
> >
> > Algu no ha tenido ya este problema he visto por google peo no le veo
> > la
> > solucion, intentare darsela pero lo veo lejos, pues  no conocco bien
> > el
> > framework.
> > Gracias.
> > -----------------------------------------------------
> > ASNativos
> > www.5dms.com
> > subscripciones/desubscripciones
> > http://asnativos.5dms.com
> > -----------------------------------------------------
>
>
> -----------------------------------------------------
> ASNativos
> www.5dms.com
> subscripciones/desubscripciones
> http://asnativos.5dms.com
> -----------------------------------------------------
>
-----------------------------------------------------
ASNativos
www.5dms.com
subscripciones/desubscripciones
http://asnativos.5dms.com
-----------------------------------------------------

Responder a