This content has been marked as final. Show 6 replies
It does seem to be broken. You can use _movie.marker() instead.
> x = _movie.label("Start");
> .... Script error: TypeError _movie.label is not a function.
var x = _movie.label("Start");
_global.x = _movie.label("Start");
But, it still gives the error that way.
Director Lecturer / Consultant / Director Enthusiast
Thanks fatztp, I'll use the marker method. And thanks for passing it aloing Dean... yes var to declare the variable...
My other issue is that the debugger doesn't seem step through anonymous functions, i.e. so for instance,
var myObject = new myClass();
doesn't allow for a breakpoint on the line trace("Hello World");
one can't step though the code. :(
The anonymous function isn't such an issue if one breaks it out to a named function. I suspect the debugger is having issues resolving/locating the function. So if you define a method function and cast it to a class's method, the breakpoint is able to be located:
this.myMethod = namedFunction;