Macromedia flex 2-migrating applications to flex 2 Manual De Usuario
92
Flex Classes
mx.managers.DragManager
Instead of setting event.handled inside the dragEnter event listener, you must call the
DragManager.acceptDragDrop(event.target)
method.
You cannot set the
action
property of the event object. Instead, you must call the
setFeedback()
method. For example, change the following code:
event.action=DragManager.Link;
to the following:
DragManager.showFeedback(DragManager.LINK);
This applies to all actions:
MOVE
,
LINK
,
COPY
,
NONE
.
The signature to the
doDrag()
method has changed. There is no longer an
imageInitObj
argument, and there are two new arguments:
mouseEvent
and
allowMove
.
When using the
doDrag()
method and dragging text-based controls, you should use the
currentTarget
property of the Event object instead of the
target
property. This is because
of the way text-based controls react during the bubbling event phase.
For a detailed description of these changes and a conversion example, see
.
mx.managers.FocusManager
The following table describes changes to the FocusManager class:
mx.managers.LayoutManager
The following table describes changes to the LayoutManager class:
Member
Change description
isParentOf()
Removed. Use the
contains()
method on the
DisplayObjectContainer class.
Member
Change description
updateNow()
validateNow()