ObjectHandles no longer works in Flex 4.6 originalGeometry is Null for no reason.

88 views
Skip to first unread message

Craig McLeod

unread,
Mar 22, 2012, 5:31:30 AM3/22/12
to Flex ObjectHandles
Hi,

I recently upgraded from flex 4 to flex 4.6 and object handles has
died completely.

The problem is that when moving single objects, the variable
originalGeometry is basically null.

if( current.hasOwnProperty("x") ) current.x = translation.x +
originalGeometry.x;
if( current.hasOwnProperty("y") ) current.y = translation.y +
originalGeometry.y;

if( current.hasOwnProperty("width") ) current.width =
translation.width + originalGeometry.width;
if( current.hasOwnProperty("height") ) current.height =
translation.height + originalGeometry.height;
if( current.hasOwnProperty("rotation") ) current.rotation =
translation.rotation + originalGeometry.rotation;

updateHandlePositions( current );

so lines 811 onwards fail.

Anyone got an idea or a fix?

Please and thank you in advance.
Regards
Craig

Craig McLeod

unread,
Mar 22, 2012, 6:30:54 AM3/22/12
to Flex ObjectHandles
Add the following:

var originalGeometry2:DragGeometry =
originalModelGeometry[ selectionManager.currentlySelected[0] ]


applyTranslationForSingleObject( selectionManager.currentlySelected[0],
translation, originalGeometry2 );
Reply all
Reply to author
Forward
0 new messages