Miscellaneous - Adobe FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manual

Migrating applications to flex 2
Table of Contents

Advertisement

Miscellaneous

This section describes miscellaneous changes to the ActionScript language.
MovieClip
MovieClip has been replaced by Sprite as the parent class of the base object for Flex controls,
UIComponent.
The following table lists changes to methods of MovieClip:
ActionScript 2.0 method ActionScript 3.0 equivalent
beginMeshFill()
swapDepths()
setMask()
loadMovie()
getURL()
loadMovieNum()
loadVariables()
The drawing methods such as
MovieClip object. To use them you must import the flash.display.* package.
36
ActionScript 2.0 to 3.0
The
beginMeshFill()
ActionScript 3.0 equivalent.
Target paths are not supported in ActionScript 3.0. Instead,
you can specify depth as integer depth value, or rewrite your
code using ActionScript 3.0 Sprites instead of MovieClips.
Target paths are not supported in ActionScript 3.0. Instead,
you can specify the mask as a DisplayObject, or rewrite your
code using ActionScript 3.0 Sprites instead of MovieClips.
The method (GET or POST) optional argument to the
method is not supported in ActionScript 3.0.
loadMovie()
The
method has been deprecated. You should
getURL()
instead use the
navigateToURL()
information, see the Flex 2 Developer's Guide.
The
loadMovieNum()
ActionScript 3.0. To achieve similar functionality, rewrite your
code to use ActionScript 3.0 Sprites instead of ActionScript
2.0 MovieClips.
The
loadVariables()
3.0.
are now accessed via the
moveTo()
method has been removed. There is no
method. For more
method is no longer supported in
method is not supported in ActionScript
graphics
property of the

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex 2

Table of Contents