Hi helping a friend on some away3d, but really unsure on how to
proceed with a preloader on some collada, we have one for each section
and some streaming 3d music but thats besides the point.
currently I listen to the loading..
loader.addEventListener( Loader3DEvent.LOAD_PROGRESS, loaderProgress );
and dispatching a signal...
if( loader.handle.bytesLoaded != 0 &&
loader.handle.bytesTotal != 0 )
{
fraction =loader.handle.bytesLoaded /
loader.handle.bytesTotal;
if( Math.round( fraction ) != 1 )
{
progressed.dispatch();
}
}
but it seems to be giving results for all the assets ( all the images
in the scene ) as they are loaded so I have a yo yo loading bar, just
unsure on the best approach, do I set the collada images to a single 0
size image by hacking the collada file and then replace them at run
time from a separately loaded swf - that would be a real pain and not
easy, do I go down the prefab route (or tell him to), probably sorted
this before but no idea where my old code is. Was hoping there was an
event I could hook into that would save me having to do lots of work,
just assumed this is a common thing and the engine would have
something set up for this. Sorry if I should read the documents more
I looked through some of the away classes but did not find any clues
in the code and googled but did not find an clues.
Currently looking at the standard as3 away3d version would love to
play with molehill and maybe help on the haxe part but need to get my
friends project out the door in as3, and I seem to have lost all
motivation to code as3 :).
Many Thanks for any tips cheers
;j