Open specific sized browser window from Flash

Can anyone tell me what the script is to make a button open a
specific sized browser window with another flash file in it?
http://www.partnerscreative.net/Test/BMS
this link shows the banner that will be on the sites
homepage, when you click on anything but the pdf link I want it to
open the linked flash file into a browser window sized specifically
to 720 x 600 pixels.
Please help.
Thank you.

The command to open a new window would be the "_blank" part of a command to link to a web page in the code below.
navigateToURL(new URLRequest("http://www.anothersite.com", "_blank"));
As far as the new window closing and getting back to where you were in the original window, I don't understand where that original window might have gone to... You should be wherever you last left it.

Similar Messages

  • How do I open a new browser window from Flash

    I wish to open a new browser window from Flash and when the new window closes to return to the location from whence I started.
    ThomasChen

    The command to open a new window would be the "_blank" part of a command to link to a web page in the code below.
    navigateToURL(new URLRequest("http://www.anothersite.com", "_blank"));
    As far as the new window closing and getting back to where you were in the original window, I don't understand where that original window might have gone to... You should be wherever you last left it.

  • Opening a new browser window from flash

    Does anyone know of a method fo opening a link in a new
    window in firefox from within flash that isn't blocked by the popup
    blocker. It seems like the security in FF 2.0.0.6 (I'm on 2.0.0.11)
    has been tightened to prevent any _blank or window.open calls from
    flash getting through. I've tried the standard getURL, fscommand
    and ExternalInterface call to a javascript window.open method.
    Nothing now works.
    I understand the need for the popup blockers, but this is a
    legitimate popup only invoked on user interaction (click) - the
    same window.open call in an onClick event outside of flash works
    fine and I guess it is blocked from within flash because there is
    no way of knowing if the call is invoked from user interaction or
    automatically - but seems a shame.
    So any other way of getting a new browser window to open from
    within flash in firefox?

    Use target="_blank" in your form declaration.<FORM METHOD=POST ACTION="someAction" TARGET="_blank">The _blank keyword tells the browser to load the results in a new window.
    If you need more control over your window (size, address bar, etc.) you'll need to use javascript.<SCRIPT>
    function submitForm(windowName){
       newWin = window.open("",windowName, "menubar=no,resizable=no,...");
       document.myForm.target = windowName;
       document.myForm.submit();
    </SCRIPT>
    <FORM NAME="myForm" METHOD=POST ACTION="some.jsp" TARGET="">
    <INPUT TYPE=BUTTON VALUE="Submit" onclick="submitForm();">
    </FORM>

  • How can I open a new browser window from UIX?

    I need to open a new browser window from an event handler. How that can be done? HELP!
    Thanks!
    Martin Patrici

    HTML doesn't really let you do this on the server side; the client is in charge
    of creating new windows, not the server.
    If you know that clicking a certain link/button, etc. will always raise a new window,
    then you should use Javascript or "targetFrame" accordingly.
    If the decision will only be made on the server side, then you could reload the current
    window, only this time use an "onLoad" on the <body> to raise a window.

  • How to open a separate browser window from Captivate 2.0

    Hello Captivators,
    Thanks for a very responsive forum. I participate in an Adobe
    Flash forum as well and never get a response to any questions.
    I would like to know if I can open a new browser window in
    from a Captivate presentation, without killing the Captivate
    session.
    Thanks,
    eholz1

    You can, but without creating a custom widget in Flash, the
    user must click to make it happen.
    The easiest way is to add a button to your slide and in the
    button properties:
    On success: Open URL or file
    URL: <enter the URL to open>
    URL Window (down arrow button to the right of the URL field):
    New
    If you don't want the slide to remain paused after the user
    clicks, deselect the Continue playing project option at the bottom
    of the URL Window dropdown.

  • Closing browser window from Flash movie on CD

    I have to put a flash lesson I created on a cd for a client and while testing it I noticed that my exit button in the movie no longer seems to function.
    This is my close window function
        function closeWindow(evt:Event)
            var url:String = "javascript:window.opener=self; window.close()";
            var request:URLRequest = new URLRequest(url);
            try
                navigateToURL(request, "_self");
            catch (e:Error)
                trace("Error occurred!");
    Can anyone tell me why this wouldn't work when the movie is launched in a browser window from a CD?

    Fi it is at all possible you cannot do that with url request.
    Try using ExtrenalInterface class:
    ExternalInterface.call("javascript:...");
    It may not waork though depending on security settings and embed parameters.

  • How to open a new browser window from a JSP page?

    Hi,
    I am picking up records from the database and displaying each record in a seperate text area field using the JSP code. I should be able to display the content ( available in the text area) in a seperate window if the user clicks on one icon.
    Is it possible to open a new browser window using JSP? If yes, how can I write information on the new browser window?
    Thanks in advance.

    Is it possible to open a new browser window using JSP?a JSP page is also an HTML page, this is client side stuff, you can do it with JavaScript.

  • How can I open the Wndows Browse window from forms..

    I am using forms 5.0 and at run time I want to open the
    MSWINDOWS "BROWSE" window.Can any body help me?.

    I found this example in a book, which is useful for retrieving an
    image file from a local drive and inserting it into a table.
    I hope you find this helpful.
    DECLARE
         v_dirname          VARCHAR2(255);
         v_filename          VARCHAR2(255);
    BEGIN
         v_dirname := 'C:\';
         v_filename := get_file_name(v_dirname, NULL,
              'Bitmap file (*.bmp)|*.bmp|'                    ||
              'JPEG file (*.jpg)|*.jpg|'                         );
         IF v_filename IS NOT NULL THEN
              read_image_file(v_filename, 'ANY', 'av_data_image.blob_data');
         END IF;
    END;

  • Open a browser window from flash actionscript 2 in safari or firefox

    I am having a problem. I found the actionscript 2 code to open a browser window, but it is not working in Safari, or Firefox. I found an old action script 1 file version 5 for the flash player that works just fine, but I am using 8 and actionscript 2 so that doesn't work for me.
    Any body have any idea how I can do this?

    if you're testing locally, use:
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l

  • Can I open a new browser window from a movie clickbox

    Hi,
    This is a last question from me, I hope. (I'm within a month
    of delivery, and my boss keeps saying 'a user's asked for this or
    that', but I'm meeting many of their requests with technical
    obstacles. Oh dear.)
    Here's the question: From a caption clickbox within a movie,
    can I link to a new browser window? (I have a Help button at the
    top of my movie and a user tester rightly pointed out that it
    breaks them out of their movie and they can't get back. So my only
    solution is to open it in a new browser window, but as I'm within
    the movie, I need to link to the new window from a caption or
    button, not an html page.)
    If a Javascript command would work, could I get the exact
    code to put in the box? I haven't been able to get any
    Javascripting to work through Captivate.
    If nothing works out, I'll have to scrub the Help button from
    every page, but I'd rather be sure before I do it.
    Thanks in advance,
    Kim

    Hi and thanks for both of the replies.
    Phew! I love it when there's a way out of my problem! Is it
    my imagination or are the options: Current, New, Parent and Top not
    described in the Captivate help? What is the Parent? I would have
    thought a window would have spawned a child. And I guess Top is a
    new window that's always on top? Is it described in the help
    anywhere beside the page I found that doesn't describe it? (I guess
    so far, I've been blindly and successfully using Current.)
    I assume I can't remove the toolbars on my new windw without
    going through an extra link? If that's the case, I can live with
    that. I wouldn't want to make the user click two links just for a
    help page.
    Thanks again,
    Kim
    PS. No wonder my Javascript never works if I can't even
    notice the options!

  • Conditionally opening a new browser window from a JSP page

    When the user clicks on a button in my JSP page, I'd like to launch a new browser and display certain things in that browser window while leaving the original browser window open. The new browser should only be displayed if certain conditions are met.
    My thought was to invoke a javascript method in 'onLoad' which would determine if the new window needs to be launched.
    This is kinda what my page looks like:
    <jsp:root version="1.2" ................>
        <jsp:directive.page import="java.util.*, com.test.Configuration" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
         <ui:body binding="#{Page1.body1}" id="body1" onLoad="launchWindow();">     
         </ui:body>
       </f:view>
       <script type="text/javascript">
            function launchWindow(){
             if (Configuration.openWindow()) {
              window.open("hello.jsp", "newWindow", 'toolbar,width=400,height=400');            
        </script>     
    </jsp:root>
    My problem is that the call to "Configuration.openWindow()" does not resolve correctly. If I remove that call and simply make a call to "window.open()" all works. But once I put the condition in, nothing happens. I do not see an exception in my browser window but a new browser window does not open.
    Is my syntax correct. Can I make a call to the static method 'openWindow()' in my class 'Configuration.java'.
    I posted this same query on the JSF forum but received now replies. My question is more suited to the JSP forum and hence I'm posting this question here.
    thanks,
    tsc

    I have made some changes so that I do not directly access the 'Configuration' class in my javascript.
    I have a hidden field on my form and when the user clicks the button, in my back bean, I set a value for the hidden field. In the javascript function 'launchWindow()' I check if a value has been set for the hidden field and if yes, I open a new window.
    <ui:body binding="#{Page1.body1}" id="body1" onLoad="launchWindow(document.forms[0]);">
    <h:inputText id="hiddenField" value="#{formBean.hiddenValue}" />
    <script type="text/javascript">
            function launchWindow(form){
                alert("in lw");
                var test = form["form1:hiddenField"].value;
                alert("got test");
                if (test !=  "")
                    window.open("hello.jsp", "newWindow", 'toolbar,width=400,height=400');            
                alert ("done test");
    </script>When my page is first loaded, the launchWindow() is called and all the alerts popup as expected.
    When I click on the button (the back bean sets the value on the hidden field), my page is reloaded but this time its blank.
    Any ideas as to why this maybe the case?
    thanks,
    tsc

  • Opening a new browser window from a JSP

    Hi,
    I have 2 buttons on my JSP. When the user clicks on them, they produce 2 reports. I would like to produce these results on a different browser window. Can anyone please tell me how to open a new window for the results?
    Thank you in advance.

    Use target="_blank" in your form declaration.<FORM METHOD=POST ACTION="someAction" TARGET="_blank">The _blank keyword tells the browser to load the results in a new window.
    If you need more control over your window (size, address bar, etc.) you'll need to use javascript.<SCRIPT>
    function submitForm(windowName){
       newWin = window.open("",windowName, "menubar=no,resizable=no,...");
       document.myForm.target = windowName;
       document.myForm.submit();
    </SCRIPT>
    <FORM NAME="myForm" METHOD=POST ACTION="some.jsp" TARGET="">
    <INPUT TYPE=BUTTON VALUE="Submit" onclick="submitForm();">
    </FORM>

  • Opening a seperate browser window from a chart

    I'm trying to link two applications (one is not Apex) by passing a series of values on the URL. I have a process that generates the URL link. I want the new app to open in a new window, I've tried to use the various javascript pop up functions (including html_PopUp).
    Unfortunately, once the list of URL values gets very long (4-5 items) the script seems to fail. I've used the same value in a plain HTML link and it works fine.
    Any ideas of why this would be happening? Let me know if you need more information.
    Thanks
    Paul
    P.S. Also, I noticed that the Anychart XML has a "Target" Attribute for the Set, any expectation of this being utilized by Apex soon?

    Paul,
    What happens when "the script seems to fail"? It works in this example (http://apex.oracle.com/pls/otn/f?p=37848:30) for a pretty long URL.
    - Marco

  • Open a new browser window from applet

    Anybody know how to open a new Netscape window by pressing a button in an applet? Which class handles it?
    Thanks a lot.
    wz

    http://forum.java.sun.com/thread.jsp?forum=54&thread=106906
    http://forum.java.sun.com/thread.jsp?forum=54&thread=272870
    http://forum.java.sun.com/thread.jsp?forum=54&thread=272829

  • How to open a new browser window from a link on the navigation bar

    Hi,
    I entered a URL in the 'URL Target' field for the Navigation Bar Entry. As expected when the I clicked on the link in the Navigation Bar my browser refreshed with the target URL.
    I want to be able to actually open a new window rather than refresh my current window. The help text says, and I quote ...
    "In the link generated for this icon include the following onClick javascript. Use of the onclick javascript could popup a help page in a new window (see example 1).
    Example 1:
    window.open('US/asfhhome.htm','Help','scrollbars=yes,resizable=yes,width=625,height=350,left=25,top=150');return false
    Set the Icon Target attribute to # if you are using OnClick JavaScript. Set the Image Alt Text attribute to the text the user will see to click on."
    So I created similar Javascript as to the example and placed in the 'OnClick Javascript' field, and placed a '#' in the 'URL Target' field.
    When I run it doesn't work, the '#' is picked up and the Javascript is ignored. Can somebody please tell me what I'm doing wrong.
    Thanks

    I had the same problem. I finally ended up just using the standard popupURL javascript. In the URL Target I have:
    javascript:popupURL('<link>')
    This opens a new window but since it is for popups the menus are missing. You may want to write your own javascript function to open the new window with your own settings.
    Search the forums for popupURL for more ideas.
    javascript:popupURL()
    --Jeff                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • Computer freezes when logging in

    Hello, hoping someone can help me.  I have a mid-2012 MacBook pro purchased new in November.  It came with Mountain Lion, but I immediately downloaded Mavericks, created an install disk using createinstallmedia and did a clean install of Mavericks, u

  • Re-Downloading for new Computer, old hard drive crashed

    I need to re-download Photoshop vers 13. I purchased the program online in October, 2012. After several hard drive crashes, Apple replaced my MacBook Pro, and I need to re-download the Photoshop ver 13. (All I can find are Cloud versions.) How do I d

  • InDesign CS6 and Arial Narrow

    I have been using CS5, had problems with the Arial Narrow font not showing up as four variations but only one, and eventually got it resolved somehow so that I had a separate font listed as Arial Narrow in the font name drop down list and four variat

  • Issues importing pictures to lightroom 4.3

    I just got lightroom and when I try to upload my old albums from my hardrive (all taken with the same camera) not all of them will load and the importing bar in the top left freezes. Please help

  • NewDate always null in CalendarLayoutChangeEvent ??

    I have this simple DateChooser config in flex sdk 2.0 beta 3 and the property newDate of the event CalendarLayoutChangeEvent is always null (regardless of chosing a date) in my method changeDate(event), see below. I don't know, but maybe this is a bu