Справочник Пользователя для Macromedia flex 2-migrating applications to flex 2
36
ActionScript 2.0 to 3.0
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.
UIComponent.
The following table lists changes to methods of MovieClip:
The drawing methods such as
moveTo()
are now accessed via the
graphics
property of the
MovieClip object. To use them you must import the flash.display.* package.
ActionScript 2.0 method ActionScript 3.0 equivalent
beginMeshFill()
The
beginMeshFill()
method has been removed. There is no
ActionScript 3.0 equivalent.
swapDepths()
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.
you can specify depth as integer depth value, or rewrite your
code using ActionScript 3.0 Sprites instead of MovieClips.
setMask()
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.
you can specify the mask as a DisplayObject, or rewrite your
code using ActionScript 3.0 Sprites instead of MovieClips.
loadMovie()
The method (GET or POST) optional argument to the
loadMovie()
method is not supported in ActionScript 3.0.
getURL()
The
getURL()
method has been deprecated. You should
instead use the
navigateToURL()
method. For more
information, see the Flex 2 Developer’s Guide.
loadMovieNum()
The
loadMovieNum()
method is no longer supported in
ActionScript 3.0. To achieve similar functionality, rewrite your
code to use ActionScript 3.0 Sprites instead of ActionScript
2.0 MovieClips.
code to use ActionScript 3.0 Sprites instead of ActionScript
2.0 MovieClips.
loadVariables()
The
loadVariables()
method is not supported in ActionScript
3.0.