flex »ÐéÏß¾ØÐÎËã·¨
Ñ¡¶¨¾ØÐεÄÒ»¸ö¶¥µãΪÆðµã£¬¿ªÊ¼»
x0:¶¥µãºá×ø±ê
y0:¶¥µã×Ý×ø±ê
x1:ˮƽÏßÉÏÁíÒ»¶¥µãµÄºá×ø±ê
y1:ˮƽÏßÉÏÁíÒ»¶¡µãµÄ×Ý×ø±ê
private function drawDottenRect(g:Graphics,
x0:Number,
y0:Number,
x1:Number,
y1:Number):void{
drawDottedHorizontalLineTo(g,y0,x0,x1);
drawDottedVerticalLineTo(g,x0,y0,y1);
drawDottedHorizontalLineTo(g,y1,x1,x0);
drawDottedVerticalLineTo(g,x1,y0,y1);
}
private function drawDottedHorizontalLineTo(
g:Graphics,
y : Number,
x0 : Number,
x1 : Number
) : void
{
if( x0 < x1){
g.moveTo(x0, y);
for(var x:Number = x0 + start; x<x1; x+= dotLength + gap){
if( x + dotLength + gap <= x1){
g.lineTo(x + dotLength,y);
g.moveTo(x + dotLength + gap, y);
Ïà¹ØÎĵµ£º
Flexʼþ»úÖÆ
Flexʼþ»úÖÆÊǹ۲ìÕßģʽ£¬¼´Ê×ÏÈҪע²áʼþ£¬Ê¼þ·Ö·¢ºóͨ¹ýʼþÏìÓ¦º¯Êý½øÐд¦Àí¡£
ÀýÈçÔÚAS3ÖУº
button.addEventListener(“click”,onClick);//Ïòbutton×¢²áÒ»¸öclickʼþ
internal function onClick(evt:MouseEvent):void{txt.text=“click a button!”;}//ʼþÏìÓ¦º¯Êý
ÄÇÃ ......
public function submit():void{
//ÒªÇëÇóµÄURL
var request:URLRequest = new URLRequest("
http://localhost:8086/test.do
") ;
var load:URLLoader = new URLLoader() ;
//URL²ÎÊý
& ......
--Ó¢ÎÄ
mxmlc -locale=en_US -allow-source-path-overlap=true
-include-resource-bundles=mf,collections,containers,controls,core,effects,formatters,logging,SharedResources,skins,states,styles,validators
-source-path=D:/UBAS_HOME/ClientCode/demo/client/code/MainFrame/assets/locale/en_US
-output=E:/ ......
Flash/FlexÒ²Ö§³Ö»ùÓÚSocketµÄÍøÂçÁ¬½Ó £¬·þÎñÆ÷¶Ë¿ÉÒÔÊÇC++,VB,C#,JavaµÈÈÎÒ»ÓïÑÔ¿ª·¢¡£¼àÌýÒ»¸öÍøÂç¶Ë¿Ú±ã¿ÉÒÔ½ÓÊÕµ½Flash/Flex¿ª·¢µÄ¿Í»§¶ËµÄÁ¬½Ó¡£
ActionScript 3.0ÌṩÁËͨ¹ýSocketÁ¬½ÓµÄ·½Ê½Óë·þÎñÆ÷¶ËͨÐÅ¡£ÕâµãÊdz¬Ô½´«Í³B/S½á¹¹µÄÖØÒªÌØÕ÷¡£ÕâÑùʹµÃÍø ......
Ô´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 ......