Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.


Results 1 to 6 of 6

Thread: Navigatin to double URL (popup and reloading the page)

  1. #1

    Navigatin to double URL (popup and reloading the page)

    I have a banner on my site that opens popup into another window, but I need to close sound on the site that is open at another browser.
    Easiest way to solve my problem (descripted below) is to navigate from one button to two pages, other is popup and other should reload the page again.

    I have noticed that this wont work:
          function buttonPressed(event:MouseEvent){
              var request:URLRequest = new URLRequest("http://page.com");
                navigateToURL(request, "_self");
                var address:String = "http://videopage.com/video/movie.html";
                var jscommand:String = "window.open('" + address + "','PopUpWindow','height=780,width=980,toolbar=no,scrollbars=no,resizable=yes');";
                var url:URLRequest = new URLRequest("javascript:" + jscommand + " void(0);");

    I have one page that is build up with separate flash shows. Including one that has sound on it. Easiest way to outclude the sound is to reload page without including the php/flash file where the sound is. (yeah, I know this sounds really confusing, but this is how the page is build).

    So now I need a button that opens new popup and on the same time reloads the site where the banner is.

  2. #2

  3. #3
    Attach Flash files. Will try to solve it

  4. #4
    We can use ExternalInterface class to call javascript function written in the html page.

  5. #5
    Cant you make an example from the as code of the button? There's nothing special in the flash files. only short animation that opens video into popup, and like I said problem is the double sounds, I should somehow shut down music of the page (which is separate flash show included with php, so I should reload html page without including that flash show..)

    Can you give an example of ExternalInterface class for calling javascript function on html page?

  6. #6

    Navigatin to double URL popup and reloading the page

    I believe you can change your getURL to open up in "_blank" new window in other words which will ignore the new tags. Or did you not want it opening in a new window?MD

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Home About kirupa.com Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012