Hi,
I’m trying to write some nice tidy code. But I’m getting stuck…
I’ve created a class at authortime, and linked it to an .as file that has this in it:
class When extends MovieClip {
public function createCalendar() {
this.attachMovie(“datesymbol”, “mcDate”, this.getNextHighestDepth(), {_x : 80, _y : 0});
this["mcDate"].onPress = function ():Void {
trace("You clicked mcDate.");
this["mcDate"]._x = 10;
};
}
}
In the library I’ve got a symbol called datesymbol. It gets created ok, and when I click on mcDate, it does the trace. But it won’t change the x position. Do I need to update or something?
Tom