Hi guys !
Firstly, I want to thank you for this post, it was very useful for me.
But I have a problem to use the set_location.
In fact, in my app, I save the position of my objects when the user quits. When he comes back to the page, i want to reload the objects as he left them.
The problem is the following : with the set_location() function, I need the BehaviorID, but in fact it doesn't work for me. I think the problem is that the Behavior is not created yet, so that my function can't find it. I have a JS debugger, and when I execute the code step by step, it works.
Is there a function to call to be sure that the behavior exists ? I was thinking about testing : while(the behavior doesn't exist); and after do my job, but I'm not sure if this would be correct.
Thanks by advance for your help!
Bye,
Damien..