»ùÓÚFlexµÄflv¼òÒײ¥·ÅÆ÷
×î½üÔÚÏîÄ¿ÖÐÒªÓõ½flv²¥·ÅÆ÷£¬ÓÉÓÚflex×Ô´øµÄVideoDisplay×é¼þ²»ÊǺܺÃÓ㬾Í×Ô¼º¼òµ¥ÊµÏÖÁËÒ»¸ö£¬½çÃæ²»ÊǺÜÃÀ¹Û£¬µ«¹¦Äܶ¼ÓÐÁË£¬Õý¿ÉνÂéȸËäСÎåÔà¾ãÈ«¡£ÏÂÃæÊDz¥·ÅÆ÷µÄ´úÂ룬»¹²»»áÓÃflash×öflv²¥·ÅÆ÷µÄÅóÓÑ£¬¿ÉÒԲο¼²Î¿¼¡£
Player.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300" backgroundColor="#000000" creationComplete="completeHandler()"
horizontalScrollPolicy="off" verticalScrollPolicy="off">
<mx:Script>
<![CDATA[
import mx.events.SliderEvent;
import mx.core.UIComponent;
import mx.controls.Alert;
import mx.utils.StringUtil;
private var _source:String;
private var _autoPlay:Boolean;
public var videoWidth:Number = 0;
public var videoHeight:Number = 0;
private var nc:NetConnection;
[Bindable] private var ns:NetStream;
private var videoContainer:UIComponent;
private var video:Video;
private var initIndex:int = 1;
private var rtmpUrl:String;
 
Ïà¹ØÎĵµ£º
flex Ôڳɳ¤µÄ¹ý³ÌÖÐÀú¾²×É££¬µ«ÊÇʼÖÕÀë²»¿ªflashÔÚºǫ́×öºó¶Ü£¬ËûµÄºǫ́´úÂëÊÇActionscirp µ«ÊÇsliverlightµÄºǫ́´úÂëÊÇ.net µÄ¼¼Êõ ËùÒÔ˵slilverlightѧµÄʱºò£¬Ö»ÒªÄã»á.net¾Í¿ÉÒԷdz£¿ìµÄÉÏÊÖ£¬flex ÄãÒÔǰѧ¹ýflash¡£ÄãÒ²¿ÉÒԺܿìÉÏÊÖ ......
1.д session
mxml Îļþ ¼Ó
<mx:RemoteObject source="servlet" id="sessionObject" />
as ÎļþÓÃÏÂÃæÓï¾äµ÷ÓÃ
sessionObject.session("set", "foo", 30200);
2.¶Á session
mxml Îļþ ¼Ó
<mx:RemoteObject source="servlet" id="sessionObject1" res ......
Flexʼþ»úÖÆ
Flexʼþ»úÖÆÊǹ۲ìÕßģʽ£¬¼´Ê×ÏÈҪע²áʼþ£¬Ê¼þ·Ö·¢ºóͨ¹ýʼþÏìÓ¦º¯Êý½øÐд¦Àí¡£
ÀýÈçÔÚAS3ÖУº
button.addEventListener(“click”,onClick);//Ïòbutton×¢²áÒ»¸öclickʼþ
internal function onClick(evt:MouseEvent):void{txt.text=“click a button!”;}//ʼþÏìÓ¦º¯Êý
ÄÇÃ ......
--Ó¢ÎÄ
mxmlc -locale=en_US -allow-source-path-overlap=true
-include-resource-bundles=mf,collections,containers,controls,core,effects,formatters,logging,SharedResources,skins,states,styles,validators
-source-path=D:/UBAS_HOME/ClientCode/demo/client/code/MainFrame/assets/locale/en_US
-output=E:/ ......
ÏÖÔÚÎÒÃÇÏÈ¿´¿´´úÂë,ÏÂÃæµÄ´úÂë×°ÔÚcreationCompleteʼþÖе÷ÓÃinit()À´Æô¶¯È«ÆÁ.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
creationComplete="init()"
>
<mx:Scri ......