flex4+fms3.5+flash cs4¿ª·¢ÊµÊ±ÒôÊÓƵֱ²¥¼°µã²¥Ïê½â
×î½ü¹«Ë¾Òª×ö¸öÅÄÂôÐеÄÏîÄ¿£¬ÎÒ±»·ÖÅäÁ˓ʵʱÒôÊÓƵֱ²¥¼°µã²¥”µÄ²¿·Ö¡£ÎÒÒ»Ö±´ÓÊÂJAVAÖØÀ´Ã»Ñо¿¹ýadobeµÄ¶«Î÷£¬ËäÈ»sun£¨ÏÖÔÚÊÇORACLEÁË£©Ò²ÓÐJMF£¬µ«ÊÇÕâ¸ö¶«Î÷Ôç¾ÍÔÝÍ£¸üÐÂÁË£¬¸Ð¾õÒѾÓëʱ´úÍѽڡ£×îºó¾¹ýÎÒÃÇ¿ª·¢ÈËÔ±¶¼ÓеĿ̿àרÑУ¬ÂñµØ¿à¸ÉµÄ¾«ÉñÖÕÓÚÔÚÒ»¸öÀñ°Ý¸ã¶¨ÁË¡£
Ïл°ÉÙ˵£¬ÎÒÃÇÇÐÈëÕýÌâ
¿ª·¢¹¤¾ß¼°»·¾³£º
1)flash builder4
2)flash cs4
3)flash media server3.5
fms²¿·Ö
fmsÊÇadobeµÄÁ÷ýÌå·þÎñÆ÷£¬²»¹ýÊÇÊշѵģ¬¼Û¸ñ´ó¸ÅÊÇoracleµÄÒ»°ë£¬²»¹ý»¹ÊǾõµÃͦ¹óµÄ¡£adobeÌṩ¿ØÖÆÁ¬½ÓÊýµÄ¿ª·¢ÈËÔ±°æ£¬³ýÁËÕâµã¾ßÌåºÍÍêÈ«°æÒ»Ñù¡£·þÎñÆ÷µÄÅäÖÃÍøÉϺܶ࣬´ó¼ÒÒ»ËѾÍÒ»´ó°Ñ¡£
ÆäÖйؼüµÄÊÇ£º
ÓÉÓÚÐèÇóÊDz»½öÒªÌṩֱ²¥£¬¶øÇÒ»¹Äܵ㲥ÀúÊ·ÒôÊÓƵ¡£¶øasµÄNetStreamµÄpublish·½·¨ÌṩµÄ¼Öƹ¦ÄÜÊǽ«Â¼ÖƵÄÊÓƵ·ÅÔÚÖ±²¥µÄͬһ¸öÎļþ¼ÐÏ£¬ËùÒÔÒªÐèÒª¸ÄÒ»ÏÂfmsÅäÖá£
1£©fmsµÄdvrĬÈÏÊǹرյģ¬ÐèÒªÐÞ¸ÄC:\Program Files\Adobe\Flash Media Server 3.5\applications\live\main.farÀïµÄApplication.xml£¬½«ÎļþÖеÄ
<StreamManager>
<StreamRecord override="no">false</StreamRecord>
</StreamManager>
¸ÄΪ
<StreamManager>
<StreamRecord override="yes">true</StreamRecord>
</StreamManager>
Ð޸ĺóÖØмÓÈëmain.farÖÐ
2£©fmsĬÈÏÊǽ«Ö±²¥Óëµã²¥ÎļþĿ¼·Ö¿ªµÄ£¨liveºÍvod£©£¬µ«ÊÇÊÓƵ¼ÖÆÊÇÔÚliveÎļþ¼ÓÏ£¬ËùÒÔÎÒÃÇÒªÐ޸ĵ㲥Ŀ¼
C:\Program Files\Adobe\Flash Media Server 3.5\conf\fms.iniÎļþÖн«
VOD_DIR ÉèÖÃΪ C:\Program Files\Adobe\Flash Media Server 3.5\applications\live
ÕâÑù¾Í¿ÉÒÔʵÏÖÖ±²¥µã²¥Í¬Îļþ¼Ð¹²´æÁË
3£©ÅäÖÃÐéÄâĿ¼
´ò¿ªC:\Program Files\Adobe\Flash Media Server 3.5\applications\live\Application.xmlÔÚ<VirtualDirectory>ÖмÓÈë
<Streams>/;${VOD_COMMON_DIR}</Streams>
<Streams>/;${VOD_DIR}</Streams>
²¹³ä£ºÈç¹ûÔÚflexÖÐÖ±²¥ÊÓƵʱÅ׳önoAccess´íÎó£¬ÇëÔÚ·þÎñÆ÷Éϸø¼ÖÆ»ú·ÖÅäдÈëµÄȨÏÞ¡£
ͨ¹ýÒÔÉÏÅäÖÃfms¾ÍÍê³ÉÁË
flex²¿·Ö
&l
Ïà¹ØÎĵµ£º
Flex Viewer½âÎö-----Òý
FlexViewerÊÇESRI¹«Ë¾ÀûÓÃFlex¼¼Êõ£¬»ùÓÚ±¾ÉíÒÑ¿ª·¢ºÃµÄFlex API°ü¿ª·¢µÄÒ»¸ö³ÉÊìµÄWebGISʵÀý¿ò¼Ü¡£ÆäÍêÈ«ÊÇ¿ª·ÅµÄ£¬¿ÉÒÔ´Ó¹Ù·½ÍøÕ¾ÉϵÄCode GalleryÖ±½Óϵ½Ô´Âë¡£Ò²¿ÉÒÔ´Ó±¾È˵Ä×ÊÔ´µãÏÂÔØ¡£ÍøÖ·£º
http://download.csdn.net/source/2374602
ÏÂÔØÍê³Éºó½âѹֱ½Óµ¼ÈëAdobe Flex 3 BuilderÏîÄ¿¼ ......
flex Ò³ÃæÌøת
·½·¨Ò»£ºÊ¹ÓÃnavigateToURL
var url:String = "http://localhost/flex/test.jsp";
var request:URLRequest = new URLRequest(url);
navigateToURL(request,"_self");
·½·¨¶þ£ºÒýÓÃflashÖÐµÄ import flash.external.ExternalInterface Õâ¸ö½Ó¿Ú
ËûÄÜÌṩÏñjsÖÐwindow.location.href·½·¨Ò»Ñù·½±ã
Extern ......
FlexÖпؼþ×é¼þÒ»´ó¶Ñ£¬×ܽáһϡ£
1£®
ÓÃÀ´²¼¾ÖµÄ¿Ø¼þÓÐ form¡¢canvas¡¢panel¡¢box µÈ¡£ µ±È»box ÖÐÓÖÓкܶàÁË£¬ÓÐvbx¡¢hbox¡¢VDividedBox¡¢HividedBox¡¢Tile¡£ µ±È»ÕâЩÀïÃæ´óÌåÉÏÓÖ·ÖΪÁ½ÖÖ
Ò»ÖÖÊǾø¶Ô²¼¾Ö¡¢Ò»ÖÖÊÇÏà¶Ô²¼¾Ö£¨¸öÈËÈÏΪ°¡£©¡£ÆäÖÐcanvas ÊÇÖ»Ö§³Ö¾ø¶Ô²¼¾ÖµÄ form¡¢box Ö»Ö§³ÖÏà¶Ô²¼¾Ö¡£¶øp ......
servlet ¶Ë£º
String userId = request.getParameter("userId");
System.out.println(userId);
response.setCharacterEncoding("UTF-8");
response.getWriter().println("hello world -- ÎÒ°®Äã¡£¡£¡£");
Flex ǰ̨¶Ë
<fx:Script>
<![CDATA[
import flash.trace.Trace;
private var loader:UR ......
String userId = request.getParameter("userId");
System.out.println(userId);
response.setCharacterEncoding("UTF-8");
//response.getWriter().println("hello world -- ÎÒ°®Äã¡£¡£¡£");
String xml = "<user>" +
"<username>Ìθç</username>" +
"</user>";
respon ......