Hi!
Let's say i have a code looking something like this:
Code:
something.setvar();
[variable].usethis();
...
object.prototype.setvar = function() {
_global.variable = this;
}
function usethis() {...}
Using the [].usethis() dosn't work, but if i shuld use something like _root[].usethis() it does. How can i use [].usethis()? I need this because _global.variable contains the whole instancename, like "_level0.object.object".
I'm not sure how to explain this, it's kind of confusing
It shuld look something like this when compiled:
Code:
something.setvar();
_level0.object.object.usethis();
...
object.prototype.setvar = function() {
_global.variable = this;
}
function usethis() {...}
The _global.varibale is dynamical and depends on what object called the setvar();