Window visibility

I have an application having a main screen that uses buttons to select other screens.  All screens have multiple gauges that fill each screen, run full screen visibly replacing the main screen, and navigate ack to the main screen to select other screens.  I'm implementing a day/night color scheme selected only from the main screen.  When I change the day/night state on the main screen and then select another screen, the other screen becomes visible and then updates the color scheme. This is a fairly large application so the screen color scheme updates slowly giving a mixture of day and night colors until the update is done.  I need to hide the new screen until the update is complete.  I have tried using the VI > Front Panel > State property to hide the new screen when entered and then set the State to Standard or Maximized when the updates are complete.  This causes the main screen to momentarily flash off, back on briefly and then the selected screen appears with the updates.  This helped in not seeing the updates but the screen flashing is annoying.  Is there a way to eliminate the screen flashing and have a smooth transition from one screen to another without seeing the new screen updates?
Thanks in advance for any help!
Mel
LabView 7.0

If your application is sitting at the main screen when you change the color and no other windows are open, then I am assuming that each subVI then checks for what color mode to be in when it starts and you set it.  The user sees this because you have the subVIs set to open when called.  If this is the case, all you have to do is uncheck that option.  Have your code manually open itself after you have set the color scheme.  This way, the VI starts running, and it updates all the colors with the main window closed.  After setting the colors, you then open the window.  The user will see a brief delay int he window popping up, but it should be negligible. 
tbob's example shows how to do this.  If you do not open the VI reference, the FP Open and FP Close will be performed on the current VI.  Set the colors, then call FP Open. When the Vi is finished, do the FP Close.
Message Edited by Matthew Kelton on 04-03-2010 11:52 PM

Similar Messages

  • DW CS5 Mac10.7.x: keep DW windows visible when DW not at front?

    When DW is the front-most app, all currently-open DW windows are visible.
    Switch to another app, including the Finder, all DW windows disappear.
    Any way to change this behavior?  Any way to keep DW windows visible when it is not the front-most (active) app?
    Why do I ask?  For one thing, as it stands, I find it very difficult to document something that's going on in DW, say in a forum -- this one!
    TIA

    shunithD wrote:
    SnakEyez...
    Happens with several documents i tested... including DW default templates. Only option to validate was 'As XML', with CF greyed out - even though it was unchecked in the preferences. After installing the extension (mentioned in original post), i got the option of 'Markup' and the CF option has gone. Now, validating 'Marku'p works but 'As XML'  still freezesDW.
    Seems to be a known bug... Here's the thread:
    http://forums.adobe.com/message/3005271#3005271
    Cheers,
    S
    But are they different document types?  When you create a new document are you trying different types like XHTML 1.1, HTML5, HTML4, etc?  The more details you can provide the more likely the problem will be fixed.  Currently I am using CS5.5 on a Mac and the validation works for me in multiple types so the more you can tell Adobe when you submit the bug report the better.
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • Making windows visible

    Can I make a small non-LabView window visible by say having it appear on a page in a tab control?

    Provided the "program" in question provides the required services, LV will let you embed the other program in a sub-panel (as mentioned above).
    In the case of the program you are describing it appears it does not offer such services, so the best you will be able to do is to run the program in a DOS window using sysexec.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How do i keep the window visible on top

    I'm watching videos and want them to stay 'on top' of all other windows as I switch between applications...like word to explorer to safari to google...I want to keep my video playing visible on 'top' of all other windows.

    Firefox itself does not have native features for this. However, you can download and install the PowerMenu application for Windows at [http://www.abstractpath.com/powermenu/]. It installs very quickly.
    When you want to watch your video, put it into its own Firefox window (you can do this by right-clicking the video tab and selecting "Move to new window". In this new window, right-click any one of the three Windows buttons at the top right corner (Minimize, Resize, Close). Click "Always On Top" from the menu. This window will now remain on top of all other windows until you uncheck "Always On Top".
    I hope that helps!

  • Window Visibility Issues

    I have a form with two windows. The main form has a main canvas and two stacked canvases. On one of the stacked canvases there are keyboard navigable elements. I also have another window that is used as a calendar data selection. My problem is that when the form loads the calendar window is visible even though I have not explicitly told it be visible. I only want to show this window when a button is clicked so that the user can select a data from the calendar.
    I have checked the main form and it DOES have navigable elements so I am not sure why the other form keeps popping up upon form load.
    Any ideas? I am using Forms 10g
    Thanks...

    hi ,
    use the show_view,hide_view properties in the button and also when the fom is called use hide_view property for the canvas you want to hide.

  • IMovie 11 launches, no windows visible

    I've just run into an interesting problem. When I launch iMovie 11 (version 9.0.6 (1763)), I can see that the application launches properly, see the "light" under the Dock icon, and can even see all of the iMovie menus. There's just one issue -- none of the iMovie windows are visible.
    I saw an earlier post from 2008 where changing the color profile for the display (this is a 27" iMac) would bring the windows back -- that didn't work here. I've also tried reinstalling the app, deleting various pref files, etc... and nothing appears to be working.
    iMovie is running under Mac OS X 10.7.4. Any ideas?
    Steve

    Did you by any chance upgrade your Mac OS from version 10.6 (Snow Leopard) to 10.7 (Lion) during the time you were working in iMovie on all these projects?
    If not, start by deleting the iMovie Preferences file.
    Go to the Desktop
    Hold down the Option key and choose the Go Menu > Library
    Go to Preferences > com.apple.iMovieApp.plist
    Move the .plist file to the trash and restart iMovie
    See if the Project files react any differently. Failing that try doing a Repair Disk Permissions:
    Restart the Mac, hold down the Option key continuously until 2 hard drive icons appear
    Choose the Recovery Volume as your startup disk and let it run until you see the Desktop
    Choose Disk Utility from the Recovery Menu
    Run Repair Disk Permissions in Disk Utility
    Reboot the Mac and when you see the Desktop appear launch iMovie
    See if the Project files are the same or different. Next step after this is to one at a time take the Project folders out of users/me/movies/imovie projects. Move one to the desktop and start iMovie. Try skimming the projects that acted up recently. Moving one project at a time might help isolate which project may be causing problems. You can also place project folders back in their original location after doing this testing and iMovie will recognize them on the next relaunch. It won't hurt anything.

  • Making an invisible window visible - problems

    How do I make a currently invisable window named "newwin" visable from the page that launched the window?
    Inside "index.html" I open a new window with the following code:
    var options = new air.NativeWindowInitOptions();
    options.systemChrome = "none";
    options.type = "normal";
    options.transparent = true;
    var windowBounds = new air.Rectangle(20,25,900,600);
    newwin = air.HTMLLoader.createRootWindow(true, options, true, windowBounds);
    newwin.load(new air.URLRequest("skin.html"));
    Inside "skin.html" (launched inside "newwin" window):
    window.nativeWindow.visible = false // works as expected - window becomes invisable
    Now inside "index.html" I have a command to make "newwin" visable again (which isn't working):
    I have tried:
    window.nativeWindow.visible = true (opens up the main application window)
    newwin.nativeWindow.visible = true (TypeError: Undefined value)
    newwin.visible = true (does nothing - no error but doesn't make newwin visable)
    newwin.options.visible = true (TypeError: Undefined value)
    newwin.nativeWindow.options.visible = true (TypeError: Undefined value)
    newwin.activate()  (TypeError: Value undefined does not allow function calls.)
    newwin.nativeWindow.activate() (TypeError: Undefined value)
    all come up with "TypeError: Undefined value"
    How do I make a currently invisable window named "newwin" visable?

    newwin is an HTMLLoader object. To get to the NativeWindow object you can use either newwin.window.nativeWindow or newwin.stage.nativeWindow.
    So:
    newwin.window.nativeWindow.visible = true;
    or:
    newwin.window.nativeWindow.activate();
    should work.

  • Open Link in New Window creates an invisible window (visible after restarting).

    When I use the right mouse button menu to Open Link in New Window from a web page it creates an invisible window. That is, I cannot see the window but it is listed in the Firefox Window menu. This newly opened window cannot be selected either by mouse or from the Window menu. However, if I quit and restart Firefox the new window appears as 0 pixels wide (i.e., a 1 pixel wide vertical line) and I can select it (by mouse or Window menu) and zoom it from the Window menu. After zooming I can operate on the window normally.

    Get Firebug and inspect the element. You'll see that it actually is this:
    onclick="javascript:saw.runThis
    URL('saw.dll?PortalProperties&_scid=To2OnvCVXpY&PortalPath=/shared/paint/_portal/PoC\x2520FINS&Done=ManagePortals\x2526Done\x253dAdmin');return false" href="javascript:void(null)" FF doesn't even give you the "Open..." options and all IE versions as of 7 show them but actually don't do anything when you invoke them.
    Edited by: Christian Berg on Sep 9, 2009 10:36 AM

  • DOS Commands Used in Java Pgm, but command window should NOT be visible!

    Need a solution for the following.
    Problem: In a Java program, DOS Commands are used.
    Hence while executing it, the command window is visible for few seconds and later it is hided i.e once the processing of that DOS Command is finished.
    Solution Required: The Command Window should not be visible. The DOS Commands should be performed in the background with out making the command window visible.

    Problem:
    I am trying to run a executable file through java . But a command window always pops up. I want the command window not to pop up while the code is executed. Alternatively the rt.exec method should run in the background till the process is complete.
    I am using the following code in Java Swing application , where in when a user clicks a button the following method is invoked , which is turns invokes a windows a rasdial.exe file .Ex: rasdial MyConnection;
    Can someone help me on this. The below is a snippet of my code .
    public void callSerialOrInfraExe(String exeName) {
    executableFile = exeName;
    Runtime rt = null;
    Process process = null;
    boolean checkCon = false;
    try {
    rt = Runtime.getRuntime();
         process = rt.exec("rasdial " + executableFile);
    process.waitFor();
    checkCon = checkConEstablish();
    if (checkCon) {
    lblMsg.setVisible(true);
    cmdSubmit.setText("Done");
    cmdSubmit.setMnemonic('D');
    rdbSerialPort.setVisible(false);
    rdbInfraredPort.setVisible(false);
    jLabel1.setText(msgStr.toString());

  • Mail "New Message" window retreats to background after drag and drop attachment from Finder to Mail "New Message", click, and Finder window stays in foreground even when not in focus

    Hi, I'm surprised I can't quickly find if anyone else is having this issue. For me it has been going on since Lion on my 13" MacBook Pro 2011 and it's still persisting in Mavericks, and even still now that I've "downgraded" to a 15" MacBook Pro 2010 with Mavericks.  The behavior is odd and difficult to explain concisely. Basically, when I want to add an attachment to Mail, I'll Cmd+Tab over to Finder click and drag and Cmd+Tab back to Mail, and drop the attachment. At first it looks fine, but when I click in the New Message window where I just dropped the attachment, to move the cursor, it retreats to the background and the Mail Main Window comes to the foreground. Then, if I click on that, the Finder window that I just used comes to the foreground. Sometimes if I switched to another app before going to Finder to select the drag and drop, that other app window will appear in the foreground instead. If I click on the other app window that is now in the foreground, then the Finder window that was last used will come to the foreground. The only thing that seems to fix this switch-a-roo effect is Cmd+Tab-ing back and forth a few times, or click on the window "frame" at the top to move the window around.
    The way to prevent this is to have my Mail Message window visible in the foreground side by side with the Finder window when the drag and drop occurs (this is a tedious extra step if mulitple windows are open, or to use the add attachment command in the menu within Mail. But it sure is annoying buggy behavior.
    Thanks
    Daniel

    Yep, I get exactly the same thing when using Thunderbird mail client on my 2011 iMac running Lion. I've been putting up with it for at least a year, maybe longer.
    For me it appeared to start after a Thunderbird update, so I figured that was the cause and couldn't find a solution at the time. However I've now noticed it starting to happen in Apple Motion 4 when dragging files from Finder into a DropZone in my animations. Motion remains the active program but the Finder window sits on top until I Cmd-tab out to a third open program (ie not Finder) and back to Motion again.
    This is the first indicator I've had that it's an OS X issue.
    Be great to find a solution as D&D is by far my preferred way of adding attachments to emails and similar tasks.

  • How do I fix my mac so that the window I am looking at has the focus?

    I am a new mac user and at present beyond comprehension of how people cope with mac if they are not primarily mouse oriented.
    Current problem.
    I close an app using apple key W
    It closes
    I am looking at a window of another app. I want to close that too. Apple key W. Nothing. This window does not have the focus. No keyboard actions will make it do anything. And the bar at the top of the screen is still the bar for the app I have just closed, but that does not respond to the keyboard either. At this point, no keyboard action will affect either app.
    As a one time developer I have to say that in any context I am familiar with this would be considered a major show stopping bug, and the programmer would get into a lot of trouble if the software went out in this condition.
    Certainly, for a user who lives by the keyboard coming from linux / windows, both of which do what I consider sane and sensible things in all places and at all times, this is a major *** situation!
    Please can someone tell me how to get my mac to behave more 'sensibly'.
    I want the window I am looking at, the only window visible on the screen, to have the focus. Always. No matter what! Which I think is entirely reasonable.

    Thank you for all your points.
    It can't automatically be the one you want without some instruction from you - the cmputer is not a mind reader, can not seenwhat holds your attention.
    Darn!
    In Windows and Linux it is automatically the last one in use before you closed the window(s) that have been closed. This is the window naturally lying topmost in the stack of windows on the screen. It is this window which is exposed in the circumstance I am describing. And it is this window which I expect to have the focus in this circumstance.
    More to the point, and has been mentioned several times - unlike Windows, when you close the last window of a Mac app, the program is not quit (usually - there are exceptions). The program is still running, as is indicated by the 'running light' on the Dock (the small bluish oval underneath the app's icon in the Dock), even though it has no windows open.
    It is not running with an invisible window being the focus - it has no windows at this point, not even an invisible one.
    Yes, understood - naturally enough after a few hours exposure to the mac interface. And I would assume that none of the quitted windows in that app will have the focus, which would be nonsensical.
    The overall 'focus' is still on that program, because it is still running (you closed its windows, but did not quit the program) and will remain so until you instruct the Mac to switch to a different program in the stack (or queue, or rotation, however you choose to consider it).
    Yes. WHY?
    Whether program closes when you close the last window is an interesting point. Mac do it different to the others. OK. But this program should not have the focus, unless there is something useful you can do with it. I would have thought obviously.
    Why have a program quit when you close its last window? Doesn't make sense to me - can't tell you how many times that behavior with a PC has irked me. Consider this scenario - you're writing a memo to someone in TextEdit. You print the memo off. You're done with that doc, but then want to write a letter to someone. So you close the window for that file, which happens to be the last window open for TextEdit. If TextEdit should quit at that point, you'd need to restart it again before you can write the letter. But - it doesn't quit; it's still running. So instead of restarting it, all you need do after closing the memo's window is press Command-N for a new, blank doc in which you can write the letter.
    I agree. This is very useful - once you are used to it. Certainly, this is an excellent option, though it seems crazy that it is not a readily settable option. Equally though, if I was going from mac to windows or linux, I would be totally peeved if this behaviour was not a settable option.
    Regardless, this is the way it is in the Mac world, and has always been as far back as I can remember it (and I go back to OS 1 on a MacPlus). As far as 'industry standards' go, there are many who feel that Macs set the GUI standards a long time ago, and that those wo have imitated it have not done a good job of their implementations.
    I totally take your point. And I am ready and willing to learn a new interface, naturally, though I had no idea the journey would be so extensive. [] "More ruddy stairs" says the elderly ghost of the recently deceased David Emery grumpy old git character, who hobbles along with a cane, confronted with a loooong flight of stairs up to heaven []
    - elsewise I'm going to cause myself an inordinate amount of frustration when my impossible-to-meet expectations aren't met.
    Of course I have impossible-to-meet expectations, I got a mac, the doyen of computers. I thought a faint mysterious hint of a sound might be present in the faint whirr of the fans at start up, like far off angelic choirs, and that everything would be easy and wonderful, as well as beautifully easy on the eye.
    But I still think that the focus shoud go somewhere useful. And if it stays with the app running with no windows, then at the very least it should be one keyboard shortcut to open a window for that app, or reopen the last window of that app. Or, gasp, it should go to the last window in use before the windows of the app that just got closed, the one on top of the stack, the one straight in front of you, currently impervious to any and all keyboard strokes. And, given the price and sophisication of macs, and the significant gap between the GUI standards of the major players, however long they have respectively been in business, I think it is the kind of thing which should be settable. Indeed, confident that this was settable or 'fixable', I embarked on this thread in the first place.
    EOL

  • Closing Console window while running Java application from Batch file

    Hi all,
    I have made a small application using Java swings,now i have made a jar file of my application and calling this jar file through batch file,when user clicks on that batch file it runs "java -jar applicationname.jar" command,but problem is that when i run that file from batch file it opens Dos console window at baclk of the screen which looks weird for a desktop application,i dnt want that Dos console window visible at the backend while my application is running,i have searched regarding this on google but found nothing usefull,if anybody can please help regarding that it will be a great releif for me,i have been stuck on this problem from last two days.
    Thanks.
    Simer

    warnerja wrote:
    georgemc wrote:
    warnerja wrote:
    start java -jar applicationname.jar
    That'll pop up another consoleI'm under the impression that the console window he is seeing is the one which cmd.exe opens when it is executing the batch file. And that batch file won't return until the java process has completed because he didn't start it in the background to let the batch file continue and terminate.
    So I don't think just simply substituting java with javaw will do much good either. Still think he needs a "start" command in that batch file.
    So now he can try:
    start java -jar ...
    or
    start javaw -jar ...Fair point

  • ITunes, Shuffle and Windows Vista

    Microsoft is releasing Windows Vista in January. Are there any plans for the iTunes software/IPOD firmware to be upgraded to be compatible with Windows Vista?!? I've found that the IPOD Shuffle Reset utility does not install on Windows Vista. ITunes works, and sees IPOD/Shuffle, however get error 1418 almost always, iTunes locks up, can't transfer songs to shuffle, get error" can't read/write"...or AutoFill. I've found that if I use the reset utility on a Windows XP machine (have to do this twice)...then plug it into the Windows Vista machine, If I select "allow iTunes to automatically add songs to the IPOD" it works. But, can't delete songs from IPOD or add any new ones manually. I'm a developer, so this is a full release version of Windows Vista. Just curious, what the plans are to bring iTunes/IPOD in line with the Windows release, and if there is anything that I can do now to remedy this.

    Oh, so the iPad DOES work fine connected to the same computer and the same port.  I thought you said it did not in the first post, but maybe you got that working (or I misunderstood before).
    NOTE:  When things are working properly, the shuffle will not appear in Windows Explorer (except when actively syncing), unless you have Enable disk use turned on for the shuffle.  So not seeing it in Windows Explorer may not be a problem.
    Is this shuffle a new purchase... so it did not previously work for you on this computer?  If so, make sure that the shuffle end of the USB cable is fully inserted into the headphones jack.  The fit can be tighter than expected, and it may seem connected, but is not.  For a surprising number of people, this was the problem.
    In iTunes, is the sidebar (along left side of window) visible.  If it is hidden, from the iTunes menu bar, under View, select Show Sidebar.  When there are no devices connected, the heading DEVICES should not appear in the sidebar.  When you connect your iPad, DEVICES should appear, with the iPad listed below.  If you connect the shuffle, it is be added to the list under DEVICES.  To confirm, you do not see the shuffle listed there under DEVICES, when it is connected?
    When you connect the shuffle, does its light on the shuffle do anything?

  • Any timecode window plug-ins for older versions of FCE?

    Hey - thanks in advance for any help on this.
    I use FCE version 1 on a G4 running OSX 2.9. The most commonly recommended Free timecode plugin doesn't seem to work in my version. I install it, but it's not visible in the bins where it's supposed to show up. I tried saving it as a unix and/or unicode and all that other gobbly gook that you're supposed to try if it doesn't install properly. Anyhow, none of that helped. I can only assume it's because of my earlier version of FCE or my OSX.
    I need a timecode window visible on my finished project because I'm sending to a closed captioning place. Thanks again.
    G4   Mac OS X (10.2.x)   Also Have PC

    Wow - I had no idea my question would be such a great source of joy for those of you who enjoy making yourselves feel better by putting other people down. I'm glad I could help.
    For anyone else who is actually interested in helping and can refrain from insulting me, I'm still eagerly awaiting some friendly, HELPFUL, advice.
    And for the rest of you, by the way - I am a professional and as professionals know, you don't have to rely on the latest and greatest technology to get great results (if you're any good, that is). I humbly called myself a struggling artist, but my resume would put you to shame, so please, no more childish remarks.
    G4   Mac OS X (10.2.x)   Also Have PC

  • How to make a private chat look in another window

    hi
       iam new to flex
    and now what my question is when i double click on the particular user present in the chat room
    i should get chat open in new window
    is this possible please help out in this issue

    hi
       thanks for urs replys its helping a lot
    and now i wnt some information from u abt private chat
    see wt my doubt is iam getting user name and uid when i click on the user in the userlist with that iam creating an instance to the class "ChatMessageDescriptor" and with that iam sending msgs to the user clicked by the property recipient
    and iam initiating that private chat in seperate label privatechat space and now wt the problem is when i click on the username
    for example iam the user A and i clicked on user B the window gets open for userA and user A can send msgs to user B directly
    but where as in place of User B the window doesnot get open,  only when he clicks on User A  he is able to send msgs to User A and he can chat w User A directly from there on words
    so wt i want is how to intiate him that chat is open with User A  so click him in the userlist  or directly open him a window as soon as User A clicks
    User B is this possible plz refer my code u will get clearly understood the problem
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application layout="absolute"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        applicationComplete="init()"
        xmlns:rtc="AfcsNameSpace">
        <mx:Script>
            <![CDATA[
                import com.adobe.rtc.pods.simpleChatClasses.ChatMessageDescriptor;
                import com.adobe.coreUI.controls.WhiteBoard;
                import com.adobe.rtc.sharedModel.SharedCollection;
                import com.adobe.rtc.sharedManagers.UserManager;
                import com.adobe.rtc.sharedManagers.descriptors.UserDescriptor;
                import mx.controls.listClasses.IListItemRenderer;
                import mx.controls.listClasses.ListBaseSelectionData;
                import mx.collections.IList;
                import mx.events.ItemClickEvent;
                import mx.controls.Alert;
                import com.adobe.rtc.events.AuthenticationEvent;
                import com.adobe.rtc.events.ConnectSessionEvent;
                import com.adobe.rtc.events.SessionEvent;
                import mx.core.IFlexDisplayObject;
                import mx.managers.PopUpManager;
                import flash.net.*;
                import mx.collections.ArrayCollection;
                import com.adobe.rtc.pods.simpleChatClasses.SimpleChatModel;
                import com.adobe.rtc.events.ChatEvent;
                private const applicationTitle:String = "AFCS Sample Application";
                  [Bindable]
           public var chatModel:SimpleChatModel;
           public var clickeduser:UserDescriptor = new UserDescriptor;
             public var userwnt:String=new String;
              public var clickusername:String=new String;
               public var selindex:int;
               public var count:int;
                private function init():void
                    sess.addEventListener(SessionEvent.ERROR, onEventNotification);
                    sess.addEventListener(SessionEvent.SYNCHRONIZATION_CHANGE, onEventNotification);
                    auth.addEventListener(AuthenticationEvent.AUTHENTICATION_FAILURE, onEventNotification);
                    auth.addEventListener(AuthenticationEvent.AUTHENTICATION_SUCCESS, onEventNotification);
                    popup(loginWindow);
                private function popup(window:IFlexDisplayObject):void
                    PopUpManager.addPopUp(window, this, true);
                    PopUpManager.centerPopUp(window);
                    window.visible = true;
                 * Process AFCS Events
                private function onEventNotification(p_event:Event):void
                    if (p_event.type == SessionEvent.SYNCHRONIZATION_CHANGE) {
                        if (sess.isSynchronized) {
                            // isSyncronized==true : we are connected to the room
                            panel.title = "Connected to room " + sess.roomURL;
                            PopUpManager.removePopUp(loginWindow);
                        } else {
                            // isSyncronized==false : we are disconnected from the room
                            panel.title = applicationTitle;
                            sess.roomURL = null;
                            notificationMessage.text = "";
                            popup(loginWindow);
                    else if (p_event.type == AuthenticationEvent.AUTHENTICATION_SUCCESS) {
                        // Authentication succeeded
                        notificationMessage.text = "Authentication Succeeded";
                    else if (p_event.type == AuthenticationEvent.AUTHENTICATION_FAILURE) {
                        // Authentication failed : bad password or invalid username
                        notificationMessage.text = "Authentication Failed";
                    else if (p_event.type == SessionEvent.ERROR) {
                        // Generic session error, but this can happen if you mispell the account/room names
                        // (sError.error.name == "INVALID_INSTANCE" and sError.error.message == "Invalid Instance")
                        var sError:SessionEvent = p_event as SessionEvent;
                        notificationMessage.text = sError.error.message;
                    else
                        notificationMessage.text = "Got event " + p_event;
                private function login():void
                    notificationMessage.text = "";
                    auth.userName = username.text;
                    auth.password = passwordBox.visible ? password.text : null; // password==null : the user is a guest
                     userwnt=username.text;
                    sess.roomURL = roomURL.text;       
                    sess.login();
                protected function buildModel():void
                    // Create the model: just calling the constructor won't create the collection node or pass the messages.
                    // Call subscribe and give it a shared ID while creating the model.
                    // The shared ID becomes the name of the collection node.
                      if(clickusername==userwnt)
                         Alert.show(clickusername);
                         viewStack.selectedChild=white;
                    chatModel = new SimpleChatModel();
                    chatModel.sharedID = "myChat_SimpleChatModel";                               
                    chatModel.subscribe();                       
                    chatModel.addEventListener(ChatEvent.HISTORY_CHANGE, onChatMsg);
                    this.addEventListener(KeyboardEvent.KEY_UP, onKeyStroke);
                 public var cmd:ChatMessageDescriptor = new ChatMessageDescriptor();
                public function userclick(bharath):void
                    count=0;     
                    selindex=bharath;
                    clickeduser= sess.userManager.userCollection[bharath] as UserDescriptor;
                    var orignaluser:UserDescriptor = sess.userManager.userCollection[0] as UserDescriptor;
                    var username=orignaluser.displayName;
                    clickusername=clickeduser.displayName;  
                    cmd= new ChatMessageDescriptor();           
                    cmd.recipient=clickeduser.userID;
                    cmd.recipientDisplayName=clickusername;
                    cmd.msg="hi";               
                    viewStack.selectedChild=white;
                      buildModel();                
                    chatModel.sendMessage(cmd);                                  
                    protected function clearChat():void
                    chat_mesg_area.text = "";
                    chatModel.clear();
                protected function submitChat(str:String):void
                 if(count==0)
                 clearChat();
                 count=1;
                var clickeduser:UserDescriptor = sess.userManager.userCollection[selindex] as UserDescriptor;
                var clickusername=clickeduser.displayName;  
                 cmd= new ChatMessageDescriptor();           
                    cmd.recipient=clickeduser.userID;
                    cmd.recipientDisplayName=clickusername;
                    cmd.msg=chat_mesg_input.text;                 
                    chatModel.sendMessage(cmd);
                    chat_mesg_input.text = "";               
                protected function onChatMsg(p_evt:ChatEvent):void
                    if(p_evt.message != null && p_evt.message.msg != null && p_evt.message.displayName != null)
                        chat_mesg_area.text += "\r\n" +  p_evt.message.displayName + ": " + p_evt.message.msg;
                    else
                        chat_mesg_area.text = "";   
                protected function onKeyStroke(p_evt:KeyboardEvent):void
                    if(p_evt.keyCode == Keyboard.ENTER) {
                        submitChat(chat_mesg_input.text);
            ]]>
        </mx:Script>       
        <rtc:AdobeHSAuthenticator id="auth"/>       
        <rtc:RoomSettings id="settings" autoPromote="true"/>
        <mx:Panel id="panel" title="{applicationTitle}" width="100%" height="100%" paddingLeft="5" paddingTop="5" paddingRight="5" paddingBottom="5">
            <!--
             | Login Dialog Box
             -->
            <mx:TitleWindow id="loginWindow" title="Connect to Room" visible="false">
                <mx:VBox>
                    <mx:HBox>
                        <mx:Label text="Room URL:" width="70"/>
                        <mx:TextInput id="roomURL" width="295" tabIndex="1">
                            <mx:text>http://connect.acrobat.com/exampleURL/exampleroom</mx:text>
                        </mx:TextInput>
                    </mx:HBox>
                    <mx:HBox>
                        <mx:Label text="Username:" width="70"/>
                        <mx:TextInput id="username" tabIndex="2">
                            <mx:text>guest</mx:text>
                        </mx:TextInput>           
                        <mx:Button label="Login" click="login()" width="126" tabIndex="4"/>
                    </mx:HBox>
                    <mx:HBox>
                        <mx:HBox id="passwordBox">
                        <mx:Label text="Password:" width="70"/>
                        <mx:TextInput id="password" displayAsPassword="true" tabIndex="3"/>
                        </mx:HBox>
                        <mx:RadioButton label="User" selected="true" click="passwordBox.visible = true"/>
                        <mx:RadioButton label="Guest" click="passwordBox.visible = false"/>
                    </mx:HBox>
                    <mx:Text id="notificationMessage" text=""/>
                </mx:VBox>
            </mx:TitleWindow>
            <!--
             | AFCS application UI wrapped in ConnectSession
             -->       
            <rtc:ConnectSessionContainer
                id="sess"
                authenticator="{auth}"
                initialRoomSettings="{settings}"
                autoLogin="false" width="100%" height="100%" >       
                <mx:HBox width="100%" height="100%" horizontalGap="0">
                    <mx:VBox>
                        <mx:TabBar dataProvider="viewStack" direction="vertical" width="100" verticalGap="0"/>
                        <!--mx:Button label="Disconnect" click="sess.close()"/-->
                    </mx:VBox>
                    <mx:ViewStack id="viewStack" width="100%" height="100%" borderSides="left top right bottom" borderStyle="solid" borderThickness="2">
                        <!--
                         | Chat pod and roster
                         -->
                        <mx:HBox label="Chat" width="100%" height="100%">
                            <rtc:SimpleChat width="40%" height="100%"/>
                            <rtc:WebCamera left="0" right="0" top="0" bottom="0" width="40%" height="100%"/>
                            <mx:List alternatingItemColors="[#DFDFDF,#EEEEEE]" dataProvider="{sess.userManager.userCollection}" width="10%" height="100%" labelField="displayName" id="abc" click="userclick(abc.selectedIndex)"/>
                        </mx:HBox>
                        <mx:Canvas id="white" label="privatechat" width="100%" height="100%" creationComplete="buildModel()">
                         <mx:VBox id="chatBox">
                    <rtc:WebCamera id="webcam" width="400" height="223"/>
                    <mx:TextArea width="398" height="140" id="chat_mesg_area"/>
                    <mx:HBox>
                    </mx:HBox>                               
                </mx:VBox>
                <mx:TextInput width="400" id="chat_mesg_input" y="370"/>
                <mx:Button label="Submit Chat" click="submitChat(chat_mesg_input.text)" y="398"/>
                </mx:Canvas>
                        <!--
                         | Fileshare pod
                         -->
                        <mx:Canvas label="FileShare" width="100%" height="100%">
                            <rtc:FileShare left="0" right="0" top="0" bottom="0"/>
                        </mx:Canvas>
                    </mx:ViewStack>
                </mx:HBox>
            </rtc:ConnectSessionContainer>
        </mx:Panel>
    </mx:Application>

Maybe you are looking for

  • Error while loading data for table. (ADM0161)

    I've this messages when I perform a Scan and Repair operation in version 5.1 The table is obj_X_DOCUMENTS Can you help me? Thanks

  • Link between Planned Order and Purchase Requisition

    Hi All, Is it possible to track a MRP planned order from the Purchase Requisition to which it was converted (using MD04 or MD14)? And is it possible to track a purchase requisition based on a planned order? Is there a clear connection - in DB tables

  • Color picker transfer to another mac

    Somehow, I've lost most of the colors (in the little squares) in the Color Picker on my MacBook Pro. I recall reading an articl a couple of years ago on how to copy the color picker (with all the colors I've created) from one Mac to another, but I ca

  • Audio is very faint or non-existent on sites like YouTube

    I  bought a HP Pavilion notebook. The audio works on fine on sites like MLB.com etc. - You Tube, however is a problem. I downloaded the latest Adobe Flash player, checked all settings but still nothing. Any ideas ? Staples, where I bought the compute

  • Different RGB in Photoshop Elements 10 and 11

    I get different RGB values for the same photo in Photoshop elements 10 and 11 tough I have the same settings, why is this? Is there any way I can fix this?