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,
skewlist
and select it with the pointer tool. If you select the
menu, the dialog box defined by skewlist.xml appears, as shown in the following figure:
634
XML to UI
command from the Commands
skewlist
Need help?
Do you have a question about the FLASH 8-USING FLASH and is the answer not in the manual?