Adobe FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manual page 51

Migrating applications to flex 2
Table of Contents

Advertisement

getURL() method
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.
In Flex 1.5, every UIObject inherited the
no longer the case. You now use the
which takes a URLRequest object rather than a String for the URL:
navigateToURL(new URLRequest('url'));
The load and unload events
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.
The
event, which was previously deprecated, has been removed.
load
The
event has been moved to the SWFLoader object and is dispatched whenever a
unload
loaded SWF file is removed using the
Validation and layout methods
The
invalidateLayout()
been removed. Subclasses now override the
protected instead of public.
Drawing methods
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.
The Adobe Flash drawing API methods, such as
inherited by UIObject; they are now methods of the Graphics object, which you access with
the
property of Sprite, which UIObject inherits.
graphics
getURL()
navigateToURL()
LSWFLoader.unload()
,
,
invalidate()
layoutChildren()
updateDisplayList()
method from the MovieClip class. This is
method in the flash.net package,
method.
and
method, which is now
and
beginFill()
moveTo()
methods have
draw()
, are no longer
Core classes
51

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex 2

Table of Contents