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

flex °ÙÒ¶´°Ð§¹û

Blinds.as
package effects
{

import effects.effectClasses.BlindsInstance;

import mx.controls.scrollClasses.ScrollBarDirection;
import mx.effects.IEffectInstance;
import mx.effects.TweenEffect;

public class Blinds extends TweenEffect
{

private static var AFFECTED_PROPERTIES:Array = ["mask"];

public function Blinds(target:Object=null)
{
super(target);
instanceClass = BlindsInstance;
}

public var direction:String = ScrollBarDirection.VERTICAL;

public var blindsfrom:Number;

public var blindsTo:Number;

public var gapfrom:Number;

public var gapTo:Number;

override public function getAffectedProperties():Array
{
return AFFECTED_PROPERTIES;
}

override protected function initInstance(instance:IEffectInstance):void
{
super.initInstance(instance);
var blindsInstance:BlindsInstance = BlindsInstance(instance);
blindsInstance.direction = direction;
blindsInstance.blindsfrom = blindsfrom;
blindsInstance.blindsTo = blindsTo;
blindsInstance.gapfrom = gapfrom;
blindsInstance.gapTo = gapTo;
}

}

}
 
BlindsInstance.as
package effects.effectClasses
{

import flash.display.DisplayObject;
import flash.display.Sprite;

import mx.controls.scrollClasses.ScrollBarDirection;
import mx.effects.effectClasses.TweenEffectInstance;

public class BlindsInstance extends TweenEffectInstance
{

public function BlindsInstance(target:Object)
{
super(target);
}

public var direction:String = ScrollBarDirection.VERTICAL;

public var blindsfrom:Number;


Ïà¹ØÎĵµ£º

flexʱÐòͼʾÀý

<?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the DateTimeAxis class. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>

import mx.collections.ArrayCollection;
......

±ÜÃâFlex RSLÖظ´load Ìá¸ßmodule¼ÓÔØÐÔÄÜ

±¾ÎıàÒëºóµÄ²¹¶¡ÏÂÔØÁ´½Ó http://download.csdn.net/source/1908278
¶àÄ£¿éÓ¦Óã¬Ã¿¼ÓÔØÒ»¸öÄ£¿é¶¼»áÖظ´¼ÓÔØÄ£¿éËùʹÓõÄRSL£¬ÏÖÔÚÔö¼ÓÒ»¸ö
    
    private static var  loadedRSLs:Dictionary = new Dictionary(); À´±£´æÊÇ·ñÒѼÓÔØ
mx.core.RSLListLoader
//////////////// ......

flex³ÌÐòFirefoxÏÂÖÐÎÄÊäÈëÂÒÂëµÄbug

firefoxϵ±flashÉèÖòÎÊý wmode Ϊ transparent »òÕß Opaque ʱºòÎı¾¿òÖÐÊäÈëÖÐÎÄ»á³öÏÖÎÊÌâ¡£
µÍ°æ±¾µÄfirefoxÖÐÎÞ·¨ÊäÈëÖÐÎÄ£¬¸ß°æ±¾ÖÐÔò³öÏÖÂÒÂë¡£
ÂÒÂëÓëflashºÍÒ³Ãæ±àÂ뷽ʽ¶¼Ã»ÓйØϵ£¬ÊÇfirefoxµÄbugÔì³ÉµÄ¡£
½â¾ö·½·¨Ö»ÓÐʹÓÃwmodeµÄĬÈÏÖµ£¬µ«ÊÇÕâÑùʹµÃflashÔÚÕû¸öÒ³ÃæµÄ×îÉϲ㣬divµÈ¶¼»á±»ÆäÕÚµ²×¡¡£
¼Ç ......

¹ØÓÚflexÖÐtreeµÄʼþ£¬Õ¹¿ªÊ¼þ

£¨1£©treeµã»÷ʼþpublic function handleList(ev:ResultEvent)
{
sourceList=ev.result as ArrayCollection;
}
private function tree_itemClick(evt:ListEvent):void {
var item:Object = Tree(evt.currentTarget).selectedItem;
if (pmtree.dataDescriptor.isBranch(item)) { ......

flex air ÏÔʾȫÆÁ´°¿Ú


½« Stage µÄ displayState
ÊôÐÔÉèÖÃΪ StageDisplayState.FULL_SCREEN_INTERACTIVE
»á½«´°¿ÚÖÃÓÚÈ«ÆÁģʽ£¬ÔÚ´ËģʽÏÂÔÊÐí
¼üÅÌÊäÈ루ÔÚä¯ÀÀÆ÷ÖÐÔËÐÐµÄ SWF ÄÚÈÝÖУ¬²»ÔÊÐí¼üÅÌÊäÈ룩¡£ÈôÒªÍ˳öÈ«ÆÁģʽ£¬Óû§ÐèÒª°´ Esc ¼ü¡£
ÀýÈ磬ÒÔÏ Flex ´úÂ붨ÒåÓÃÓÚÉèÖüòµ¥È«ÆÁ¶ËµãµÄ¼òµ¥ AIR Ó¦ÓóÌÐò£º
<?xml ver ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ