Global Functions - Adobe FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manual

Migrating applications to flex 2
Table of Contents

Advertisement

(hintString ? String:Number)
dynamically typed to be String if
use a non-assignment expression anywhere that you would use a type-assignment expression.

Global functions

Most global functions have changed packages. In addition, they are no longer implicitly
imported. This section describes some changes to the global functions.
Explicit imports
In most cases, you must import the classes to use global functions. For example, to use
functions in the System.* package, you now import flash.system.*. The global functions in
System.* were previously accessible in your
The following table lists common functions that you must now explicitly add an
statement to use:
Function
ContextMenu
EventDispatcher
LocalConnection
MovieClip
PopUpManager
XML
For more information on what packages global functions are in, see the global function's entry
in ActionScript 3.0 Language Reference.
The
function is an exception. It is in the flash.util package, but is implicitly
trace()
imported.
34
ActionScript 2.0 to 3.0
is the non-assignment expression. The variable
hintString
<mx:Script>
Package to import
import flash.ui.ContextMenu;
import flash.events.EventDispatcher;
(was mx.events.EventDispatcher mix-in)
import flash.net.LocalConnection;
import flash.display.MovieClip;
import mx.managers.PopUpManager;
import flash.xml.XMLNode;
is
, else its type will be Number. You can
true
blocks without explicit imports.
is
myVar
import

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex 2

Table of Contents