Hello!
When creating custom-objects, is there any way to set it’s pathing? The problem is that it seems without a defined targetPath the object’s callbacks are ignored.
Here’s an example:
class someClass extends MovieClip {
public function someClas() {
this.onEnterFrame = function() {
trace( this ); // never called
}
trace( this ); // outputs object object
}
So, is there any way to set the targetpath? They all seem like read-only to me. One way to fix it perhaps is to place an object on the stage and use the as2 field to define it’s class, but I prefer coding everything
If i make a movieclip using createEmptyMovieClip, it’ll work (trace(this) shows say _level0.some_mc) ), but I want my custom classes…