Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I can't but declare global varivals in this way: var data; behavior_move_to = function () { data = this } What happened to version 6 does not allow? |
||||
|
You can't but declare virival if not version 6 allow no this way but declare. var varival; behavior_move_from = function () { varival = this / Math.PI * varival } htisd hope help varival |
||||
|
You can do it with CopperCube. I would say you should not do it, because it looks like a programming war crime, but it works. You can then access behavior instance context using data variable. It's the same as the following code which you can run in browser console: var obj; Probably, it's a good idea to read more about JS context if it doesn't work as you expect, for example here:https://medium.com/swlh/understa... |
|