MACROMEDIA FLASH MX 2004-USING FLASH Use Manual page 457

Hide thumbs Also See for FLASH MX 2004-USING FLASH:
Table of Contents

Advertisement

// Call skewSelection() to carry out the resizing command.
if (inputIsValid ) {
fl.getDocumentDOM().skewSelection(xSkew, ySkew, edge);
}
}
Second, create a file named skewlist.xml and place it in your Commands folder. Place the
following code into the file and save the file:
<dialog id="skewlist-dialog" title="Skew Selection" buttons="accept, cancel">
<grid>
<columns>
<column/>
<column/>
</columns>
<rows>
<row align="left">
<label value="Skew x: " control="xSkew" align="left"/>
<popupslider id="xSkew" minvalue="-180" maxvalue="180"/>
</row>
<row align="left">
<label value="Skew y:" control="ySkew" align="left"/>
<popupslider id="ySkew" minvalue="-180" maxvalue="180"/>
</row>
<row align="left">
<label value="Edge:" control="edge" align="left"/>
<listbox id="edge" rows="5">
<listitem label="top center"/>
<listitem label="right center"/>
<listitem label="bottom center"/>
<listitem label="left center"/>
</listbox>
</row>
</rows>
</grid>
</dialog>
The
command now appears on the Commands menu. Draw a shape on the stage, and
skewlist
select it with the pointer tool. If you select the
the dialog box defined by skewlist.xml appears, as shown in the following figure:
command from the Commands menu,
skewlist
<listbox>
457

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents