User Guide

1353
3
CHAPTER 3
Deprecated ActionScript
The evolution of ActionScript has deprecated many elements of the language. This section
lists the deprecated items and suggests alternatives when available. While deprecated elements
still work in Flash Player 8, Macromedia recommends that you do not continue using
deprecated elements in your code. Support of deprecated elements in the future is not
guaranteed.
Deprecated Class summary
Deprecated Function summary
Modifiers Class Name Description
Color Deprecated since Flash Player 8. The Color class
has been deprecated in favor of the
flash.geom.ColorTransform class.
Modifiers Function Name Description
call(frame:Object) Deprecated since Flash Player 5. This action was
deprecated in favor of the function statement.
chr(number:Number) Deprecated since Flash Player 5. This function was
deprecated in favor of String.fromCharCode().
TextFormat.getTextE
xtent(text:String,
[width:Number])
Deprecated since Flash Player 8. There is no
replacement.
ifFrameLoaded([sce
ne:String],
frame:Object)
Deprecated since Flash Player 5. This function has
been deprecated. Macromedia recommends that you
use the MovieClip._framesloaded property.
int(value:Number) Deprecated since Flash Player 5. This function was
deprecated in favor of Math.round().