User Guide
761
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 Function summary
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)String Deprecated since Flash Player 5. This
function was deprecated in favor of
String.fromCharCode().
ifFrameLoaded([scene: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)Number Deprecated since Flash Player 5. This
function was deprecated in favor of
Math.floor() for positive values and
Math.ceil for negative values.
length(expression:String,
variable:Object)Number
Deprecated since Flash Player 5. This
function, along with all the string functions,
has been deprecated. Macromedia
recommends that you use the methods of the
String class and the String.length property
to perform the same operations.