ActionScript: Difference between revisions

Content deleted Content added
Fixed typo in "recommended"
Added ActionScript 2 class linkage example
Line 92:
play();
}
 
ActionScript version 2.0 supports linking MovieClip instances to ActionScript classes by editing the "Linkage" settings, so that you can use external classes like this:
 
class SomeClip extends MovieClip {
function moveTo(x:Number, y:Number) {
this._x = x;
this._y = y;
}
}
 
The classes will be automatically instantiated.
 
=== Source ===