Hi,

i am having trouble displaying a .dae file that i load into my application
via Papervision's Collada class. I think that the problem is to do with my
own class HouseScene.as not picking up the LOAD_COMPLETE event that the
Collada.as <http://collada.as/> class dispatches once it has loaded in and
parsed the .dae file.

So, in my HouseScene class i have the following:

this.addEventListener(FileLoadEvent.LOAD_COMPLETE, render3D);
this.myCollada = new Collada("screen.dae");

It is my understanding that HouseScene.render3D method will fire off once
FileLoadEvent.LOAD_COMPLETE is dispatched by the Collada class.

Within the Collada class the following lines are executed, which i have
tested via a trace, so i presume the event has been dispatched:

var fileEvent:FileLoadEvent = new FileLoadEvent( FileLoadEvent.LOAD_COMPLETE,
_filename );
this.dispatchEvent( fileEvent );
this.loaded = true;
trace(this.loaded) // traces 'true'

However, my HouseScene.render3D() method never gets executed. And so the
Collada xml data is neveravailbel to render.

This is my first foray into AS3 so I am not very familiar with the new event
model but having looked through the documentation i *think* I have it right.
Am i missing something obvious?

Any help appreciated - thanks
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to