How i add audio publisher/audio subscriber in my chat applcation

hello,
I try add audio publisher/audio subscriber  in chat applcation im using flash bulider 4 however i watch the example in smp applcations
that have in sdk but what i need i include inside chat applcation button to start and stop audio in chat applcation i treid many times
to do it but always give me error so what is the way to add audio publisher/audio subscriber  with button for user hit button run audio hit again stop audio, also need to add other button "logout" to user can logout from applaction when finish but after i add button is dosent work too.
Need help
Thanks

Oh nigel sorry i really forget say what is th error however i gonna paste the code to see where is the error buttons "logout" and "start my audio" dosent work
I dont know why here is the code,
thanks nigel
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="500" minHeight="500" xmlns:rtc="http://ns.adobe.com/rtc" width="590" height="590" backgroundColor="#3D3B3B" preloaderChromeColor="#999393">
    <fx:Style source="client.css"/>
    <fx:Script>
        <![CDATA[
            import mx.events.FlexEvent;
            protected function txtUsername_enterHandler(event:FlexEvent):void
                // TODO Auto-generated method stub
                connectRoom.login();
                labelUsername.visible = false;
                txtUsername.visible = false;
            protected function btnZoomScreen_clickHandler(event:MouseEvent):void
                // move screenShare
                if(btnZoomScreen.label == "zoom in"){
                    moveEffect.targets = [scrShare,labelScreen];
                    moveEffect.xTo = 10;
                    moveEffect.yTo = 10;
                    moveEffect.play();
                    resizeEffect.target = scrShare;
                    resizeEffect.widthTo = 520;
                    resizeEffect.heightTo = 479;
                    resizeEffect.play();
                    btnZoomScreen.label = "zoom out";
                    btnZoomScreen.y = 5;
                }else{
                    moveEffect.targets = [scrShare,labelScreen];
                    moveEffect.xTo = 294;
                    moveEffect.yTo = 296;
                    moveEffect.play();
                    resizeEffect.target = scrShare;
                    resizeEffect.widthTo = 250;
                    resizeEffect.heightTo = 293;
                    resizeEffect.play();
                    btnZoomScreen.label = "zoom in";
                    btnZoomScreen.y = 296;
        ]]>
    </fx:Script>
    <fx:Declarations>
        <s:Move duration="500" id="moveEffect"/>
        <s:Resize duration="500" id="resizeEffect"/>
    </fx:Declarations>
    <rtc:ConnectSessionContainer horizontalScrollPolicy="off" verticalScrollPolicy="off" id="connectRoom" autoLogin="false"
                                 roomURL="http://connectnow.acrobat.com/jannaali/mymeeting"
                                 x="0" y="55" width="590" height="535" backgroundColor="#323131" contentBackgroundColor="#FFFFFF">
        <rtc:authenticator>
            <rtc:AdobeHSAuthenticator userName="{txtUsername.text}"/>
        </rtc:authenticator>
        <rtc:SimpleChat  x="10" y="10"  width="274" height="479" chromeColor="#CCCCCC"/>
        <rtc:WebcamSubscriber x="292" y="23" displayUserBars="true"  width="250" height="250"/>
        <rtc:AudioPublisher id="audioPub" height="0" />
        <rtc:AudioSubscriber id="audioSub" height="0" />
        <s:Label x="292" y="10" text="Ahmed's webcam" fontFamily="Verdana" fontSize="9" color="#040404" chromeColor="#CCCCCC"/>
        <rtc:ScreenShareSubscriber id="scrShare" width="250" height="193" x="294" y="296"/>       
        <s:Label id="labelScreen" x="295" y="285" text="Ahmed's screen" fontFamily="Verdana" fontSize="9" color="#060606"/>
        <mx:LinkButton x="474" y="296" label="zoom in" fontFamily="Verdana" color="#0712A9" id="btnZoomScreen" click="btnZoomScreen_clickHandler(event)"/>
        <s:Button x="19" y="497" label="start my audio" height="28" width="106"/>
        <s:Button x="133" y="497" label="logout" width="106" height="28"/>
    </rtc:ConnectSessionContainer>
    <s:Label id="labelUsername" x="165" y="191" text="Enter a username and press Enter:" color="#4A0606" fontSize="13" fontWeight="bold" fontStyle="italic"/>
    <s:TextInput x="165" y="205" width="221" textAlign="center" id="txtUsername" enter="txtUsername_enterHandler(event)"/>
</s:Application>

Similar Messages

  • How to add newly imported audio - as a new storyline/angle to existing multi cam Project??

    I have a 6 camera multi cam Music Video Project I have been working on in depth for 5 days. The "band" has sent me a new & improved .wav file to replace the audio I have been working with on one "song". I have imported it into the event, cannot figure out how to add it as a new angle (that I will manually sync on the timeline) and then make it the active audio monitor angle. I see ways to "connect it" but not how to have it appear in the 6up display & on its own story/time line in the precision editor. This is like reinventing the wheel. I am losing mu mind. Please help?
    Thanks

    Man oh man. I need to take a break & eat somthing, how embarassing. I swear I knew that but had an attack of hysterical blindness or... the disclose arrow>add new...  Thank You Tom for your quick & thouriough reply. Have a swell holiday.

  • How to add SPDIF/ digital audio to HP Pavilion dv4??

    Is this possible with having to get the HP Dock?? I don't need any of the connections on the HP Dock except for the SPDIF/ digital audio one. Is there another type of adapter I can purchase? Thanks.

    I understand you want to know how to use your dolby audio.
    Have you tried installing the newest audio driver found here?  The driver includes the dolby software and the IDT audio control panel should have separate adjustments available for Dolby.  With the driver installed, try opening the IDT audio control panel and verify if that functionality is present.
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • How to add keyframes to audio track using mouse?

    I saw in a tutorial that you can click on an audio track and add keyframes (small dots) and then use them to adjust sections of the audio track. When I click nothing happens. Is there a modifire key I need to use in combination?
    Thanks

    The Option key.

  • How to Add 5.1 audio to DVD

    Hi,
    this is probably listed somewhere, but in a hurry, deadline, yada yada. Project made in premiere, 5.1 encoded in audition. Rendered in Premiere Pro 1.5 to Mpeg file and when imported to encore, it looks like no surround sound. Suggestions?

    Did you create a Dolby Digital or DTS 5.1 mix in Audition? If so, just import that file as the audio track in your En project.
    If you used the Surcode Dolby Digital encoder in Pr, then make sure to export from Pr as elementary streams (.m2v and .ac3) and use those in En.
    Multi-channel audio won't preview as multi-channel in En, but En will pass the multi-channel audio unaltered through to the burned disc.

  • How to add an audio file to a link

    I am working on a project using IWeb and I am trying to figure out if it is possible and then, if it is how to add an audio file to a link. I would really be glad of your help as I am having problems meeting the requirements of the project if I don't make it work.
    Also, is it possible when having added a movie clip from quick time player to have the clip start as soon as the page is "opening", that is without pressing the play button?
    I am waiting in great suspense to see if anybody can help me out. If you have the answers to my questions, please send me an email at [email protected] - thank you so much :o)

    Hi Maiken
    Welcome to the discussion forums.
    All you need is open iWeb, select text or image, open inspector, go to link, check the "enable as a hyperlink" box, in "link to" there's a teardown menu where you select "a file" and select the file you want to link to.
    If you want to have it downloading look at [this|http://alyeska.altervista.org/en/iWeb_Downloads.html]
    For the second question:
    select the movie file in iWeb go to inspector, then to the last icon (showing the quicktime logo) and check the box that say "Autoplay".
    Regards,
    Cédric

  • How to add multiple audio transitions

    I know how to add multiple video transitions to a whole series of clips, but I want to add a cross fade to every audio clip in the sequence....how can I do this if at all, or is it not possible? Thanks

    I'm suspecting that you don't have the destination tabs set correctly when you drag the audio clips to the canvas overlays.
    Destination & Source tabs are the tabs located at the left side of the timeline. When you want to add audio cross fades to your audio clips, do the following:
    1. Set the played at the beginning of the sequence.
    2. Click the video source tab to disconnect it from the video track.
    3. Verify that the audio source tabs are connected to the audio tracks that you want the audio edited to.
    4. Select your audio clips.
    5. Drag the selected audio clips to the Overwrite with Transition overlay in the canvas.

  • How to add full screen text w/out losing audio. I have premier elements 12

    I am creating a language tutorial. Am trying to add full screen text without losing the audio explanation of the text. How do I make this edit and not lose the audio that coincides with the full screen text?

    Roberto
    Thanks for the details.
    Variable - Constant Frame Rate Explanation
    First, the variable frame rate mention and any problems that might be expected if your iPad video was recorded with a variable rather than constant frame rate. Some cameras (such a cell phone, iPod, probably iPad) record video not at one frame rate across the whole video recording. Instead, they record with a variable frame rate depending usually on the lighting conditions during video recording. One way to know what your recording device is using is to view the MediaInfo video audio properties readout. If you have a constant frame rate, you will see just one frame rate listed. If variable, you should see 3 frame rates listed minimum, maximum, and mid range frame rate.
    MediaInfo - Free download and software reviews - CNET Download.com
    This situation may or may not cause problems for you in Premiere Elements. The signs of problems are usually out of sync audio and you just cannot import the video into the project. If this type of problem, then you take your video into a program such as HandBrake to generate a file with a constant rather than variable frame rate. Then you import the file with the constant frame rate into your Premiere Elements project. http://handbrake.fr/
    Again, this may or may not create problems.
    The Generalized Project Workflow
    There is no problem to setup up your Timeline physically. The iPad video with go to Video Track 1 and Audio Track 1. The video is imported into the project linked to it audio portion. And, the Full Screen Text Files will be on Video Track 2 directly above the related content. Now here is the part that I am not yet clear on. Is the Full Screen Text for a given portion of video supposed to synchronize word for word with what you are saying in the audio on Audio Track 1? That will involve a mapping out part with regard to duration of each of the Full Screen Text files. Will these Full Screen Text files be readable against the video representing the background? Font style and size and color will be major considerations as well as getting the text file to be on screen long enough to be readable even with Font style, size, and color considerations.
    The fact that you focus on audio loss in all this makes me wonder if I am missing a vital part of what you want to do. The loss of audio concern that you mention does not seem like a prime factor unless you are referring to sync between the texts and what it is supposed to correspond to in the audio of the video.
    Please review and consider and then, based on your reply, I will offer a mini demo to see if we are OK on the details.
    Thanks.
    ATR

  • When I publish a video, I lose half of the audio in "audio 2". I can hear it while editing. How do I fix this?

    I published a video as an mpeg, and when I listened to the final product it was missing some music I had in the "audio 2" slot. How do I fix this?

    Cameron
    Is the problem Audio Track 2 music from any of your royalty free music websites? Is the sound missing in the export
    standalone audio files
    or
    audio that is linked to video?
    What is directly under or above these files on the Timeline?
    Download and install the free codec utility named GSpot.
    And, tell us the readouts for Audio name, codec, and status.
    GSpot Codec Information Appliance
    If also video component of the file, then please include the Video name, codec, and status information from the GSpot readout.
    See what information you can put together on the properties of those royalty free audio files, including file extension. Are you dealing with Stereo or 5.1 channel (AAC or Dolby Digital)?
    As for project preset, versions 11 and 12 were designed so that the project takes charge of setting the project settings based on the properties of
    the first file drag to the Timeline. Sometimes it does it right. Sometimes not. If not, then you set the project preset manually using the properties of
    your file. See ATR Premiere Elements Troubleshooting: PE11: Accuracy of Automatic Project Preset (New Project Dialog) Setting
    Lots of additional questions...curious how you hear the Audio 2 audio in Edit area but not in the exported file which you report as
    Publish+Share>Computer>MPEG under the preset "MPEG2 1920x1080i 30.
    Any export setting customization going on under the Advanced Button/Video Tab and Audio Tab of that preset?
    Please review and consider and then we will decide what next.
    Thank you.
    ATR

  • How to add audio track to Final Cut Express

    Does anyone know how to add a audio track to Final Cut Express? My default is four available tracks. What if I want to have 6? How can I add a additional two to the timeline?

    Move your cursor into the gray area below the A4 audio track, then control click and select Add Track.

  • How can i add an HTML5 audio player to iWeb?

    I'm trying to add an HTML5 audio player to my iWeb website.
    I tried using the java script codes from players like speakker, jquery or JMS. Even though I downloaded everything from their websites, when I sent the code to the HTML snipet of iWeb, nothing happened.
    Do you know how I can do this?
    Thanks in advance,
    Brazilian_girl

    Thank you so much for all your info, that really helps.
    I read the instructions for the  speakker player, but they seemed so confusing to me in terms of how to do everything, setp by step in regards to iWeb.
    So, let me make sure I got it:
    1) I go to my FTP site/hosting create a new folder
    2) add the music and the graphic content from the player (images form the buttons, etc...)
    3) get a link from the FTP hosting site with all this stuff
    4) Write the link in the code
    5) paste the code (with the link in it) into the HTML snipet widget of iWeb.
    Is this correct?
    Thank you again, I really appreciate it!

  • I forget how to add audio to a document I have made.

    I forget how to add audio to a document I have made.

    lola2610 wrote:
    I can duplicate but that is not what I am looking for.
    This is what it is for. Save As doesn't change the behaviour of Autosave. All changes always get saved at all times. If you want to save as a new document, then do that. If you want to do a save as, just don't make any changes beforehand.
    Second problem is the load of internet pages! It is sooooo slow...
    Try a new DNS server such as OpenDNS. The ones your ISP gives you can be very bad.

  • How to add audio files.

    I'm using Premiere Elements 11 on my iMac.  I can't for the life of me figure out how to add music files to the 8 or so that come with the program.  Anybody else having this problem or am I just dumber than most?

    Comstar 11 wrote:
    As I put in my original post I might be dumber than most and that's still a possibility.  I also tried the "Use Smartsound" same feeling that I didn't like the add on that just took me to another site to sell me music.  I couldn't find the "Project Assets" box after looking almost everywhere.  But.....  I was in the "Quick" mode.  Knowing I was a rank beginner I avoided the "Expert" tab.  But after looking everywhere else I opened that tab and "It's A Miracle" there it was.  Still stumbling through the learning process so thanks for your kind help.  If I hit the wall again I'll make another post looking for help.  Thanks Again.
    I tried the Quick mode.  When I did 'add media' in the upper left corner, video files went straigt to the project box.  Then I tried an audio file and it went below the video in the project box.  So, I see where in 'Quick' the 'Project Assets' box and step are skipped.  Sorry about misleading you.
    Either way, audio files get to the project box when you pick them up as a file on your computer.
    There are two great sources to speed the learning process.  lynda.com has courses that are like a personal demo of everything PrE does with a great coach explaining it.   http://www.lynda.com/Premiere-Elements-tutorials/Up-Running-Premiere-Elements-11/109763-2. html  A few if the chapters are free as a trial.  The fee is $25 for a month of access.  One month is more than enough if all you want is the one course. 
    If you prefere owning a course on a disk, video2brain is an alternative, but I don't think it is as thorough.
    Bill
    Bill

  • How to add audio to individual slides?

    According to the Keynote User Guide 2009, on page 70, it is possible to add a sound file to an individual file so that the sound stops when you go to the next slide and you can use a different sound file. What I want to do is use three or four songs on one power point presentation. It says you can do this but does not tell HOW to do it! There is an illustration of how to add sound for an entire slide show, but not for individuals slides. When you place the sound file in the window in the Inspector it goes for the entire show. But not indication how to do it for individual slides. Please inform, thank you.

    Just drag the audio file onto the slide, and it will play when the slide appears. You can also use Builds to start and stop the audio.

  • How to add audio to image sequence?

    I've imported a Photoshop image sequence into FCP X 10.1.1.  Dropped it on the timeline, created a compound clip.  So far I can't figure out how to add audio of any kind.  I've tried starting over, making sure properties had audio setting enabled.  No change though.  No matter what I try, no audio tab in the inspector.  What am I missing?
    Thanks,
    Michael

    Are you importing an audio file that is seperate? Otherwise it is attached to your video. in the timeline, choose expand audio & video. You can import almost any format. Import it into the same event that you are in - a song from your desktop or from your folder where you copied all your contents from your camera card or music from ITunes (in which case you use the audio tab on the far right of the timeline UNDER THE INSPECTOR).
    How did you import your media?:
    Help?

Maybe you are looking for