Macromedia flex 2-migrating applications to flex 2 Manual De Usuario
Core classes
51
getURL() method
In Flex 1.5, every UIObject inherited the
getURL()
method from the MovieClip class. This is
no longer the case. You now use the
navigateToURL()
method in the flash.net package,
which takes a URLRequest object rather than a String for the URL:
navigateToURL(new URLRequest('url'));
The load and unload events
The
load
event, which was previously deprecated, has been removed.
The
unload
event has been moved to the SWFLoader object and is dispatched whenever a
loaded SWF file is removed using the
LSWFLoader.unload()
method.
Validation and layout methods
The
invalidateLayout()
,
invalidate()
,
layoutChildren()
and
draw()
methods have
been removed. Subclasses now override the
updateDisplayList()
method, which is now
protected instead of public.
Drawing methods
The Adobe Flash drawing API methods, such as
beginFill()
and
moveTo()
, are no longer
inherited by UIObject; they are now methods of the Graphics object, which you access with
the
the
graphics
property of Sprite, which UIObject inherits.
NO
TE
This change formerly applied to the UIObject class, but because UIObject and
UIComponent have been combined into a single base class, the change now applies to
the UIComponent class.
UIComponent have been combined into a single base class, the change now applies to
the UIComponent class.
NO
T
E
This change formerly applied to the UIObject class, but because UIObject and
UIComponent have been combined into a single base class, the change now applies to
the UIComponent class.
UIComponent have been combined into a single base class, the change now applies to
the UIComponent class.
NO
TE
This change formerly applied to the UIObject class, but because UIObject and
UIComponent have been combined into a single base class, the change now applies to
the UIComponent class.
UIComponent have been combined into a single base class, the change now applies to
the UIComponent class.