Posted 21 January 2011 - 03:59 PM
Thank you all for your help.
Posted 22 January 2011 - 06:24 PM
Posted 25 January 2011 - 09:33 PM
I think what you're looking for is the dom.redrawSmartShape() method. Calling that should trigger your shape's RedrawSmartShape handler, which doesn't seem to be documented in the Extending FW doc. Take a look at the .jsf files in C:\Program Files\Adobe\Adobe Fireworks CS5\Configuration\Auto Shape Tools for examples of shapes that listen for this event.
It seems like I should be able to do something like fw.selection.controlPoints.x = 300; but I haven't been able to figure out the exact calls to do this. Do they exist? If so, where/how?
You can also take a look at the KeyboardResize.js file in my extension: http://johndunning.c.../KeyboardResize
When resizing the selection via the keyboard, this extension checks whether an element in the selection is an auto shape. If it is, it sets a new width and height on the shape's customData and then calls dom.redrawSmartShape(). Most of the built-in shapes seems to look for width and height values on customData to determine their size. So setting the size values on customData and then calling the redrawSmartShape() method should cause the shapes to redraw at the new size.
Posted 26 January 2011 - 01:44 PM
Thank you again, always nice to have someone with experience chime in, makes things that much easier.