[Extendflash]
Resetting the transformation point of other symbols within a custom
tool
Chris Fourney
c-y-d at rogers.com
Sat May 20 00:05:37 BST 2006
Ive a problem where I need to have a tool reset the transformation point of an unselected object. Whenever I try and change the selection in order to use fl.getDocumentDOM().setTransformationPoint ({x,y}); on the symbol, the tool fails to change the selection to the desired symbol.
Im setting the selection fine, but it seems the tool doesnt like it at all when you change the current selection to anything else -- or if you even select nothing. The setTransformationPoint method only seems to work on the document level, and not at a symbol level. Is there any way I can reset these transformation point on the symbol level?
such as fl.getDocumentDOM().getTimeline().layers[0].fames[0].elements[0].setTransformationPoint ({x,y});
The problem arises when the tool moves an unselected object via its matrix, but when using the matrix to move the object, the transformation point stays in the same place. I need this transformation point to follow the matrix movement too.
Thanks for the help,
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.flashguru.co.uk/pipermail/extendflash/attachments/20060519/9f87c931/attachment.htm
More information about the Extendflash
mailing list