Learning Flex in a week – Day1
Flex,Flash,Flash
Player,AIR¸ÅÊö
ÁË
½âFlex Builder
Flex
Builder¹¤×÷¿Õ¼ä
ÁË
½âFlexÔ¤±àÒë×é¼þ
ÁË
½âMXML
×é
¼þµÄÊý¾Ý°ó¶¨
´¦
ÀíÓû§Ê¼þ
ÁË
½âʼþ¶ÔÏó
ʹ
ÓÃActionScriptÌí¼ÓʼþÕìÌýÆ÷
ʹ
ÓÃHttpService»ñÈ¡Êý¾Ý
Learning Flex in a week – Day2
ÔÚ
DataGridÖÐÏÔʾÊý¾Ý
²¼
¾ÖÈÝÆ÷µÄʹÓÃ
´´
½¨×Ô¶¨ÒåµÄMXML×é¼þ
ʵ
ÏÖValue ObjectÀà
´´
½¨×Ô¶¨Òåʼþ
´´
½¨×Ô¶¨ÒåʼþÀà
×Ô
¶¨ÒåÏîÄ¿äÖȾÆ÷
̽
Ë÷ Flex Bulider µÄʹÓÃСÇÏÃÅ
Learning Flex in a week – Day3
Êý
¾ÝÑéÖ¤
ʹ
ÓÃÔ¶³Ì¶ÔÏóÀ´´«ÊäÊý¾Ý
¸ñ
ʽ»¯Êý¾Ý
´Ó
Áбí¿Ø¼þÖÐÍÏ·ÅÊý¾Ý
ʹ
ÓÃE4XÀ´¹ýÂËXML
²¿
ÊðFlexºÍAIRÓ¦ÓÃ
Learning Flex in a week – Day4
Ö´
Ðе¼º½ÈÝÆ÷
Ƕ
ÈëͼÏñ
Ƕ
Èë×ÖÌå
´´
½¨»ùÓÚÔ¼ÊøµÄ²¼¾Ö
Ϊ
MXML×é¼þÓ¦ÓÃÑùʽ
½á
ºÏAdobe CS3ÖÆ×÷×é¼þƤ·ô
´´
½¨ÊÓͼ״̬
¶¯
»£ºÐÐΪºÍÌØЧ
½á
ºÏ»æͼAPI»æÖÆͼÐÎ
±à
ÂëʵÏÖ×é¼þƤ·ô
......
ÓÃFlex4¼ÓÔØFlex3µÄ×é¼þʱ£¬·¢ÏÖÁËÕâ¸öÎÊÌ⣺
µ±ÓÃsparkÌí¼ÓÒ»¸ömx×é¼þʱ²»»áÓÐÎÊÌ⣬µ«µ±Õâ¸ömx×é¼þÖл¹ÓÐÆäËû×é¼þ
ÀýÈç<mx:HBox><mx:Canvas/></mx:HBox>±»Ìí¼Óµ½<s:Group></s:Group>
(×¢£ºÍ¨¹ýAS´úÂëʹÓÃaddElement()Ìí¼Ó£¬¶ø²»ÊÇÖ±½Óдµ½mxmlÖÐ)
stage.frameRate»á˲¼ä´ïµ½1000£¡
Ö®ºó»á×Ô¶¯»Ö¸´µ½Ä¬ÈϵÄ֡Ƶ(Èç¹û²»ÊÖ¶¯É趨£¬»áÊÇ24)
Õâʱ²»Óõ£ÐÄʲôÎÊÌ⣬
µ«Èç¹ûframeRate´ïµ½1000µÄÕâ¶Îʱ¼äÖУ¬Ìí¼ÓÁËÒ»¸öEnterFrameʼþ£¬
²¢ÇÒÔÚEnterFrameµÄÏìÓ¦º¯ÊýÖУ¬µ÷Õûij¸ö×é¼þµÄλÖã¬
frameRate¾Í²»»á»Ö¸´»Ø24£¬¶øÊÇÒ»Ö±³ÖÐø1000£¬Ö±µ½È¡ÏûÁËEnterFrameΪֹ
µ«¼´Ê¹Ã»ÓÐʹÓÃEnterFrameº¯Êý£¬Õâ¸öʱ¼äÒ²»á³ÖÐø0.3Ãë×óÓÒ£¬
Èç¹ûÕâÆÚ¼äÓÐͼÏñ±ä»¯£¬»áÃ÷ÏԸоõµ½¿¨ÁËһϣ¬
Òò´Ë¾¡Á¿±ÜÃâд´úÂëʱFlex3,4»ìÓã¬ÄÜÓÃFlex4µÄ×é¼þ¾¡Á¿ÓÃFlex4µÄ×é¼þ
Ô´ÂëÈçÏ£º
Application.mxml:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" f ......
£¨Ò»£©ÈëÃÅ
Flex¼¯³ÉÒ»¸öLog¿ò¼Ü£¬¿ÉÒÔÍê³ÉºÜ¶àÓÃtrace()×ödebugʱÍê³É²»Á˵ŦÄÜ
Êä³ölogʱ¿ÉÒÔʵÏֵַȼ¶£¨¹²5+1¼¶£©£¬ÓùýÂËÆ÷Ö¸¶¨Êä³öµÄÀ࣬ÒÔ¼°Êä³ö·½Ê½£¨Ä¬ÈÏΪtrace£©
ÐèÒªÓõ½µÄÀà
¸ÃÀàλÓÚmx.logging°üÖУ¬
¹²ÐèÒªÈý¸öÀàºÍÒ»¸ö½Ó¿Ú
mx.logging.Log – Ö÷À࣬Óм¸¸ö¾²Ì¬·½·¨£¬Ìí¼Ó/ÒƳýTraceTargetºÍ»ñÈ¡ILogger
mx.logging.LogEventLevel – ¶¨ÒåÁËlogµÈ¼¶µÄ³£Á¿
mx.logging.targets.TraceTarget – loggerÆ÷£¬¶¨ÒålogÊä³öµÈ¼¶£¬¹ýÂËÆ÷ºÍÊä³ö·½Ê½
mx.logging.ILogger – ÓÉLog.getLogger(‘ClassName’)»ñÈ¡µ½µÄLogger·¢ËÍÆ÷
ʹÓò½Öè
1.. н¨TraceTarget
var traceTarget:TraceTarget = new TraceTarget();
traceTarget.filters = ['spark.components.*','myPackage.MyClass']; //´´½¨¹ýÂËÆ÷£¬¿ÉÒÔÖ±½ÓÓÃclassÃû£¬Ò²¿ÉÒÔʹÓÃ*Àà¹ýÂËÕû¸ö°ü
traceTarget.filters = [*]; //ÕâÑùд¹ýÂËÆ÷£¬¾ÍÊÇÊä³öÈ«²¿ÀàÁË
traceTarget.includeDate = true; //Êä³öÐÅÏ¢ÊÇ·ñ°üº¬ÈÕÆÚ
traceTarget.includeTime = true; //Êä³öÐÅÏ¢ÊÇ·ñ°üº¬Ê±¼ä
traceTarget.includeLevel = true; //Êä³öÐÅÏ¢ÊÇ·ñ°üº¬µÈ¼¶
traceTarget.includeCatego ......
´«Í³µÄÔÚFlex¹¤³ÌÖÐÌí¼ÓModuleµÄ·½·¨ÊÇ£ºÔÚFlashBuilderÖÐÓÒ¼ü¹¤³ÌĿ¼->Porperties->Flex Modules, È»ºó¾Í¿ÉÒÔadd/edit/removeÐèÒªµÄmoduleÁË£¬
µ«ÎÊÌâ ÊÇÎÞÂÛÌí¼Ó¶àÉÙmodule¶¼Òªµã»÷add°´Å¥Ò»¸öÒ»¸öÌí¼Ó! ÏñÎÒÃǵÄÏîÄ¿Ò»¸ödemo¾ÍÓÃÁ˺ü¸Ê®¸ömodule£¬Ò»¸öÒ»¸öÌí¼Ó¿ÉÒª·³ËÀÁË
ÍøÉÏËÑ‘ÅúÁ¿Ìí¼Ómodule’ûÓнá¹û£¬ÓÚÊÇ×Ô¼º×ÁÄ¥ÁËÒ»ÏÂ
ÔÀ´moduleµÄÅäÖÃÐÅÏ¢¾Í²ØÔÚ¹¤³ÌĿ¼ÏµÄ.actionScriptPropertiesÖУ¨PS:¸ÃÎļþÔÚFBÖÐÊÇÒþ²ØµÄ£¬ÐèҪȥÎļþĿ¼Öп´£©
.actionScriptPropertiesÎļþ¸ñʽÊÇxmlµÄ
moduleµÄÅäÖÃÐÅÏ¢¾ÍÔÚ.actionScriptPropertiesÎļþÖÐ<modules></modules>±êÇ©ÖÐ
ÀýÈçÎÒµÄÊÇ£º
.actionScriptProperties
…
<modules>
<module application=”src/index.mxml” destPath=”com/ihaveu/Module1.swf” optimize=”true” sourcePath=”src/com/ihaveu/Module1.mxml”/>
<module application=”src/index.mxml” destPath=”com/ihaveu/Module2.swf” optimize=”true” sourcePath=”src/com/ihaveu/Module2.mxml” ......
1£ºhttp://bbs.9ria.com/viewthread.php?tid=44441
2£ºhttp://help.adobe.com/en_US/flex/using/WSA95C9644-B650-4783-B5C0-D2C7F95A23E3.html#WS46970071-A39D-49de-B881-66F639787305
3£ºhttp://flex4jiaocheng.com/blog/268
4£ºhttp://www.k-zone.cn/zblog/post/flash-builder-gumbo-customer-sparkskin.html
5£ºhttp://scalenine.com/blog/category/examples/ (±È½Ï¿á£¬²»¹ýÊÇbeta°æµÄFlex4)
6£ºhttp://bbs.airia.cn/FLEX/thread-8427-1-2.aspx ......
http://www.k-zone.cn/zblog/post/flex-compiler-parameter.html
ÏÂÃæµÄÁбíÌṩÁËmxmlcµÄһЩ¿ÉÑ¡²ÎÊý£º
ÊôÐÔ
ÃèÊö
accessible=true|false
ÊÇ·ñ¾ßÓпÉÀí½âÐÔ
actionscript-file-encoding
ÉèÖÃÎļþ±àÂë
advanced | mxmlc -help advanced
¼ìË÷mxmlc¸ß¼¶²ÎÊý
allow-source-path-overlap=true|false
ÑéÖ¤source-pathÖж¨ÒåµÄ·¾¶ÊÇ·ñ³öÏÖÖصþ£¬³öÏÖ»¥Ïà°üº¬µÄÏÖÏó
as3=true|false
ÊÇ·ñʹÓÃas3¶ÔÏóÄ£ÐÍ£¬Ä¬ÈÏΪture£¬Èç¹ûÑ¡false£¬ÔòesÒ»¶¨Òª¶¨ÒåΪtrue
benchmark=true|false
ÊÇ·ñÊä³ö±àÒëʱÆÚµÄÏêϸÄÚÈÝ£¬Ä¬ÈÏÊÇtrue
context-root
context-path
ÉèÖÃflex-services.xmlÖеÄ{context.root}£¬Èç¹ûûÓÐÏêϸ¶¨Ò壬ÄÇflex½«ÓÿÕÖµ¡£
contributor name
creator name
Ìí¼Óµ½swfÎļþÀnameÊÇ×÷ÕßµÄÃû×Ö
date text
debug=true|false
ÊÇ·ñ¿ÉÒÔ½øÐе÷ÊÔ
debug-password string
Ô¶³Ìµ÷ÊÔÓã¬ÉèÖÃÃÜÂë
default-background-color int
ĬÈϱ³¾°ÑÕÉ«
default-frame-rate int
ÉèÖÃÖ¡Êý£¬Ä¬ÈÏΪ24
default-script-limits
¶¨ÒåÓ¦Óýű¾³ÌÐòµÄÖ´ÐÐÏÞÖÆ
max-recursion-depth
×î´óµÄµÝ¹éĬÈÏÊÇ£º1000
max-execution-time
×î´óµÄÖ´ÐÐʱ¼äÄ ......
×ܼǼÊý:792; ×ÜÒ³Êý:132; ÿҳ6 Ìõ;
Ê×Ò³ ÉÏÒ»Ò³ [1] 2
[3] [4] [5] [6] [7] [8] [9] [10] ÏÂÒ»Ò³ βҳ