Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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,


Ïà¹ØÎĵµ£º

FLEXÖÐTreeĬÈÏÕ¹¿ªËùÓнڵã

ÕâÀï·ÖÁ½ÖÖÇé¿ö£¬Ò»ÖÖÊÇÊý¾ÝÔ´ÔÚMXMLÎļþÖУ¬È磺
<mx:XML id="treeXML" format="e4x">
<root>
<node label="֪ͨͨ¸æ¹ÜÀí" data="0">
<node label="É걨֪ͨ" data="1" />
<node label="Ìî±íÐëÖª" data="1" />
......

Flex±à³Ì×¢ÒâÖ®×Ô¶¯»ñÈ¡½¹µã¡¢¼àÌýÈ«¾Ö¼üÅÌʼþ

ÐèÇóÈçÏ£º
µ±AIRÆô¶¯ºó£¬¼àÌýÈ«¾Ö¼üÅÌʼþ£¬¼´this.addEventListener( KeyboardEvent.KEY_DOWN, keydownHandler );
ÔËÐкóЧ¹û£º
µ±AIRÔËÐкó£¬ËäÈ»ÕýÈ·¼àÌýÁËKeyboardEvent.KEY_DOWN event£¬µ«ÊDZØÐëÒªÊó±êµã»÷Ò»ÏÂAIR²Å¿ÉÒÔ»ñÈ¡keydownHandler¡£
Ô­Òò£º
1¡¢keydownHandlerµÄ»ñÈ¡ÐèÒª¼àÌýµÄ¶ÔÏó»ñµÃ½¹µã£¬µ±mouse cl ......

flex Êó±êÐüÍ£À뿪 ¿ØÖÆ·Å´óËõС Ô´Âë

 
<?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the Zoom effect. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml
">
<mx:Style source="style/style.css"/>
    <mx:Scri ......

flexÊó±êÒƵ½Ä³×é¼þÊó±êµÄÐÎ×´±ä³ÉÊÖÐÍ

 ±ÈÈçÎÒÒªÉèÖõ±Êó±êÒƶ¯µ½labelÉÏʱ£¬Êó±êÐÎ×´±ä³ÉÊÖÐÍ
¾ßÌå´úÂë
<mx:Label text="click me"  
    useHandCursor="true"    
    buttonMode="true"    
    mouseChildren="false"/>
Ö»ÒªÉèÖãº
use ......

flex builderÔØÈë×ÖÌå

 flex builder ÉèÖ÷ÇϵͳĬÈÏ×ÖÌ壺
´æÔÚÎÊÌ⣺text²»ÄÜÉèÖÃbold£¬·ñÔò²»Æð×÷Óá£
·½·¨Ò»£º£¨css£©
<mx:Style>
        @font-face
        {
            font-family: myFont;
   & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ