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
Ïà¹ØÎĵµ£º
Ê×ÏÈÒªÇó´ó¼Òµ½Êý¾Ý¿â½¨Á¢Ò»¸öÊý¾Ý¿â£¬ÔÚÎÒÕâÀý×ÓÖÐÊý¾Ý¿âÃûΪuserDb,½¨Á¢Ò»¸ö±íuserInfo£¬ÀïÃæÉèÖÃÁ½¸ö×Ö¶ÎÒ»¸öΪid£¬Ò»¸öΪname¡£
´´½¨ÒÔÏÂjava´úÂëÔÚsrcĿ¼ÏÂ
User.java
package org.rjb.java;
public class User {
private String name;
public String getName() {
return name;
}
public voi ......
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal">
<mx:Script>
<![CDATA[
import mx.core.BitmapAsset;
import mx.core.DragSource;
import mx.events.DragEvent;
import mx.managers.DragManager;
private var xoffset:Number;
private var yoffset:Number;
priv ......
Ê×ÏÈ£¬ÉêÃ÷±¾ÎÄÊÇ×ªÔØ
http://blog.csdn.net/ivanmarkliu/archive/2009/07/08/4327570.aspx
£¬´ó¼Ò¿ÉÒÔ·ÃÎʸÃÁ´½Ó£¬Ò²¿ÉÒÔÖ±½ÓÔĶÁ±¾ÎĺóÐø²¿·ÖÒÔÁ˽â
flex
ʼþ¡£½ÓÏÂÀ´¼òµ¥Ì¸ÏÂΪºÎÒª×ªÔØ´ËÎļ°±¾È˶ԴËÎĵÄһЩ²¹³ä¡£
¿ÉÒÔÕâÑù˵ ......
ӦΪÉè¼ÆÒªÇó, ÎÒÐèÒª¼ÆËãStringµÄ¿í¶È,
ËÑË÷ÁËÏÂÍøÉϵÄÎÄÕÂ, ¿´µ½ÓÐÓÃmeasureText(string)µÄ,
¿ÉÊÇÓÃÁËÏ·¢ÏÖ, Õâ¸öfunctionµÃµ½µÄstring´óС, ²»»á¸ù¾Ý×ÖÌåµÄ´óС, ´ÖºÚµÄ±ä»¯,
ʼÖÕ·µ»ØÍ¬Ò»¸öÖµ, Ò²ÐíÊÇÎÒµÄÓ÷¨²»¶Ô, ×îºóÎÒûÓÐÕâ¸ö·½·¨,
¸ÄÓÃÁËÁíÍâÒ»¸ö·½·¨:
private function getTextWidth():int
{
&nbs ......
Óõ½µÄMX±êÇ©£ºconstraintColumns¡¢ConstraintColumn¡¢constraintRows¡¢ConstraintRow
¸ø´ó¼Ò˵˵ǰÌáÇé¿ö£ºÔÚ×öMXML²¼¾Öʱ£¬ÒªÇ¶Ì׺ܶà²ã¼¶£¬ÕâÀïÃæÓкܶàÎÊÌ⣺
1¡¢Ç¶Ì×Ì«¶à²ã¼¶»áÓ°ÏìЧÂÊ£¡
2¡¢Ç¶Ì×Ì«¶à²ã¼¶£¬´úÂëµÄ¿É¶ÁÐÔ¡¢¿Éά»¤ÐԲ
3¡¢Ç¶Ì×Ì«¶à²ã¼¶ÊÇÒòΪCanvas¡¢Vbox¡¢Hbox¹¦Äܵ¥Ò»£¬²»ÄÜÂú×ãÐèÒª£¬¶ø²»ÊDZØÐ ......