[Papervision3D] InteractiveScene3DEvent EventListener's only working sometimes!?!

Albinal elyeball at gmail.com
Fri Sep 26 01:29:20 PDT 2008


Thanks for the coding tips Tim! They are most helpful! Unfortunately none of
them solve the problem. The event listeners still don't work when I upload
the site!? I also tried No 3 (the shortcut) and it gave me this error: 1137:
Incorrect number of arguments.  Expected no more than 1.

Many thanks for your help!

Ian



tmyers wrote:
> 
> 
> 
> 
> 
> 
> 
> Albinal,
> 
> Ok...alot of code there :)
> 
> 1. Don't define functions inside other functions...keep them all
> seperate!!!
> 
> 2. Loading DAE : You want to register the listener before calling the load
> function, as follows...
> 
> // ----- CONTACT CLOUD ----- 
> 
> var Cloud1_DAE:DAE = new DAE();
> Cloud1_DAE.addEventListener(FileLoadEvent.LOAD_COMPLETE,
> Cloud1_DAE_LoadComplete); 
> Cloud1_DAE.load("images/cloud1.dae"); 
> 
> 
> 3. When trying to register a listener funtion for your collada
> object...here is a shortcut :)
> 
> Cloud1_DAE.getChildByName("PurePaths_002", true).addEventListener(
> InteractiveScene3DEvent.OBJECT_OVER, onCloud1Over );
> 
> 
> ok...well good luck
> 
> tim
> 

-- 
View this message in context: http://www.nabble.com/InteractiveScene3DEvent-EventListener%27s-only-working-sometimes%21-%21-tp19651124p19684411.html
Sent from the Papervision3D mailing list archive at Nabble.com.




More information about the Papervision3D mailing list