flex ÓÅ»¯¼¼ÇÉ ÊÕ¼¯[ÌáÉýÐÔÄÜ]
1¡¢µ±´´½¨Ò»¸öÊý×éµÄʱºò±ÜÃâÓÃnew²Ù×÷·û,Óà var a:Array = [];¶ø²»ÓÃvar a:Array = new Array();
2¡¢¿ìËٵĸ´ÖÆÒ»¸öÊý×飺
var copy : Array = sourceArray.concat ();
3¡¢ÉèÖÃÒ»¸öÊý×éµÄÖµÊǷdz£Ã¦µÄ£º
employees.push ( employee ); employees[2] = employee;
4¡¢´ÓÒ»¸öÊý×éÖÐÈ¡µÃÖµµÄËÙ¶ÈÊÇÉèÖÃÒ»¸öÊý×éÖµµÄÁ½±¶¿ì£º
var employee : Employee = employees[2];
5¡¢µ±²»ÐèÒªÒ»¸öÀàµÄʵÀýµÄʱºò¾¡Á¿Óþ²Ì¬µÄÊôÐÔ»ò·½·¨£º
package
{
public final class StringUtils
{
public static function trim(s:String):String
{
var trimmed:String; // implementation...
return trimmed;
}
}
}
6¡¢ÔÚÕû¸ö³ÌÐòµÄÉúÃüÖÜÆÚÖж¼²»»á¸Ä±äµÄ±äÁ¿ÓÃconst¶¨Òå³£Á¿£º
public const APPLICATION_PUBLISHER : String = "Company, Inc. ";
7¡¢µ±Ò»¸öÀ಻ÐèÒªÓÐ×ÓÀàµÄʱºòÓ¦¸Ã½«¸ÃÀàÉùÃ÷ΪfinalÀàÐ͵ģº
public final class StringUtils
8¡¢±äÁ¿ºÍ·½·¨µÄ³¤¶ÈÔÚAs3Öв¢²»Ó°ÏìʲôÐÔÄÜ£¬µ«ÔÚ±ðµÄÓïÑÔÖпÉÄܾÍÓÐÓ°Ï죺
someCrazyLongMethodNameDoesntReallyImpactPerformanceTooMuch();
9¡¢½«Óï¾äдÔÚÒ»ÐÐÉÏÃæ²¢²»»áÓ°ÏìAS3³ÌÐòµÄÐÔÄÜ£¬µ«ÔÚ±ðµÄÓïÑÔÖÐÈ´ÓÐÓ°Ï죺
var i=0; j=10; k=200;
10¡¢ÔÚÄÚ´æÕ¼ÓÃÉÏÃæifÓï¾äºÍswitchÓï¾ä²¢Ã»ÓÐʲôÇø±ð:
Óï¾ä£º
if ( condition ) {
// handle condition
}
ºÍÓï¾ä£º
switch ( co
Ïà¹ØÎĵµ£º
Ô´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 ......
×î½ü×öÓÎÏ·µÄʱºò£¬·¢ÏÖÍ˳öµÇ½ʱURLÉÏ»á×Ô¶¯¼ÓÉÏÒ»¸ö“#”×Ö·û£¬ºÜÆæ¹Ö£¬Google+BaiduÎÞÊý´Î¶¼Ã»ÓÐÕÒµ½´ð°¸¡£½ñÌìÎÞÒâ¼ä¿´µ½¼¸¸ö
ȺÓÑÔÚ˵ͨ¹ý“BrowserManager”»ñÈ¡URL£¬ÓÚÊÇ×Ðϸ²é¿´ÁËAPI£¬ÓÖ·¢ÏÖÁË“HistoryManager”£¬Õâ¸öÎÊÌâÖÕÓÚÃ÷°×ÁË¡£
ÎÒÃÇͨ³£¿´µÄWebÒ³Ãæ
¿ÉÒÔͨ¹ýä¯ÀÀÆ÷µ ......
Ñ¡¶¨¾ØÐεÄÒ»¸ö¶¥µãΪÆðµã£¬¿ªÊ¼»
x0:¶¥µãºá×ø±ê
y0:¶¥µã×Ý×ø±ê
x1:ˮƽÏßÉÏÁíÒ»¶¥µãµÄºá×ø±ê
y1:ˮƽÏßÉÏÁíÒ»¶¡µãµÄ×Ý×ø±ê
private function drawDottenRect(g:Graphics,
x0:Number,
&nbs ......
flexºÍspring+hibernateÕûºÏÍê³Éºóweb.XML³öÏÖÈçÏ´íÎó
The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,reso ......
Ç°ÑÔ
×î½ü£¬Õý½ß˹µ×ÀïµØÖع¹flex¼¼Êõƽ̨¿ª·¢µÄ²úÆ·¡¾wizBuilder CS¡¿¡£ÒÔǰΪ¸Ï¹¦ÄÜ£¬½çÃ沿·Ö´úÂ붼дµÃºÃÂÒ£¬ÏÖÔÚÊÇʱºòÐÞÀíÏÂ×Ô¼º×÷µÄÄõÁË£¬Ë³±ãΪ²úÆ·Ìí¼Ó¶àÓïÑÔÖ§³Ö(Localization)¡£
Ö÷ÒªÈÎÎñ
´úÂëÖع¹
¶àÓïÑÔÖ§³Ö
Ìí¼Óй¦ÄÜ¡¢ÐÞ¸ÄÏÖÓй¦ÄÜ¡¢È¥µô²»ºÏÀíµÄ¹¦ÄÜ
ÐÞÕýÖع¹¹ý³ÌÖз¢ÏÖµÄ ......