Flex101£ºÓÃFlex´´½¨Swipe·°å/SlideЧ¹û
±¾ÎÄÀ´×Ô£ºhttp://www.insideria.com/2009/12/flex-101-creating-an-swipeslid.html
ÔÚ±¾ÀýÖУ¬ÎÒÃǽ«Ì¸ÂÛÔõÑù´´½¨swipe/slideЧ¹û¡£µ±Äã´ÓÒ»¸öÆÁÄ»·µ½ÁíÍâÒ»¸öÆÁÄ»ÉÏ£¬Äã¾³£¿ÉÒÔ¿´µ½´¥ÃþÉèÊ©Àï³öÏ֓ת±ä”£¬ÎÒÃǾÍÊÇÊܵ½ÁËËüµÄÆô·¢¡£Ò»Ò³ÄÚÈÝ´Ó»¬ÒƵ½Ò»±ß£¬ÁíÍâÒ»Ò³´ÓÁíÍâÒ»±ßÎ޷컬¶¯½øÀ´¡£
ÔÚÎÒÃǽøÒ»²½Á˽âÈçºÎ»ñµÃÕâÑùµÄЧ¹û֮ǰ£¬ÎÒÃÇÊ×ÏÈÀ´¼ìÑéÏÂʵ¼ÊµÄ¶¯Ì¬Ð§¹û¡£µã»÷ÏÂÃæµÄ“Animate!”°´Å¥£¬Òý·¢Ð§¹û¡£Äã¿ÉÒԸıäÏÂÀʽÇåµ¥ÖеÄÑ¡¶¨ÌõÄ¿£¬ÒԸı䶯»µÄ·½Ïò¡£
Õ¦Ò»¿´ÉÏÈ¥£¬Äã¿ÉÄÜ»áÏë“°¡£¬Õâô¼òµ¥“¡£È»ºóÈÏΪһ°ãµÄÏÔʾÓëÒþ²ØЧ¹û¾Í¿ÉÒԳɹ¦¡£Èç¹ûÄã´¦ÀíµÄÄÚÈÝÊÇmx: ViewStack£¨ÕýÈçÕâ¸ö·¶ÀýµÄÒ»Ñù£©ÀïµÄ£¬Çé¿ö¾Í²»Ò»¶¨ÈçÄãÏëÏñµÄÄÇô¼òµ¥ÁË¡£Ê¹Óò»Í¬µÄÏÔʾºÍÒþ²Ømx:MoveЧ¹ûʵ¼ÊÉÏ»á²úÉú´ô°åºÍ²»Á¬¹áµÄ¶¯»£¬ÕâÑù¾Í²»ÄÜ´ïµ½ÉèÏëµÄЧ¹û¡£
ÔÚÕâ¸ö·¶ÀýÖУ¬ÎÒʹÓÃÁËÒ»¸ömx:Im ageÀ´ÏÔʾ“ץȡ“ÏÖÔÚä¯ÀÀµÄÄÚÈÝ£¬²¢Ê¹ÓÃÁËÒ»¸ömx:ParallelЧ¹ûÀ´¶¯»»¯ÐµÄÄÚÈݵĻ¬ÈëºÍͼƬµÄ»¬³ö¡£Í¨¹ýץȡÏÖÔÚ¿ÉÊÓ×é¼þµÄ¿ìÕÕ£¬Äã¿ÉÒÔ¶¯»»¯¿ìÕÕ£¬¶øͬʱÒþ²Øʵ¼ÊÄÚÈÝ(ÒÔÏÔʾеÄÄÚÈÝ)¡£Õâ¸ömx:ParallelЧ¹ûÈÃÿ¸öÄÚÈݶ¼Í¬²½£¬ÎÞ·ìÁ¬½Ó£¬Óû§ÍêÈ«²»»á×¢Òâµ½¡£
ÔÚ±¾ÀýÖУ¬ÎÒÓÐЩСµÄ£¬¾²Ì¬³ß´çµÄÄÚÈÝ£¬ºÜÈÝÒ׾Ͷ¯»»¯¡£ÕâÖÖ·½·¨Ò²¿ÉÓ¦ÓÃÓÚ´óЩµÄÎïÌå¡£²»¹ýÏÔʾ/Òþ²ØµÄÎïÌ嶼Ӧ¸ÃÊÇͬÑùµÄ³ß´ç¡£ÕâÆäʵҲÊÇAdobe Max£¨ÔÚÏÂÃæµÄÊÓƵÀµÄ¶àµã´¥Ãþkeynote demoÀïµÄÒ»Ö¸·°åʹÓõķ½·¨¡£
Äã¿ÉÒÔ¿´µ½£¬ÈçÏÂËùʾ£¬»ù±¾µÄ²¼¾Ö´úÂë·Ç³£¼òµ¥£¬Ö±½ØÁ˵±¡£ÓиöÃæ°å£¬°üÀ¨ÁËViewStackÀïµÄÄÚÈÝ¡£Î¨Ò»¿ÉÄÜ¿´ÉÏÈ¥±È½ÏÆæ¹ÖµÄ¾ÍÊÇͼƬ£¬¿ÉÊÓºÍincludeInLayout ¶¼ÊÇfalse¡£Õâ¾ÍÊǻᱻÓÃÀ´½«¶¯»ÄÚÈÝ´ÓÆÁÄ»ÉϹرյÄͼƬ¡£
<mx:Panel
title="Swipe Effect Demo"
horizontalCenter="0"
verticalCenter="0"
width="300"
height="300"
layout="absolute"
horizontalScrollPolicy="off"
verticalScrollPolicy="off">
<mx:ViewStack
id="content"
width="100%" height="100%">
<mx:Canvas
width="100%" height="100%"
showEffect="{showEffect}" >
<mx:DateChoos
Ïà¹ØÎĵµ£º
AMFÊÇAdobe¶À¼Ò¿ª·¢³öÀ´µÄͨÐÅÐÒ飬Ëü²ÉÓöþ½øÖÆѹËõ£¬ÐòÁл¯¡¢·´ÐòÁл¯¡¢´«ÊäÊý¾Ý£¬´Ó¶øΪFlash ²¥·ÅÆ÷ÓëFlash RemotingÍø¹ØͨÐÅÌṩÁËÒ»ÖÖÇáÁ¿¼¶µÄ¡¢¸ßЧÄܵÄͨÐÅ·½Ê½¡£ÈçÏÂͼËùʾ£º
AMF(Action Message Format)ÊÇÒ»ÖÖ binary formatµÄ×ÊÁÏÐÍ̬£¬Í¸¹ý AMF overHTTPµÄ·½Ê½½«flash¶Ë×ÊÁϱàÂëºó´«»Øserver£¬server¶ËµÄ ......
//»ñµÃÆÁÄ»µÄ·Ö±æÂÊ
var
x:Number=Capabilities.screenResolutionX;
var
y:Number=Capabilities.screenResolutionY;
Alert.show(
"x="
+x+
"y="
+y);
µÚ¶þÖÖ·½·¨
Alert.show(stage.fullScreenWidth+
"=="
+stage.fullScreenHeight);
//»ñµÃstage£¨¹¤×÷Çø£ ......
AdobeÔÚ¿ª·¢Flex×îÓÐÀûµÄ¹¤¾ß¾ÍÊÇFlex Builder£¬È»¶ø£¬¹¤ÓûÉÆÆäÊ£¬±ØÏÈÀûÆä"¼ü"£¬¿ìËÙ¼ü¶ÔÒ»°ã¿ª·¢ÕßÀ´Ëµ¶¼·Ç³£ÓÐÓ㬷ǵ«Èç´Ë£¬ºÜ¶à¿ìËÙ¼üÓë×éºÏ¼üÊÇ»áÓëÆäËûÈíÌå»òϵͳ¶¼ÓÐÀ×֮ͬ´¦£¬¾Ù¸öÀý×ÓÀ´Ëµ£¬Ctrl + C¾ÍÊǸ´ÖÆ£¬Ctrl + V¾ÍÊÇÌùÉÏ£¬¿´¿´Ðí¶à×÷ҵϵͳÓë±à¼ÈíÌåÊDz»ÊǶ¼Ò»ÑùÄØ£¿ÈôÄãÓÐ×¢Òâµ½¾Í»á²»ÄÑ·¢ÏÖ£¬ÆäʵFlex ......
1.¸´ÖÆÄÚÈݵ½ÏµÍ³¼ôÌù°å
System.setClipboard(strContent);
2.¸´ÖÆÒ»¸öArrayCollection
//dummy solution( well, it works )
var bar:ArrayCollection = new ArrayCollection();
for each ( var i:Object in ac ){
bar.addItem( ......