Tried to follow the second video tutorial with no success

Hi,
I tried to run the second video tutorial (Your Second AFCS Application) on LCCS SDK Navigator with no success.
VideoChat.mxml:
<?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="955"
               minHeight="600" xmlns:rtc="AfcsNameSpace">
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    <!--<rtc:ConnectSessionContainer id="cSession" autoLogin="true" width="100%"
    height="100%" roomURL="https://connectnow.acrobat.com/smoky6880/room">
    -->
    <!--
    <rtc:ConnectSessionContainer width="100%" height="100%" roomURL="https://connectnow.acrobat.com/smoky6880/room4">
    -->
    <rtc:ConnectSessionContainer id="cSession" autoLogin="false" width="100%" height="100%" roomURL="https://connectnow.acrobat.com/smoky6880/room4" creationComplete="showLogin()">
        <rtc:authenticator>
            <rtc:AdobeHSAuthenticator userName="Guest"/>
        </rtc:authenticator>
        <mx:HBox width="100%" height="95%">
            <mx:VBox width="25%" height="100%">
                <rtc:WebCamera width="100%" height="100%"/>   
            </mx:VBox>
            <rtc:SimpleChat width="75%" height="100%"/>               
        </mx:HBox>
    </rtc:ConnectSessionContainer>
    <fx:Script>
        <![CDATA[
            import mx.managers.PopUpManager;
            protected function showLogin():void {
                var login:LoginDialog2 = new LoginDialog2();
                login.connectSession = cSession;
                PopUpManager.addPopUp(login, this);
                PopUpManager.centerPopUp(login);
        ]]>
    </fx:Script>
</s:Application>
LoginDialog2.mxml:
<?xml version="1.0" encoding="utf-8"?>
<s:Panel xmlns:fx="http://ns.adobe.com/mxml/2009"
             xmlns:s="library://ns.adobe.com/flex/spark"
             xmlns:mx="library://ns.adobe.com/flex/mx" title="Enter Guest Name" width="274" height="116">
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
        <![CDATA[
            import com.adobe.rtc.session.IConnectSession;
            import mx.managers.PopUpManager;
            [Bindable]
            public var connectSession:IConnectSession;
            protected function login():void {
                connectSession.authenticator.userName = userNameField.text;
                connectSession.login();
                PopUpManager.removePopUp(this);
        ]]>
    </fx:Script>
        <s:TextInput width="234" id="userNameField" enter="login()" x="10" y="10"/>
        <s:Button label="Ok" click="login()" x="173" y="43" width="69"/>
</s:Panel>
Basically, I pressed the Debug button and all I am getting is:
[SWF] C:\Documents and Settings\Kevin Lee\Adobe Flash Builder 4\VideoChat\bin-debug\VideoChat.swf - 646,462 bytes after decompression
[SWF] C:\Documents and Settings\Kevin Lee\Adobe Flash Builder 4\VideoChat\bin-debug\VideoChat.swf - 370,463 bytes after decompression
[SWF] C:\Documents and Settings\Kevin Lee\Adobe Flash Builder 4\VideoChat\bin-debug\VideoChat.swf - 2,292,131 bytes after decompression
[SWF] C:\Documents and Settings\Kevin Lee\Adobe Flash Builder 4\VideoChat\bin-debug\VideoChat.swf - 648,239 bytes after decompression
[SWF] C:\Documents and Settings\Kevin Lee\Adobe Flash Builder 4\VideoChat\bin-debug\VideoChat.swf - 441,686 bytes after decompression
[SWF] C:\Documents and Settings\Kevin Lee\Adobe Flash Builder 4\VideoChat\bin-debug\VideoChat.swf - 1,429,050 bytes after decompression
[SWF] C:\Documents and Settings\Kevin Lee\Adobe Flash Builder 4\VideoChat\bin-debug\VideoChat.swf - 323,414 bytes after decompression
I am not getting any message related to connection.  Any idea of what's wrong?
Thanks,
Kevin

I got the following error:
Description    Resource    Path    Location    Type
Parse error: '<fx:Script>' is not allowed to follow '<fx:Declarations>'.    LoginDialog2.mxml    /VideoChat/src    line 9    Flex Problem
If I did:
<?xml version="1.0" encoding="utf-8"?>
<s:Panel xmlns:fx="http://ns.adobe.com/mxml/2009"
             xmlns:s="library://ns.adobe.com/flex/spark"
             xmlns:mx="library://ns.adobe.com/flex/mx" title="Enter Guest Name" width="274" height="116">
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
        <fx:Script>
            <![CDATA[
                import com.adobe.rtc.session.IConnectSession;
                import mx.managers.PopUpManager;
                [Bindable]
                public var connectSession:IConnectSession;
                protected function login():void {
                    connectSession.authenticator.userName = userNameField.text;
                    connectSession.login();
                    PopUpManager.removePopUp(this);
            ]]>
        </fx:Script>
    </fx:Declarations>
        <s:TextInput width="234" id="userNameField" enter="login()" x="10" y="10"/>
        <s:Button label="Ok" click="login()" x="173" y="43" width="69"/>
</s:Panel>
in LoginDialog2.mxml, putting <fx: Script> inside <fx:Declarations>
I then tried to change some of the code segments around in VideoChat.mxml but still no success:
<?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="955"
               minHeight="600" xmlns:rtc="AfcsNameSpace">
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    <fx:Script>
        <![CDATA[
            import mx.managers.PopUpManager;
            protected function showLogin():void {
                var login:LoginDialog2 = new LoginDialog2();
                login.connectSession = cSession;
                PopUpManager.addPopUp(login, this);
                PopUpManager.centerPopUp(login);
        ]]>
    </fx:Script>
    <rtc:ConnectSessionContainer id="cSession" autoLogin="false" width="100%" height="100%" roomURL="https://connectnow.acrobat.com/smoky6880/room4" creationComplete="showLogin()">
        <rtc:authenticator>
            <rtc:AdobeHSAuthenticator userName="Guest"/>
        </rtc:authenticator>
        <mx:HBox width="100%" height="95%">
            <mx:VBox width="25%" height="100%">
                <rtc:WebCamera width="100%" height="100%"/>   
            </mx:VBox>
            <rtc:SimpleChat width="75%" height="100%"/>               
        </mx:HBox>
    </rtc:ConnectSessionContainer>
</s:Application>

Similar Messages

  • Tried to follow the first video tutorial with no success

    Hi,
    I tried to run the first video tutorial (Your First AFCS Application) on LCCS SDK Navigator with no success.
    The code as described is:
    <?xml version="1.0" encoding="utf-8"?>
    <mx: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="955" minHeight="600" xmlns:rtc="AfcsNameSpace">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
            <rtc:ConnectSessionContainer width="100%" height="100%" roomURL="https://connectnow.acrobat.com/smoky6880/room">
                <rtc:authenticator>
                    <rtc:AdobeHSAuthenticator userName="*******" password="*******"/>
                </rtc:authenticator>
                <mx:HBox width="100%" height="100%">
                    <mx:VBox width="25%" height="100%">
                        <rtc:Roster width="100%" height="50%"/>
                        <rtc:WebCamera width="100%" height="50%"/>   
                    </mx:VBox>
                    <rtc:SimpleChat width="75%" height="100%"/>                   
                </mx:HBox>
            </rtc:ConnectSessionContainer>
        </fx:Declarations>
    </mx:Application>
    Basically, I pressed the Debug button and all I am getting is:
    [SWF] C:\Documents and Settings\Kevin Lee\Adobe Flash Builder 4\VideoChat\bin-debug\VideoChat.swf - 370,463 bytes after decompression
    [SWF] C:\Documents and Settings\Kevin Lee\Adobe Flash Builder 4\VideoChat\bin-debug\VideoChat.swf - 2,292,131 bytes after decompression
    [SWF] C:\Documents and Settings\Kevin Lee\Adobe Flash Builder 4\VideoChat\bin-debug\VideoChat.swf - 706,253 bytes after decompression
    [SWF] C:\Documents and Settings\Kevin Lee\Adobe Flash Builder 4\VideoChat\bin-debug\VideoChat.swf - 648,239 bytes after decompression
    [SWF] C:\Documents and Settings\Kevin Lee\Adobe Flash Builder 4\VideoChat\bin-debug\VideoChat.swf - 441,686 bytes after decompression
    [SWF] C:\Documents and Settings\Kevin Lee\Adobe Flash Builder 4\VideoChat\bin-debug\VideoChat.swf - 1,429,050 bytes after decompression
    [SWF] C:\Documents and Settings\Kevin Lee\Adobe Flash Builder 4\VideoChat\bin-debug\VideoChat.swf - 323,414 bytes after decompression
    I am not getting any message related to connection.  And yes, the username and password are correct; I just removed them for privacy.  Any ideas?
    Thanks,
    Kevin

    Hi Kevin (and welcome to the forums!),
    Wow, that's a trip... ConnectSessionContainer is a visual component, so I
    guess it needs to be outside your <fx:Declarations> tags. I didn't know that
    putting it in there would cause all hell to break loose (I love how the
    number of bytes keeps changing!); you learn something new every day!
    nigel

  • I try to play a video through itunes but everytime it tries it causes the software to crash with windows 7.

    Has anyone had this problem?  I've tried to play a video through itunes but everytime it tries it causes the software to crash with windows 7.  I have the newest updates.

    Try the following user tip:
    iTunes for Windows 10.7.0.21: "iTunes has stopped working" error messages when playing videos, video podcasts, movies and TV shows

  • HT201272 How do i see a list of the apps that have been downloaded and the dates and times and amounts?  Tried to follow the on-line thing but i want to compare what has been downloaded with my visa bill.  HELP!!

    How do i see a list of the apps that have been downloaded and the dates and times and amounts?  Tried to follow the on-line thing but i want to compare what has been downloaded with my visa bill.  HELP!!

    See this -> http://support.apple.com/kb/HT2727

  • I have been trying to publish my podcast to iTunes with no success – I keep getting the following error message

    I have been trying to publish my podcast to iTunes with no success – I keep getting the following error message
    We could not complete your iTunes store request. You do not have enough access privileges for this operation. There was an error in the iTunes store. Please try again later.
    New to all this and would really appreciate some help.
    Thanks in advance
    PS: I should say that I have an ITunes account - I have full permissions over the website etc. I am using Powerpress plug in on a wordpress site.

    My guess would be that you've fallen over a glitch in the Store, in which case all you can do is wait a bit and try again, but it is only a guess. Without being able to look at your feed it's not possible to say whether there might be a problem there.

  • HT201320 I have a new ipad mini - I am able to receive emails but not send - same with text. I have tried to follow the support advice. I have deleted my aol account and added it again. I have compared every setting with my husband, who has an ipad? Pleas

    I have a new ipad mini - I am able to receive emails but not send - same with text. I have tried to follow the support advice. I have deleted my aol account and added it again. I have compared every setting with my husband, who has an ipad? Please help

    ps when syncing it jumps through steps 1 - 4 real fast, i seem to remeber iphone showing the number of tracks transferring and names, but i see nothing? then it sits on 5 saying "waiting for changes to be applied"

  • I need help installing flash player on my Mac OS 10..I I tried to follow the directions with no luck

    I nee help installing Flash Player on my Mac OS 10. I tried to follow the directions, but had no luck,

    >About This Mac
    What SPECIFIC OS X build is it?
    Is your Mac Intel or PowerPC?

  • I tried to follow the steps in recovery mode but itunes still can't detect it

    i tried to follow the steps in recovery mode but itunes still can't detect it.
    Ok ok. It did work the first time, however the phone got disconnected so then the phone turned itself on again.
    I tried to repeat the same steps again but it did not show the itunes logo. It just turned on and went to the lock screen.
    I did this for about 4-5 times. Each trial ending up with the same result.
    So what i did, once the phone was connected to itunes i clicked the update button and waited for HOURS to finish the update.
    It did restart and did whole other things. But it stopped and a black screen appeared with a text saying Iphone is disabled. Connect to iTunes.
    Any suggestions on what to do next? I'm seriously feeling so frustrated right now.
    So in case you didn't get it my phone was disabled after entering the wrong password too many times. Tried fixing it but it seemed to get worse.
    Really desperate here.

  • I'm trying to upgrade WordGemH on my IPad with no success using my account because of the security questions which I. Haven't done before.

    I'm trying to upgrade WordGem on my IPad with no success using my I tune account. The problem is the tow security questions which I haven't done before.

    Hi there Nabila Bakry!
    It sounds like you may need to reset your security questions. This can be done by following the instructions in this article:
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

  • I tried to follow the instruction of buying iphone apps without a credit card, when I selected United States, but when I fill up the credit card info, i could not find the word "None". Anyone know what should I do?

    I tried to follow the instruction of buying iphone apps without a credit card. I follow the steps and I selected United States, but when I fill up the credit card info, i could not find the word "None". Anyone know what should I do?

    When you tried to contact Support with the card's images how were you trying to do it, on your phone or a browser on your computer ? And have you tried a different browser to see if you get the same error message ?
    As well as images of the card they might also want an image of its receipt.
    And to contact Support you were using : http://www.apple.com/support/itunes/contact/ , and clicked on Contact iTunes Store Support on the right-hand side of the page, then iTunes Cards And Codes ?

  • Spent some time trying to find a Safari download site with no success.  Where is the iMac Safari download site?

    Spent some time trying to find a Safari download site with no success.  I found lots of Safari sites but no Safari download site.  Where is the iMac Safari download site?

    (The following does not apply to users of Lion OS 10.7 or later)
    If your Safari keeps crashing, or if you are updating Safari (or just have) and it is misbehaving:
    N.B. Never delete Safari, never run it under Rosetta, don't use proxy settings, and don't change the application's name or move it from the top level of the Applications Folder to a sub-folder.
    (If you prefer to download updates via Software Update in the Apple menu (which would ensure that the correct version for your Mac was being downloaded), it is not recommended to allow SU to install major (or even minor) updates automatically. Set Software Update to just download the updater without immediately installing it. There is always the possibility that the combined download and install (which can be a lengthy process) might be interrupted by a power outage or your cat walking across the keyboard, and an interrupted install will almost certainly cause havoc. Once it is downloaded, you can install at a time that suits you. You should make a backup copy of the updater on a CD in case you ever need a reinstall. Alternatively you can download Safari directly:
    Safari 4.1.3 for Tiger can be downloaded here:
    http://support.apple.com/kb/DL1069
    Safari 5.0.6 for Leopard can be downloaded from here:
    http://support.apple.com/kb/DL1422
    Safari 5.1 for Snow Leopard can be downloaded from here:
    http://support.apple.com/kb/DL1070
    Make sure you download the correct version for your system.
    Also, observe the recommended procedure for installing software: repair permissions and close all applications, install, then repair permissions again.)
    Input Managers and other plug-ins from third parties can do as much harm as good. They use a security loophole to reach right into your applications' code and change that code as the application starts up.  If Safari is crashing, the very first thing to do is clear out your InputManagers folders (both in your own Library and in the top-level Library), log out and log back in, and try again.
    So, disable all third party add-ons before updating Safari, as they may not have been updated yet for the new version. Add them back one by one. If something goes awry, remove it again and check on the software manufacturer's website for news of an update to match your version of Safari. Remember: Tiger up to 10.4.10 used Safari 2.0.4, Tiger 10.4.11 uses Safari 4.1.3, Leopard uses Safari 5.0.6,  and Snow Leopard uses Safari 5.1.x. If these latest versions of Safari are not the fastest browser you have ever used, then something is wrong!
    (Trying to revert to a previous version of Safari  can have repercussions, as previous versions of Safari used a completely different webkit on which other applications like iChat, Mail, Dashboard Widgets etc also rely, but if you really want to do this post back for instructions on the safe way to do so.)
    Most errors reported here after an update are due to an unrepaired or undetected inherent fault in the system, and/or a third party ad-on. Add-ons that have been frequently mentioned here, among others, for causing such problems are Piclens, Saft, AcidSearch and Pithhelmet, and the dreaded CT Toolbar. If you have them, trash them, and go the developer's sites to see if new versions are available for the latest version of Safari on your current operating system.
    You must also ensure that you have downloaded and installed all the correct version for your Mac of Security Updates. These require a restart and a permission repair.
    To reiterate, Input Managers reach right into an application and alter its code. This puts the behavior of the affected application outside the control and responsibility of its developers: a recipe for  problems. That's not to say that issues absolutely will ensue as a result of Input Managers, but you, as a user, must decide. If the functionality of a specific Input Manager or set thereof is really important to you, you may well choose to assume the associated risk.
    Again, the advice is to remove all Input Managers from the following directories:
    Hard Disk/Library/InputManagers
    Home/Library/InputManagers
    especially prior to system updates and updates to Safari (they can always be added back one-by-one later).
    Lastly, the Safari updates require a restart of your Mac, and sometimes even a double restart is required.

  • I am trying to change the email address associated with my existing account to free up my university email address for use in obtaining Creative Cloud.

    I am trying to change the email address associated with my existing account to free up my university email address for use in obtaining Creative Cloud.  Every time I go to the account settings of my existing account (which currently uses my university email, as I set it up years ago and had no idea it'd eventually cause problems), I enter a different email to use for that account but I continuously receive an error message saying "account changes cannot be saved."  It makes me think that it's because the email isn't verified (funny, it actually is verified since it has been the alternate email on the old account for years), but when I click the "send verification email" nothing happens (that is, no email is sent to that other email address).
    Anyway, my university is now requiring that faculty create new accounts using our university email addresses in order to register/use Creative Cloud.  Am I able to delete my old account, or can anyone help me actually change the email address associated with my old account without getting a "changes can't be saved" error?

    This is an open forum, not Adobe support... you need Adobe support to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    or
    Make sure that EVERY DETAIL is the same in every place you enter your information
    -right down to how you spell and punctuate the parts of your name and address
    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -Credit card https://helpx.adobe.com/utilities/credit-card.html
    -email address https://forums.adobe.com/thread/1446019
    -http://helpx.adobe.com/x-productkb/global/didn-t-receive-expected-email.html

  • Does the ipod video work with the original ihome?

    does the ipod video work with the original ihome?

    Welcome to Apple Discussions!
    If you mean this one...
    http://www.ihomeaudio.com/products.asp?productid=10015&deptid=1003
    Them yes. I am using one myself. You may want to purcahse these if it does not come with them (depending on how old it is)
    http://www.ihomeaudio.com/products.asp?productid=10016&deptid=1000
    btabz

  • HT1657 How do I get a refund for a movie that didn't play sound. (Since I wasn't sure if it was my computer settings, I repurchased the rental. The second download played with sound, although it was slighly out of sync.)

    How do I get a refund for a movie that didn't play sound. (Since I wasn't sure if it was my computer settings, I repurchased the rental. The second download played with sound, although it was slighly out of sync.)

    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • My ipod touch won't synch/download new talks from itunes.  I've tried restarting the device many times with no success.  New talks won't download.

    My ipod touch won't synch/download new talks from itunes.  I've tried restarting the device many times with no success.  No new talks will download.

    I am having a similar problem. It did load the song but today it erased them and won't sync any music. The rest of the sync is fine.

Maybe you are looking for

  • Financial Report Templates - Creation and input of accounts

    Hi, At the time of creating Financial Report Templates, these templates can be very time consuming and tedious to create, as for the inputting of accounts within each account category - filling out one or more details... It would be helpful to have s

  • MS XML Editor

    Hi, May I know whereto locate MS XML Editor in SQL Server ?

  • Project Center - How to Update / Correct the URL/Link stored in the Project Name field.

    In the Project Center list, the link in the "Project Name" field for some projects take you the the project details page and some display the project schedule. How can I update/correct the links to display the project schedule?

  • REQUEST within f?p =

    Hi, I've got a report which prints out a list of links on a page. Each link is a f?p url with values from the query and a request to branch it to a page which runs pl/sql processing when the requests are equal. Basically, the link looks like this: f?

  • Error by sending IDOC-acknowledgements

    Hello, we have the following scenario: R/3 IDOC -> XI -> Mail-Adapter We want to receive acknowledgements from the adapter. But we get the error "Sender XI Party http://sap.com/xi/XI / XIParty / xyz couldn't be transformed to an IDoc Partner". Does a