Why this code doesn't work
I have the following in the first frame of a simple movie
on ClipEvent (load) {
this.createTextField("coords_txt", this.getNextHighestDepth(), 0, 0, 100, 22);
coords_txt.autoSize = true;
coords_txt.selectable = false;
}
on ClipEvent (mouseMove) {
coords_txt.text = "X:"+_root._xmouse+",Y:"+_root._ymouse;
}
It doesn't work, I tired moving it to a second frame just in case that was the issue but it still doesn't work.
I cannot get any on ClipEvents to work however I can if I assing them as functions
This works:
this.onLoad=function(){
txt1.text="testing";
}
This Does not
on ClipEvent(Load){
txt1.text="Testing"
}