[Papervision3D] InteractiveScene3DEvent EventListener's only working sometimes!?!
Albinal
elyeball at gmail.com
Thu Sep 25 03:23:28 PDT 2008
I think I have done that?! - Not sure what a callback function is though! :-/
I can't get COLLADA_MATERIALS_DONE to fire?
Cloud1_DAE.addEventListener(FileLoadEvent.LOAD_COMPLETE,
Cloud1_DAE_LoadComplete);
function Cloud1_DAE_LoadComplete(event:Event):void
{
trace("Cloud1 LOADED! :-)");
//Cloud1_DAE.getMaterialByName("Cloud1_png").smooth = true;
Cloud1_DAE.replaceMaterialByName(Cloud1Texture,"Cloud1_png");
Cloud1_DAE.getMaterialByName("Cloud1_png").interactive = true;
Cloud1_DAE.getChildByName("COLLADA_root").getChildByName("PurePaths_002").getChildByName("11").addEventListener(
InteractiveScene3DEvent.OBJECT_OVER, onCloud1Over );
Cloud1_DAE.getChildByName("COLLADA_root").getChildByName("PurePaths_002").getChildByName("11").addEventListener(
InteractiveScene3DEvent.OBJECT_OUT, onCloud1Out );
Cloud1_DAE.getChildByName("COLLADA_root").getChildByName("PurePaths_002").getChildByName("11").addEventListener(
InteractiveScene3DEvent.OBJECT_CLICK, onCloud1Click );
}
tmyers wrote:
>
> Wait for FileLoadEvent.LOAD_COMPLETE to fire....
>
> Then in your callback function...add your interactivity listeners here.
>
>
>
>
--
View this message in context: http://www.nabble.com/InteractiveScene3DEvent-EventListener%27s-only-working-sometimes%21-%21-tp19651124p19666857.html
Sent from the Papervision3D mailing list archive at Nabble.com.
More information about the Papervision3D
mailing list