During this period, the essays have always been about the timely communication application. Many of them have no problems with development,ProgramDeployment fails. This article will briefly introduce the deployment of fluorinefx + flex video chat rooms.
First of all, you need to pay attention to the flex configuration file service-config.xml, The Flash will be configured in the service-config.xml rtmp communication channel and fluorinefx rtmp server connection, the detailed configuration is as follows:
< Channel - Definition ID = " My-rtmp " Class = " MX. messaging. channels. rtmpchannel " >
< Endpoint URI = " Rtmp: // {server. name}: 2777 " Class = " Flex. messaging. endpoints. rtmpendpoint " />
< Properties >
< Idle - Timeout - Minutes > 20 </ Idle - Timeout - Minutes >
</ Properties >
</ Channel - Definition >
Add a new web page (fluorinechatroom.aspx.pdf to run flash(.swf)to load the new .swf file to this page.
< Object Classid = "CLSID: D27CDB6E-AE6D-11cf-96B8-444553540000"
ID = "Videochat" Width = "520" Height = "520"
Codebase = "Http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" >
< Param Name = "Movie" Value = "Flash/videochat.swf" />
< Param Name = "Quality" Value = "High" />
< Param Name = "Bgcolor" Value = "#869ca7" />
< Param Name = "AllowScriptAccess" Value = "Samedomain" />
< Embed SRC = "Flash/videochat.swf" Quality = "High" Bgcolor = "#869ca7"
Width = "520" Height = "520" Name = "Videochat" Align = "Middle"
Play = "True"
Loop = "False"
Quality = "High"
AllowScriptAccess = "Samedomain"
Type = "Application/X-Shockwave-flash"
Pluginspage = "Http://www.adobe.com/go/getflashplayer" >
</ Embed >
</ Object >
Then, deploy the website of remotingservice and applicationadapter provided by fluorinefx to IIS.
During deployment, I assigned a separate web port 88, OK, and now run geteway. aspx will get an address: http: // localhost: 88/gateway. the aspx address is the communication gateway address that needs to be used for RPC communication in flash. A simple understanding is that this address is used to access the remotingservice provided by fluorinefx ). Now go back to client developmentCodeModify the address of the communication gateway and change the address originally debugged under vs to the access address after being deployed to IIS:
Remoteconn= NewRemotingconnection ("HTTP: /localhost: 2020/chatroom. fluorinefxweb/gateway. aspx", Objectencoding. amf3 );
To:
Remoteconn = New Remotingconnection ( " Http: // localhost: 88/gateway. aspx " , Objectencoding. amf3 );
Now, refresh flash and copy the new .swf file to the directory corresponding to the site deployed in IIS. Here, the local test is complete. However, in this way, you can only access the application on a local machine. If you want to access the application in the LAN, You need to assign an IP address for the application site in IIS, and then access the application through the IP address will be OK.
How can I deploy the server host? Through the above steps, we may have learned that the flash client only needs two addresses, one gateway. aspx gateway address. One is the access address of the rtmp server. You can deploy the web application as long as the two addresses are valid. For example, if your server IP address is 61.128.128.68 and the fluorinefx website is deployed on this server (the bound domain name is www.mydomain.com), then the client access remotingservice address is: "http://www.mydomain.com/Gateway.aspx ", the connection address of the rtmp server is: "rtmp: // 61.128.128.68: 2777/videochat ". After modifying flash through these two addresses, you can re-create a. SWF file to overwrite the previous Flash files, so that you can use the video chat room case project described in this article on the Internet through the domain name.
Copyright description
This article is originalArticle. You are welcome to repost it. The copyright is shared by the author and the blog.
Author: beniao
Article Source: http://beniao.cnblogs.com/or http://www.cnblogs.com/