Free beauty video chat, multi-person video conferencing feature enhanced version (fms3 and flex development (with source code ))

Source: Internet
Author: User
Flex, fms3 SeriesArticleNavigation
  1. Index of flex and fms3 articles

 

This article isVideo chat, conference Development Instance series articlesThe links to all the articles in this series are 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 directions, and to communicate with you.
The functions of this software are also relatively simple, mainly video, online chat, user list and so on.
CodeIt may be poorly written and its functions are not complete.
We plan to develop the following tasks in the next step:
One-to-one chat, including private chat
Save and query chat records (I plan to use the SQLite database self-contained in Adobe AIR. According to a network article, QQ chat records are also stored in SQLite, do not know if it is true ?)
For more information about SQLite, see
Http://www.cnblogs.com/aierong/archive/2009/01/22/flex_Sqlite_1.html
Chat whiteboard functions, etc.

 

:

Download Code:

Http://files.cnblogs.com/aierong/Video3.rar

After receiving the code, please return to the article and leave a message! If you don't receive it, I can send it again!

Code is provided for mutual learning and discussion! Please share more!
1. If you have any questions about the code, you can leave a message in the comment area of the article. I will do my best to reply to you!
2. If you find a bug while running the code, or have any suggestions or comments, you can leave a message in the comment area of the article and I will correct it in time!

Tips for using the comment area:
Comments in the comment area (using advanced comments) can be pasted with pictures. If there is a problem that is hard to describe, you can paste pictures and text to describe them together.
Thank you!

Code Description:
(1)
This.txt _ message. addeventlistener (keyboardevent. key_down, sendkeyhandler );
Private function sendkeyhandler (EVT: keyboardevent): void
{
If (EVT. keycode = 13)
{
This. sendtxt ();
}
}
This code is used to implement the press ENTER event in the textinput control (that is, the press ENTER event in the 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 used to keep the scroll bar of the textarea control at the bottom, so that users can conveniently view chat information.

 

(3)
Camera = camera. getcamera ();
If (CAMERA = NULL)
{
If (camera. Names. length> 0)
{
Alert. Show ("the camera is attacked by anotherProgramOccupied ");
}
Else
{
Alert. Show ("the system does not detect the camera. We recommend that you install the camera ");
}
}
To detect camera usage
You can also use event monitoring camera. addeventlistener (statusevent. Status, statuscamera); To determine the camera status scheduling.

 

(4)
<Mx: style>
Textarea {
Dropshadowenabled: true;
}
</MX: style>
It is used to show the shadow effect to the control.

 

Other code should be well read. If you do not understand it, refer to previous articles.
Http://www.cnblogs.com/aierong/archive/2008/12/30/Flex.html

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.