Load and open swf in new window

Hi everyone,
I have 2 flex applications named login and game. When the user logged in, I want the login swf to load the game swf and open it in a new window once it finished loading. I tried popup manager and title window but they only made the swf popped up INSIDE the app itself (which is the login swf). What I really want is to be able to load and open the game swf in a brand new popup window.
Please help. Thanks.

Loggin in is a classic example of when to use states.
The base state will be your app, and the "login" state will be your login state. Set the application currentState to 'login' in the creationComplete event.
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
  creationComplete="this.currentState='login'">
  <mx:states>
    <mx:State name="login">
      <mx:RemoveChild target="{vb}"/>
      <mx:AddChild>
        <mx:Form>
          <mx:FormHeading label="Login"/>
          <mx:FormItem label="Username:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="Password:">
            <mx:TextInput displayAsPassword="true"/>
          </mx:FormItem>
          <mx:FormItem>
            <mx:Button label="Login" click="this.currentState=''"/>
          </mx:FormItem>
        </mx:Form>
      </mx:AddChild>
    </mx:State>
  </mx:states>
  <mx:VBox id="vb" width="100%" height="100%">
    <mx:Label text="Login Done - Now in Main App"/>   
  </mx:VBox>
</mx:Application>

Similar Messages

  • Using firefox 14.0.1. Loading a link using right-click and "Open Link In New Window", results in new window opening but address bar does not show URL..

    Using firefox 14.0.1. Loading a link using right-click and "Open Link In New Window", results in new window opening but address bar does not show URL. However, if I right click on a link and select "Open Link In New Tab", the Tab shows URL in address bar. So it's working when it's a New Tab but not a New Window.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • I keep getting an error window about java since I updated to firefox 8, my tabs will flash, tabs will close and open in a new window, everything stops working, firefox is non responsive, please help

    Since I upgraded to firefox 8, I get this error window that pops up says something about java. My tabs flicker or flash, the tabs will close and open in a new window then everything stops. Then firefox does not respond. When I get this error message, I have to close all tabs wait a few seconds then open it back up it will work for a little while and then do the same thing. I have disabled plug-ins that I do not use, I have cleared my cache and cookies, I am not happy at all with this new version. I waited a while before updating. The first time I was going to update, firefox would not let me keep my anti-virus plug-in. PLEASE HELP

    Hello,
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • Open in an new tab and open in a new window - both dissapeard

    open in an new tab and open in a new window - both dissapeard
    where have they dissapeard to?
    how can i bring them back?
    thanks !!!!!!!!!

    Please press alt and tab and using tab to scroll through windows and see if the window you opened exist. If this happens every time you open a new window you may want to try safe mode:
    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Firefox4 "Open Link in new Tab" and "Open Link in new Windows" switch back to the old FF3 version

    Am I the only one finding this annoying?
    I want to know how to switch "open link in new tab" and "open link in new Windows" like it was in Firefox 3.
    If you mousehover on a link and press the right mousebutton.

    Sara, I started having the same problem yesterday. In my case I was able to remedy it by disabling FasterFox 3.9.81. If you don't have that installed, I would recommend turning off your extensions (one by one), restarting firefox, and testing until you find the offender. Hope that helps!

  • Why, when right click on some link the options "OpenLink in New Tab" and "Open Link in New Window" are exchanged?

    Why, when right click on some link the options "OpenLink in New Tab" and "Open Link in New Window" are exchanged?

    Dear friend, the problem is that there is exchange of something very useful from users an this break them habits! I'm not interested of forced using of tools! Of course it's good that there is a tool to solve my problem, but this action make me unhappy.
    last words - this is the way of losing users.

  • Open swf in new window from parent swf

    I'm making a gallery for some flash banners that I had
    created in AS3. When I click on a "launch" button, I wanted the
    flash banner swf to open in a new window separate from the parent
    swf (the gallery). I also wanted the parent swf to remain open.
    Is this possible and what would the code look like for
    something like this?

    ok, I should've also mentioned this, the flash gallery I'm
    making is not for the web, it's more for just opening in a flash
    player. So I don't really want it to open in a new browser window,
    but rather a new swf window, if there is such a thing.

  • Unable to right click a link and open in a New Window

    Hello,
    I've been having problems with FF when I right click a link on any site, and I want to "Open Link in New Window", but it never happens. Then I tried to right click the same link and I "Open Link in New Tab", which works. What happened? Did the programmers/developers change something? I even tried it in "Safe Mode" with the same problem. Can anyone suggest anything? I almost tried everything imaginable, even running Windows 7 Ult SP1 in Safe Mode as well, with no help.
    Thank You.
    David

    Note that such issues are likely caused by one of the extensions that isn't working properly.
    So if it happens again then start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions).
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    If it works in Safe Mode and in normal mode with all extensions (Firefox/Tools > Add-ons > Extensions) disabled then try to find which extension is causing it by enabling one extension at a time until the problem reappears.
    Close and restart Firefox after each change via "Firefox > Exit" (Windows: Firefox/File > Exit; Mac: Firefox > Quit Firefox; Linux: Firefox/File > Quit)
    *If you have many extensions then first enable half of the extensions to test which half has the problem.
    *Continue to divide the bad half that still has the issue until you find which one is causing it.

  • Open swf in new windows at specific points on the timeline

    Let me start by saying that I am a newbie to Flash. I have created a Flash site and I want to create links that would open a SWF in a new window at specific points on its' the timeline. How can I do this?

    It depends what version of actionscript you're using, but if you are familiar with linking to  other pages using buttons, you use the same linking code, getURL (AS2) or navigateToURL (AS3), and specify "_blank" as the window parameter in the arguments for whichever you use.  So if you are using AS2, then in your timeline where you want a new window to open you would have....
    getURL("yourfile.html", "_blank");

  • How to push a button, run a report, and open output in new windows?

    I have an application where I want to present the user with a form, have them enter their report parameters, and then press a go button. I would then like to display a progress bar. The report will generate both a PDF and HTML output. When the report is complete, I want to display each one of these outputs in their own browser window.
    How do I do this?

    You want to retrieve two responses? Then you'll have to invoke two requests simultaneously. You can make this possible with a Javascript window.open call in the onclick attribute of the commandButton. E.g.
    <h:commandButton
        value="submit"
        action="#{myBean.submit}"
        onclick="window.open('pdfServlet?param1=value1&param2=value2');" />Where the bean action just returns the HTML (JSF) result and the onclick fires a servlet, if neccessary supplied with request parameters so that it knows what PDF it need to generate.

  • The right-click menu options "Open Link in New Tab" and "Open Link in New Window" are both not working suddenly.

    I'm using version 15.0.1.
    How can I get these options to work?
    I searched for this question and found an answer was previously offered which was to uninstall the Ask toolbar due to incompatibility. I checked for this and I don't have it.

    Sara, I started having the same problem yesterday. In my case I was able to remedy it by disabling FasterFox 3.9.81. If you don't have that installed, I would recommend turning off your extensions (one by one), restarting firefox, and testing until you find the offender. Hope that helps!

  • When I have 4 or 5 tabs open, selecting one of them often forces that tab to open as a new window and close in the original window

    FF 32.0.1. Moving between tabs that are already open, clicking on one which I have opened before forces it to close and open as a new window, which is a real pain. It seems to happen when I have 4 or 5 open tabs, rather than 2 or 3.
    This has only been happening in the last week, after a clean Windows reinstall.
    I've searched and found lots of people have problems with new windows opening when they just want a new tab, but this seems to be about opening fresh tabs rather than returning to one that's already open, so I can't find the same problem as I describe.

    This can happen if you drag a tab slightly down in the browser window while clicking.
    Firefox has a feature called tear-off tabs
    You can detach a tab from the current window and open it in a new window by dragging a tab in the browser window.
    You can also do this via the right-click context menu of a tab: Move to New Window
    You can drag that tab back to the tab bar in the original window to undo that detaching.
    * https://addons.mozilla.org/firefox/addon/bug489729-disable-detach-and-t

  • POSTURL opening PHP in new window (and shouldn't)

    We are calling a PHP file from Authorware 7. Originally,
    nothing would
    happen when the php file was called and the server would time
    out and act as
    though the php file could not be found (with a 5006 error).
    But we finally
    realized that it wanted to open the php file in a new window
    - with a popup.
    We are using a normal posturl:
    temp2 :=PostURL(NetLocation^"gSysSet.php","",30)
    All the php file has in it is 1 line with a echo command.
    Does anyone know why the php would open in its own window?
    There was a posting earlier about POSTurl and php and we have
    checked the
    same things that they had in the php.ini file, but cannot
    make it just
    execute from Authorware and return a result - instead of
    returning the
    result in a new window. What happens is we still get the 5006
    error in
    Authorware because the result is returned in a new window and
    opened in a
    new window so Authorware isn't really communicating with the
    php file.
    Any suggestions would be appreciated.
    Julia

    Does your html page access it as HTTPs?
    "Julia" <[email protected]> wrote in message
    news:[email protected]...
    > Yes, I have created a dummy forum in html and it returns
    the value
    > correctlys.
    > Also, the value passed is returned ONLY when run under
    HTTPs - nor with
    > HTTP.
    > Julia
    >
    >
    > "Amy Blankenship *AdobeCommunityExpert*"
    > <[email protected]>
    > wrote in message
    news:[email protected]...
    >> Usually if it returns back what you sent, an error
    occurred. Does the
    >> php
    >> page work if you hit it from an HTML page with the
    same value passed from
    > a
    >> form field?
    >>
    >> -Amy
    >>
    >> "Julia" <[email protected]> wrote in
    message
    >> news:[email protected]...
    >> > Thank you Steve for the link.
    >> >
    >> > I made the change per your blog (I passed a
    variable-name pair to the
    > php
    >> > file) and now the php does not open in a new
    window and returns the
    > result
    >> > correctly.
    >> >
    >> > This is step one. Now it still doesn't work
    under SSL/HTTPs (which is
    > why
    >> > we
    >> > were going the POSTurl route). The PHP file
    doesn't open in its own
    > window
    >> > anymore (which it did under http AND https),
    but the difference now
    > under
    >> > HTTPs is that the variable-name pair I sent the
    PHP is being returned -
    >> > not
    >> > the actual result from the echo command in the
    php. I also tried
    >> > putting
    >> > the
    >> > variable-name pair as a ? after the filename
    and it didn't make any
    >> > difference. I also went ahead and put in a
    $_POST to receiev the
    > variable
    >> > and it didn't make any difference. Still
    getting the 5006 error as
    > though
    >> > it
    >> > can't find the file.
    >> >
    >> > We are getting the same symptoms that Chris
    Volkman got back in
    > 2-28-2006.
    >> > He was able to correct the problem by changing
    the php.ini file. I
    > checked
    >> > all of our settings and they are already
    exactly like the changes he
    > made.
    >> >
    >> > Any ideas?
    >> > Julia
    >> >
    >> > -----------------------------
    >> > THE AUTHORWARE CODE:
    >> >
    >> > temp2
    :=PostURL(NetLocation^"gSys.php","myvar=true",20)
    >> > -------------------
    >> >
    >> >
    >> > THE PHP CODE:
    >> > -----------------
    >> > <?PHP
    >> > header("cache-control: no-cache,
    must-revalidate");
    >> > //header("Pragma: no-cache");
    >> > ?>
    >> > <?php
    >> > $myvar = "strange";
    >> > if (isset($_POST['myvar'])) {
    >> > $myvar = (get_magic_quotes_gpc()) ?
    $_POST['myvar'] :
    >> > addslashes($_POST['myvar']);
    >> > }
    >> > echo "myvar is now=".$myvar."\n\rI'm in the
    gSys.php file.";
    >> > ob_end_flush();
    >> > ?>
    >> > ---------------------------------
    >> >
    >> >
    >> >
    >> >
    >> >
    >> >
    >> > "Steve Howard **AdobeCommunityExpert**"
    > <steve@$NoSpam$tomorrows-key.com>
    >> > wrote in message
    news:[email protected]...
    >> >>
    >> >> "Julia" <[email protected]>
    wrote in message
    >> >> news:[email protected]...
    >> >> > We are calling a PHP file from
    Authorware 7. Originally, nothing
    > would
    >> >> > happen when the php file was called
    and the server would time out
    >> >> > and
    >> > act
    >> >> > as
    >> >> > though the php file could not be found
    (with a 5006 error). But we
    >> > finally
    >> >> > realized that it wanted to open the
    php file in a new window - with
    >> >> > a
    >> >> > popup.
    >> >> >
    >> >> > We are using a normal posturl:
    >> >> >
    >> >> > temp2
    :=PostURL(NetLocation^"gSysSet.php","",30)
    >> >> >
    >> >> > All the php file has in it is 1 line
    with a echo command.
    >> >> >
    >> >> > Does anyone know why the php would
    open in its own window?
    >> >>
    >> >> Check this out
    >> >>
    >> >>
    >> >
    >
    http://stevehoward.blogspot.com/2005/02/cold-fusion-and-authorware-posturl.html
    >> >>
    >> >>
    >> >> I ran into the same thing a coupe of years
    ago.
    >> >>
    >> >>
    >> >> Steve
    >> >>
    >> >>
    >> >> --
    >> >> EuroTAAC eLearning 2007
    >> >>
    http://www.eurotaac.com
    >> >>
    >> >> Adobe Community Expert: Authorware, Flash
    Mobile and Devices
    >> >> My blog -
    http://stevehoward.blogspot.com/
    >> >> Authorware tips -
    http://www.tomorrows-key.com
    >> >>
    >> >
    >> >
    >>
    >>
    >
    >

  • When I click on any Bookmark, how do I set it to open in a new window by default?

    Right clicking an icon in the Bookmarks Toolbar provides a drop down menu. That menu has "Open" as the Default and "Open in a New Window" as the second choice. I'd like to make "Open in a New Window" the Default. In other words, I'd like to be able to click on a Bookmark icon and open a new window. Is there a line in 'about:config' that I can change to accomplish this?

    Go to Tools->Options->Apps
    Here you should see two columns: Content Type on the left, Actions on the right.
    Find and select excel spreadsheet or any other content type in the left column. There should be a corresponding action in the right column. What is it? You can use the drop-down list to select the option you want:
    Always Ask - Firefox will ask each time: What do you want to do with this file?
    Save file - Firefox will save this file to your computer
    Use - Firefox will give this file to the program to open it
    In case of saving, Firefox will either prompt you every time where you want the file to be saved, or save it to the default location. It depends on the preference in
    Tools->Options->General->Download

  • I can't open links in firefox. I must drag them to the tool bar or right click and open in a new page

    I am running Vista and installed a new version of firefox yesterday plus I messed around with trying to block some obnoxious advertising pop up windows. Now I can't open links and must drag them to the browser bar or right click and "open in a new window". How do I fix this? I tried to restart Firefox but it didn't help. thanks!

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Try to open a new window and see if that window works.
    You can check for problems with the localstore.rdf file.
    *http://kb.mozillazine.org/Corrupt_localstore.rdf

Maybe you are looking for