Home / Articles / Adobe Flash / Deprecated Items in ActionScript 2.0 and Some Suggested Alternatives

Deprecated Items in ActionScript 2.0 and Some Suggested Alternatives

Chapter Description

The evolution of ActionScript has deprecated many elements of the language. This section lists the deprecated items and suggests alternatives when available.

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) Deprecated since Flash Player 5. This function was deprecated in favor of String.fromCharCode().
  TextFormat.getTextExtent(text:String, [width:Number]) Deprecated since Flash Player 8. There is no replacement.
  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) Deprecated since Flash Player 5. This function was deprecated in favor of Math.round().
  length(expression:String, variable:Object) 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.
  mbchr(number:Number) Deprecated since Flash Player 5. This function was deprecated in favor of the String.fromCharCode() method.
  mblength(string:String) Deprecated since Flash Player 5. This function was deprecated in favor of the methods and properties of the String class.
  mbord(character:String) Deprecated since Flash Player 5. This function was deprecated in favor of String.charCodeAt().
  mbsubstring(value:String, index:Number, count:Number) Deprecated since Flash Player 5. This function was deprecated in favor of String.substr().
  ord(character:String) Deprecated since Flash Player 5. This function was deprecated in favor of the methods and properties of the String class.
  random(value:Number) Deprecated since Flash Player 5. This function was deprecated in favor of Math.random().
  substring(string:String, index:Number, count:Number) Deprecated since Flash Player 5. This function was deprecated in favor of String.substr().
  tellTarget(target:String, statement(s)) Deprecated since Flash Player 5. Macromedia recommends that you use dot (.) notation and the with statement.
  toggleHighQuality() Deprecated since Flash Player 5. This function was deprecated in favor of _quality.

3. Deprecated Property summary | Next Section Previous Section