¸øFlexµÄPopUpManagerÏÔʾ¿Ø¼þÌí¼ÓÌØЧ
PopUpEffect.as
package
{
import flash.display.DisplayObject;
import mx.core.IFlexDisplayObject;
import mx.effects.Blur;
import mx.events.TweenEvent;
import mx.managers.PopUpManager;
public class PopUpEffect
{
public function PopUpEffect()
{
}
public static function Show(control:IFlexDisplayObject,parent:DisplayObject,modal:Boolean=true):void
{
var mShowEffect:Blur=new Blur();
mShowEffect.blurXfrom=255;
mShowEffect.blurYfrom=255;
mShowEffect.blurXTo=0;
mShowEffect.blurYTo=0;
mShowEffect.target= control;
mShowEffect.duration=300;
PopUpManager.addPopUp(control,parent,modal);
PopUpManager.centerPopUp(control);
mShowEffect.play();
}
public static function Hide(control:IFlexDisplayObject):void
{
var mHideEffect:Blur=new Blur();
mHideEffect.blurXfrom=0;
mHideEffect.blurYfrom=0;
mHideEffect.blurXTo=255;
mHideEffect.blurYTo=255;
mHideEffect.addEventListener(TweenEvent.TWEEN_END,function(){
PopUpManager.removePopUp(control);
});
mHideEffect.duration=300;
mHideEffect.target=control;
mHideEffect.play();
}
}
}
main.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<!--[CDATA[
import PopUpEffect;
]]>
</mx:Script>
<mx:Button label="怫" horizontalCenter="0" verticalCenter="0">
Ïà¹ØÎĵµ£º
¶Ôarcgis server for flexѧϰÁËÒ»¶Îʱ¼äÁË£¬ÐèÒª¶Ô×Ô¼ºµÄѧϰ¹ý³Ì×ܽáһϣº
×¼±¸¹¤×÷£º1Ò»°ã¶Ôarcgis serverÈí¼þµÄ°²×°ÐèҪȷ±£×Ô¼ºµÄµçÄÔÉÏ°²×°ÁËIIS·þÎñÆ÷£»
2£¬È·±£Ò»Ð©arcgis server±¾Éí»áÕ¼ÓÃ80¶Ë¿Ú£¬Èç¹ûÄãµÄµçÄÔÉÏÒѾװÁËѸÀ×Èí¼þµÄ»°£¬ÐèÒªÐÞ¸ÄѸÀ×ËùÕ¼ÓõÄ80¶Ë¿Ú¡£3×îºóÄãµÄµçÄÔÉÏ×°ÓÐarcgis desktop£¬Ò»±éÊý ......
FlexµÄʼþÆäʵºÜÈÝÒ×Ã÷°×£¬ÏóJAVAÓïÑÔÒ»Ñù£¬¸øij¸ö¿Ø¼þ×¢²áÒ»¸ölistener£¬È»ºóʼþ·¢ÉúµÄʱºò´¥·¢ÏàÓ¦µÄº¯Êý£¬ÕâµãÎÒÏàÐÅ´ó¶àÊýÈ˶¼Äܹ»Ã÷°×¡£½ñÌìÎÒÏëҪ˵µÄ²»ÊÇÕâ¸ö£¬¶øÊǸü¼Óϸ½ÚµÄһЩ¶«Î÷¡£
1.ʼþµÄ´«²¥¹ý³Ì¡£
FlexʼþÓÐÏÂÃæÈý¸ö½×¶Î£¬µ±Ê¼þ·¢ÉúʱÒÀ´ÎΪ£º
1.capturing£¨²¶×½£©
2.targeting£¨Ä¿±ê£©
3.bubbli ......
ѧFlexÒ²ÓÐÒ»¶Îʱ¼äÁË£¬²Î¿¼ÁËÐí¶àÈ˵Ä×ÊÁÏ¡£Ò»Ö±Ïë×Å×Ô¼ºÐ´µã¶«Î÷·ÖÏí¸ø´ó¼Ò¡£ÈçÊÇ£¬×Ô¼º×¼±¸Ð´ÕâÑùµÄÒ»¸öRPGÓÎÏ·DEMOµÄϵÁС£»òÐí×Ô¼ºµÄËã·¨£¬½á¹¹ÉÏÉè¼ÆÓÐЩÐíÎÊÌ⣬µ«ÈÔÏ£ÍûÄܸø´ó¼Ò´øÀ´°ïÖú£¬²»ºÃµÄµØ·½ÇëPASSµô¡£¡£¡£~~ÓÎÏ·Ò²²Î¿¼ÁËÉîÀ¶É«ÓÒÊÖµÄÐí¶àÉè¼Æ˼Ï룬ÔÚ´ËÏòÆä±íʾ¸Ðл¡£ËûµÄ²©¿ÍµØÖ·£ºhttp://w ......
ÔÚ.netÖУ¬ÎÒÃÇ¿ÉÒÔÓÃ"²ã"À´²¼¾Ö£¬ÊµÏֿؼþµÄÉÏÏÂÖصþ¡£
ÔÚflexÀïòËÆÊÇûÕâ¸ö¸ÅÄîµÄ£¬flex°´Ä¬ÈÏÊÇÈÏΪÏȶ¨ÒåµÄÔÚϲ㣬ºó¶¨ÒåµÄÔÚÉϲ㣬²»ÂÛÊÇÊÂÏȶ¨ÒåµÄ¿Ø¼þ£¬»¹ÊÇ´úÂ붯̬Éú³ÉµÄ¿Ø¼þ£¬¶¼ÊÇÏÈÀ´¾ÓÏ¡£
µ«ÊÇflexÓÐ×Ô¼ºµÄµ÷Õûº¯Êý£¬×ÜËãÊÇÈÃÎҲ鵽ÁË¡£
ÈÝÆ÷Ãû.setChildIndex(displayObject,int)¾ÍÊǵ÷ÕûÕâ¸öÈÝÆ÷ÏÂËùÓп ......
Getting Around Bug in Adobe Flex: TabControl Inline Event Handling for TabIndexChange Doesn't Work
I ran into this because I wanted to do something funky. I wanted my Flex app window to change PageStates (and size) whenever the TabIndex changed. Whether doing this kind of thing is wise ......