flex VideoDisplay
http://blog.minidx.com/2008/08/06/1227.html good
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal" verticalAlign="top"
horizontalAlign="center" backgroundGradientColors="[0x000000,0x323232]" paddingTop="0" viewSourceURL="srcview/index.html">
<mx:Script>
<![CDATA[
import mx.managers.PopUpManager;
public function showVideo():void{
var videoWindow:videoDisplayTitleWindow=new videoDisplayTitleWindow();
PopUpManager.addPopUp(videoWindow,this,true);
PopUpManager.centerPopUp(videoWindow);
}
]]>
</mx:Script>
<mx:Button id="btn" click="showVideo()" label="video" verticalCenter="true"/>
</mx:Application>
=======================================================
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="400" height="300" title="videoShow" showCloseButton="true"
close="windowClose()">
<mx:Script>
<![CDATA[
import mx.managers.PopUpManager;
[Bindable]
private var TitleText:String = "<b>VideoDisplay Control:</b>" + "\n" + "Use the buttons to control the video.";
public function windowClose():void{
&nbs
Ïà¹ØÎĵµ£º
Flex
ÊÇÒ»¸ö¿ªÔ´µÄÓ¦Óÿª·¢¿ò¼Ü£¬ÓÃÀ´¹¹½¨ÔËÐÐÔÚweb£¨Ê¹Óà Flash Player£©»òÕß×ÀÃæÉÏ£¨Ê¹ÓÃAdobe
AIR£©µÄ¸»InternetÓ¦Óá£AdobeµÄFlex¿ª·¢ÕßÖÐÐÄÓÐһƪÎÄÕÂÌÖÂÛÁ˹ØÓÚFlexÐÔÄܵÄ×î¼Ñʵ¼ù£¬°üÀ¨ÁËÈÝÆ÷µÄʹÓÃϸ½Ú£ºFlex×î´óµÄ
ÐÔÄÜ·çÏÕÀ´×ÔÓÚ¶ÔÈÝÆ÷µÄÀÄÓá£ÔÚAdobe FlexÖÐÓдóÁ¿¿ÉÑ¡µÄÌØÐÔ£¬ÄãÓ¦¸Ã¿¼ÂÇÔÚÄãµÄÓ¦ÓÃÖÐʹÓÃËüà ......
ÐÔÄܲâÊÔÊÇÒ»ÏîºÆ´óµÄ¹¤³Ì£¬ÈôÄãÖ»ÏëËæ±ãÕǪ̀»úÆ÷×°ÉÏldºó£¬Ô켸ÌõÊý¾Ý£¬Åª¼¸¸ö²¢·¢Óû§¼òµ¥ÅÜһϳöÀ´½á¹û¾Í¿ÉÒÔÍòÊ´ó¼ªÁË£¬ÄÇÄã¾Í´ó´íÌØ´íÁË£¡£¨ÕâÑùµÃ³öµÄ²âÊÔ½á¹ûûÓÐÈκμÛÖµºÍÒâÒ壬µ±È»¸üÎÞ·¨ÒÀ´ËÆÀ¹À³öÄã¹ó¹«Ë¾ÏµÍ³µÄÐÔÄÜÁË¡£
ÐÔÄܲâÊÔÕæÕý¿ªÊ¼Ö´ÐÐ֮ǰ ......
³ÏƸFlex¿ª·¢ÈËÔ±
1 ʹÓÃAsp.net¹¹½¨ÍøÕ¾£¬Êý¾Ý¿âΪSql Server2008£¬»ùÓÚFlex 3.0ÒÔÉϹ¹½¨£»
2 ϵͳΪÓÃÓÚÓ¦¼±¹ÜÀíµÄMISϵͳ£¬¿ª·¢ÖÜÆÚ1¸öÔ£¬Çë½ÓÏîÄ¿ÕßÎñ±ØΪ¾«Í¨FlexµÄÓÐÏîÄ¿¾ÑéÈËÊ¿£»
3 ¿ª·¢Õß±ØÐëÔÚ±±¾©£¬ÍâµØÎðÈÅ£¡¿ª·¢´Ó3Ô¿ªÊ¼£¬ÇëÎñ±ØÓн϶à¿ÕÓàʱ¼ä£»
4 »¶ÓFlex¸ßÊÖºÏ×÷£¬±¾´¦¶ÔÓдóÁ¿ÏîÄ¿ÐèÕâ·½Ãæ¸ßÊÖ£ ......
ÔÚ×Ö·û´®×ª»»ÎªintÀàÐͱØÐëʹÓà ×îºÃÈçÏ£º
var a:int=int(str);
ÉÏÃæת»»Èç¹û²ÉÓÃÈçÏÂÇ¿ÖÆת»»Ôò
var a:int =str as int;
µÃµ½Êý¾ÝΪ0 Ϊ´íÎóÊý¾Ý¡£
ÔÚÏîÄ¿ÖÐÁ½¸öintÏà¼Ó½á¹û³¬¹ýÒ»¸öintµÄ·¶Î§Ê±³öÏÖ´íÎó£¡
¾¹ý×Ô¼ºbug²éÕÒµ½´íÎóÔÒòÊÇÒòΪintÊý¾ÝÀàÐÍ·¶Î§Ì«Ð¡°Â£¡Ö»ºÃ¸ÄΪNumberÀàÐÍ¡£½á¹û²ÅÕýÈ·£¡ÔÎËÀ£¡
Ô ......
¸ÅÒª
µ±ÎÒÃǼÓÔØÍⲿswfʱ£¬±ØÐëÒªÁ˽âÓ¦ÓóÌÐòÓò(Application Domain)¡£´ÓAdobe¹Ù·½ÎļþÖУ¬ÎÒÃÇ¿ÉÒÔµÃÖªÓ¦ÓóÌÐòÓòÄܹ»°Ñ´¦ÓÚͬһ¸ö°²È«Óò(Security Domain)ÖеÄÀà·ÖÀ뿪£¬ÕâÑù¾Í¿ÉÒÔÈÃÒ»¸öÀàµÄ¶à¸ö¶¨Òå¹²´æ£¬»òÊÇÈöà¸ö×ÓÓ¦ÓÃÀ´¹²Ïí¸¸Ó¦ÓõÄÀඨÒå¡£¼òµ¥µãÀí½â¾ÍÊÇÓ¦ÓóÌÐòÓòΪÀඨÒåÌṩÁË·ÖÇø¹¦ÄÜ¡£
Ó¦ÓóÌÐòÓò
Ò ......