FLEX,FMS3 Series article Navigation
- FLEX,FMS3 related articles Index
This is a video chat, Conference development Example series of the 4th article, the series of all articles linked as follows:
Http://www.cnblogs.com/aierong/archive/2008/12/30/Flex.html#sp
This software is only a simple application, mainly to summarize the learning ideas and development direction, and everyone exchanges.
The software realizes the function is also relatively simple, mainly is the video, the online chat, the user list and so on.
The code may be confusing, the function is not perfect
The next step is to develop the following things:
One-on-one chats, including private chats
Chat record save and query (I plan to use the Adobe air in the SQLite database to achieve, according to the network an article said QQ chat record is also stored in SQLite, do not know whether it is true? )
The relevant articles about SQLite can be seen
Http://www.cnblogs.com/aierong/archive/2009/01/22/flex_Sqlite_1.html
Chat whiteboard function and so on
:
Code Download:
Http://files.cnblogs.com/aierong/Video3.rar
After you receive the code, please return to the article under the message to tell it! If you don't get it, I can send it again!
Provide code to learn from each other and explore together! Please communicate with us more!
1. If you have any questions about the code, you can leave a message in the comment section of the article, I will do my best to answer you!
2. If you find a bug in the process of running the code, or if you have any good suggestions and comments, you can also leave a message in the comment section of the article, I will correct it in time!
Comment Area Use tips:
Comment Area message (using advanced review) is can be affixed to the picture, if there are difficult to describe the problem, you can paste pictures and text together to explain
Thank you!
Some code descriptions:
(1)
This.txt_message.addEventListener (Keyboardevent.key_down,sendkeyhandler);
Private Function Sendkeyhandler (evt:keyboardevent): void
{
if (Evt.keycode = = 13)
{
This.sendtxt ();
}
}
This code is an event that implements a carriage return in a TextInput control (that is, the carriage return event of a text box)
(2)
This.txt_content.addEventListener (Flexevent.value_commit,value_commithandler);
Private Function Value_commithandler (evt:flexevent): void{
Txt_content.verticalscrollposition = txt_content.maxverticalscrollposition;
}
This code is designed to implement the textarea control's scroll bar always at the bottom to make it easier for users to view chat information
(3)
Camera = Camera.getcamera ();
if (camera = = null)
{
if (Camera.names.length > 0)
{
Alert.show ("Camera is occupied by other programs");
}
Else
{
Alert.show ("The system does not detect the camera, it is recommended that you install the camera");
}
}
is to detect the use of the camera.
You can also use event monitoring Camera.addeventlistener (Statusevent.status,statuscamera) to determine the camera's state dispatch
(4)
<mx:Style>
TextArea {
Dropshadowenabled:true;
}
</mx:Style>
To show a shadow effect to the control
Other code should be good to read, do not understand can refer to the previous article
Http://www.cnblogs.com/aierong/archive/2008/12/30/Flex.html
Free Beauty video chat, multi-person video conferencing feature enhanced version (FMS3 and Flex development (with Source))