Flex ´´½¨Ò»¸ö×Ô¶¨Òå·ç¸ñµÄHRule»òVRule
FlexÖÐÈçºÎͨ¹ýstrokeWidth, strokeColorºÍshadowColorÑùʽ£¬´´½¨Ò»¸ö×Ô¶¨Òå·ç¸ñµÄHRule»òVRule
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white">
<mx:ApplicationControlBar dock="true">
<mx:Form>
<mx:FormItem label="stokeWidth:">
<mx:HSlider id="strokeWidthSlider"
minimum="0"
maximum="20"
value="2"
liveDragging="true"
snapInterval="1"
tickInterval="1"
dataTipPrecision="0"/>
</mx:FormItem>
<mx:FormItem label="strokeColor:">
<mx:ColorPicker id="strokeColorColorPicker"
selectedColor="red"/>
</mx:FormItem>
<mx:FormItem label="shadowColor:">
<mx:ColorPicker id="shadowColorColorPicker"
selectedColor="blue"/>
</mx:FormItem>
</mx:Form>
</mx:ApplicationControlBar>
<mx:HRule id="hrule"
strokeWidth="{strokeWidthSlider.value}"
strokeColor="{strokeColorColorPicker.selectedColor}"
shadowColor="{shadowColorColorPicker.selectedColor}"
width="100%"/>
</mx:Application>
Ïà¹ØÎĵµ£º
Ô´xmlÎļþ
<?xml version="1.0" encoding="iso-8859-1"?>
<books>
<stock>
<name>The Picasso Code</name>
<author>Dan Blue</author>
<category>Fiction</category>
<description>Cubist paintings reveal a secret society of people ......
We're going to keep this post lean and mean, and get down to
business with 10 Tips that will keep your Flex applications fast, lean,
and responsive.
Rule # 1: Clean up after yourself
In general, it is good practice to maintain clean code. Not only
in the sense of having properly formatted and ......
Flex ÖпÉÄܵ¼ÖÂÄÚ´æÐ¹Â¶µÄµØ·½
ÊÕ¼¯Á˲»ÉٵĻᵼÖÂÄÚ´æÐ¹Â¶µÄÇé¿ö£º
ʼþ¼àÌý£º
¶Ô¸¸¼¶¶ÔÏó¼ÓÁ˼àÌýº¯Êý£¬»áÔì³ÉÄÚ´æÐ¹Â¶£¬Àý£º
override protected function mouseDownHandler(…):void
{
systemManager.addEventListener(“mouseUp”, mouseUpHandler);
......
½â¾ö£º
ÔÚÏú»Ù¶ÔÏóµÄʱºò£ ......
Ñ¡¶¨¾ØÐεÄÒ»¸ö¶¥µãΪÆðµã£¬¿ªÊ¼»
x0:¶¥µãºá×ø±ê
y0:¶¥µã×Ý×ø±ê
x1:ˮƽÏßÉÏÁíÒ»¶¥µãµÄºá×ø±ê
y1:ˮƽÏßÉÏÁíÒ»¶¡µãµÄ×Ý×ø±ê
private function drawDottenRect(g:Graphics,
x0:Number,
&nbs ......