Groups
Conversations
All groups and messages
Send feedback to Google
Help
Sign in
Groups
Flex ObjectHandles
Conversations
About
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 AM
3/22/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Link
Report message as abuse
Sign in to report message as abuse
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
3/22/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Link
Report message as abuse
Sign in to report message as abuse
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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