flex ͼƬչʾЧ¹û
DisplayShelf.asÎļþÈçÏ£º
package file
{
import flash.events.Event;
import flash.events.EventDispatcher;
import flash.events.KeyboardEvent;
import flash.events.MouseEvent;
import flash.events.TimerEvent;
import flash.filters.DropShadowFilter;
import flash.geom.Matrix;
import flash.ui.Keyboard;
import flash.utils.Dictionary;
import flash.utils.Timer;
import mx.collections.ArrayCollection;
import mx.collections.ICollectionView;
import mx.collections.IList;
import mx.collections.XMLListCollection;
import mx.controls.Image;
import mx.core.ClassFactory;
import mx.core.IDataRenderer;
import mx.core.IFactory;
import mx.core.UIComponent;
import mx.effects.AnimateProperty;
import mx.effects.easing.Quadratic;
import mx.events.CollectionEvent;
import mx.managers.HistoryManager;
import mx.managers.IFocusManagerComponent;
import mx.managers.IHistoryManagerClient;
// defining styles on the DisplayShelf. By defining these styles here in metadata, developers will be allowed
// to specify values for these styles as attributes on the MXML tag. Note that this component doesn't actually
// use these styles...instead, the TiltingTiles it contains use them. But this component assigns _itself_ as the
// stylename for those TiltingTile instances. That makes the tiltingTile inherit all the style values defined on this component.
// Thus by defining the styles on this component, we are automatically passing them through to the contained subcomponent.
// this is a common practice for aggregating subcomponents.
[Style(name="borderThickness", type="Number")]
[Style(name="borderColor", type="Number")]
// defining the change event. This event is dispatched whenever the selectedIndex of this component changes. By declaring it
// here, in metadata, we allow developers to specify a change handler on our MXML tag.
[Event("change")]
// defining the default property. By declaring dataProvider as our defaultProperty,
Ïà¹ØÎĵµ£º
ÐèÇóÈçÏ£º
µ±AIRÆô¶¯ºó£¬¼àÌýÈ«¾Ö¼üÅÌʼþ£¬¼´this.addEventListener( KeyboardEvent.KEY_DOWN, keydownHandler );
ÔËÐкóЧ¹û£º
µ±AIRÔËÐкó£¬ËäÈ»ÕýÈ·¼àÌýÁËKeyboardEvent.KEY_DOWN event£¬µ«ÊDZØÐëÒªÊó±êµã»÷Ò»ÏÂAIR²Å¿ÉÒÔ»ñÈ¡keydownHandler¡£
ÔÒò£º
1¡¢keydownHandlerµÄ»ñÈ¡ÐèÒª¼àÌýµÄ¶ÔÏó»ñµÃ½¹µã£¬µ±mouse cl ......
Adobe Flex¿ª·¢Ó봫ͳµÄWeb¿ª·¢Óкܶ಻֮ͬ´¦¡£ÕýÈ·µÄÀí½âºÍÀûÓÃÕâЩ²»Í¬Ö®´¦£¬¿ÉÒÔ°ïÖúÎÒÃÇ´´½¨¸ü·á¸»µÄÓû§ÌåÑ飬Ҳ¿ÉÒÔ·´¹ýÀ´Ôö¼ÓÍøÕ¾µÄ¿ÉÓÃÐÔÒÔ¼°ä¯ÀÀºÍ¸üÐÂËÙ¶È¡£Flex»¹ÌṩÁË´óÁ¿µÄ×é¼þºÍ¼¼Êõ¿âÀ´ÈÃWeb¿ª·¢¸ü¼ÓÇáËÉ——ËüÌṩµÄÇ¿´ó¹¤¾ßÒªÔ¶Ô¶³¬¹ý´«Í³Web 2.0ÖеÄÒì²½JavaScriptºÍXML£¨Ajax£©Ó¦ÓᣴËÍ⣬ ......
Frame Rate¶ÔFlex³ÌÐòÕ¼ÓÃϵͳ×ÊÔ´µÄ·ÖÎö£¬ÎÒÃÇͨ¹ýä¯ÀÀÆ÷²»Í¬¡¢Frame Rate²»Í¬µÄÇé¿öÏ£¬ÏµÍ³×ÊÔ´CPUµÄÀûÓÃÂʱȽϡ£
Frame RateµÄÉèÖãº
ĬÈÏFrame´«ÊäËÙÂÊÊÇ24£¬ÎÒÃÇ¿ÉÒÔÕâÑùÀ´ÉèÖã¬mxmlc -defaule-frame-rate 50 HelloWorld.mxml,ͨ¹ýÕâÒ»Óï¾äµÄÉèÖã¬
¿ÉÒÔʹFrame´«ÊäËÙÂÊΪ5 ......
modeÓÐÈýÖÖģʽ£ºProgressBarMode.EVENT£¬ProgressBarMode.POLLED £¬ProgressBarMode.MANUAL £¬Ê¼þģʽºÍÂÖѯģʽÊÇ×î³£ÓõÄģʽ¡£ ÔÚʼþģʽÏ£¬source ÊôÐÔÖ¸¶¨Éú³É progress ºÍ complete ʼþµÄ¼ÓÔØÄÚÈÝ£»ÔÚ´ËģʽÏ£¬Ó¦Ê¹Óà UILoader ¶ÔÏó¡£ ÔÚÂÖѯģʽÏ£¬source ÊôÐÔÖ¸¶¨¹«¿ª bytes ......
ʲôÊÇAsyncToken£¿¹Ù·½ÎĵµÊÇÕâÑùÃèÊöµÄ£º"Õâ¸öÀàÕë¶ÔÒì²½RPC²Ù×÷ÌṩÁËÒ»¸öÓÃÀ´ÉèÖöîÍâµÄ»òÕßÁîÅÆ¼¶Êý¾ÝµÄµØ·½¡£ËüÒ²ÔÊÐíÒ»¸öIResponder×÷Ϊһ¸ö¶ÀÁ¢µ÷Óñ»¸½¼Ó¡£Õâ¸öAsyncTokenÄܹ»ÔÚResultEventºÍFaultEventÖÐÓÃtokenÊôÐÔÀ´ÒýÓá£"
Èç¹ûÄã¶ ......