« Return to Thread: InteractiveScene3DEvent and dae models

Re: InteractiveScene3DEvent and dae models

by im_a_tryer :: Rate this Message:

Reply to Author | View in Thread

Thanks Tyler - managed to sort this problem. It was the COLLADA_Scene hierarchy (after dae has fully loaded as you said) I needed to get to grips with. I can now add click listeners to my daes. This has inevitably uncovered another problem: I am cloning the dae through a for-loop. Problem is that when you click on one of the daes - a completely different one will register the click event. Whats wierder is that if i change my listener to OBJECT_OVER the event seems to fire by itself randomly, even if the mouse cursor isnt even on the swf!!

This is my job today...

Seasons greetings btw!

Si


Are you making sure that the DAE has fully loaded before applying the listeners? When calling load() on a DAE, it will dispatch an event when load has completed, "FileLoadEvent.LOAD_COMPLETE"

Hope that helps.

Tyler.

im_a_tryer wrote:
The problem I'm having is that my dae object has no childrenList - it just fires back with an empty string. Object displays fine with texture and everything! But while trying to add interactivity to all the child objects I seem to have hit a brick wall. Any ideas?

Cheers,

Si

 « Return to Thread: InteractiveScene3DEvent and dae models