Problem open new html page from flash

Hello,
in IE7 and IE8 block popup lock my external link(page html)
I use GetUrl(url,"_blank") but not it works
Why?
i use flash cs4
With firefox it work

thank you for response,
i have used correct command but not it works.
It Works, in my popup setting are setting "CUSTOM" not MEDIUM
thank you

Similar Messages

  • Opening an HTML popup from Flash, not as tab

    Hi
    I need to open an HTML popup from Flash (using ActionScript in
    Flex 4).
    Thus far I found a solution, and it does work in Safari - a new
    and separate HTML window is popped up (with a new web page).
    private function popUpTheHtmlEditor():void {
      var url:String = "http://www.adobe.com";
      var request:URLRequest = new URLRequest(url);
      try {
        navigateToURL(request, '_blank');
      } catch (e:Error) {
        trace("Error occurred!");
    But in (my) Firefox (with my settings), when I click on the Flash
    (Flex) button, the page is being opened in a new tab.
    I need a solution which pops up the HTML page in a new/separate
    window, as far as possible regardless of the browser (and browser
    settings).
    I found an example where a popup is opened from HTML, and it opens a
    separate window (a real popup) in my Firefox:
    http://www.gtalbot.org/FirefoxSection/Popup/PopupAndFirefox.html
    -> "Open a requested popup"
    The JavaScript code seems to be:
      OpenRequestedPopup(this.href, this.target); return false;
    with this function def:
      function OpenRequestedPopup(strUrl, strTarget)
        if (WindowObjectReferenceOfRequestedPopup == null || WindowObjectReferenceOfRequestedPopup.closed)
        WindowObjectReferenceOfRequestedPopup = window.open(strUrl, strTarget, "top=" + windowTop + ",left=" + windowLeft + ",width=" + windowWidth + ",height=" + windowHeight + ",menubar,toolbar,location,resizable,scrollbars,status");
        else
        if(WindowObjectReferenceOfRequestedPopup.focus)
          WindowObjectReferenceOfRequestedPopup.focus();
    How could I call such code from ActionScript? Should this work through
    ExternalInterface? I couldn't even get this to work:
      ExternalInterface.call('alert', 'foo');
    Should I use swfobject.js for embedding the .swf in the HTML wrapper?
    Any other ideas?
    The two files are pasted below.
    Here's the compiler command I'm using:
      mxmlc -output button.swf -target-player 10.0.0 flash_to_editor.mxml
    I'm running the examples locally (as files, not over http). Would it
    help to place the files on a server?
    Tobi
    <?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"
      horizontalAlign="center" verticalAlign="middle">
      <fx:Script>
        <![CDATA[
    import mx.controls.Alert;
    import flash.external.ExternalInterface;
    import flash.net.URLRequest;
    // This 'http://www.adobe.com' is just an example URL.
    // Works but opens tab in FF (not a separate window):
    private function popUpTheHtmlEditor():void {
      var url:String = "http://www.adobe.com";
      var request:URLRequest = new URLRequest(url);
      try {
        navigateToURL(request, '_blank');
      } catch (e:Error) {
        trace("Error occurred!");
    // Doesn't work:
    // var url:URLRequest = new URLRequest("javascript:alert('foo'); void(0);");
    // navigateToURL(url, "_self");
    // How to get this to work?
    private function popUpTheHtmlEditor():void {
      ExternalInterface.call('alert', 'foo');
    // How to get this to work?
    private function popUpTheHtmlEditor():void {
      ExternalInterface.call('launch','http://www.adobe.com');
      // Or
      // ExternalInterface.call("window.open", "http://www.adobe.com", "win", "height=200,width=300,toolbar=no,scrollbars=yes");
    // Perhaps it's necessary to try different approaches:
    // (As soon as I get two approaches to work.)
    private function popUpTheHtmlEditor():void {
      var s:String;
      if (ExternalInterface.available) {
        // Necessary? Safe?:
        // Security.allowDomain('*');
        s = ExternalInterface.call('launch','http://www.adobe.com');
      } else {
         // TODO: Then try URLRequest?
         s = "Wrapper not available";
      Alert.show(s);
        ]]>
      </fx:Script>
      <s:Panel title="One way to open the HTML editor"
      width="75%" height="75%">
        <s:Button id="button" label="Open the HTML editor"
        click="this.popUpTheHtmlEditor();"
        horizontalCenter="0" verticalCenter="0"/>
      </s:Panel>
    </mx:Application>
    <html
      xmlns="http://www.w3.org/1999/xhtml"
      xml:lang="en" lang="en">
      <head>
        <title>html_around_swf.html</title>
        <script type="text/javascript">
    function launch(url) {
      alert(url);
      //  OpenWin = this.open(url, "FOO", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=400,height=200");
        </script>
      </head>
      <body>
        <object id="button" name="button" width="550" height="400"
        classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
          <param name="movie" value="button.swf" />
          <param name="allowScriptAccess" value="always" />
          <embed id="foo" name="button" src="button.swf" width="550" height="400"></embed>
        </object>
      </body>
    </html>

    Hi, 
    Here's a solution.
    1. Make ExternalInterface work when files are loaded as local files: 
    Go to
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l 
    In tab Global Security Settings: Edit Locations -> Add Location ->
    browse to the .swf file, add it. Make sure it's in the list (under the
    Edit Locations drop down, with a green check mark.) 
    Now open the HTML wrapper in a browser (eg Firefox). 
    Now this works (ActionScript): 
    private function popUpTheHtmlEditor():void {
      ExternalInterface.call('alert', 'foo');
    On Windows: perhaps:
    http://techjig.blogspot.com/2008/03/flash-global-security-settings-windows.html
    "In order for external interface functions to be called, you must also
    specify the folder/file where the swf file is located." 
    The above setup isn't necessary when the files are on a server. 
    Also see: 
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/external/External Interface.html#call()
    ""ExternalInterface" "
    "call() method" 
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7ea6.html
    "About ExternalInterface API security in Flex" 
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf626ae-7fe8.html#WS2d b454920e96a9e51e63e3d11c0bf69084-7f31
    "Using the ExternalInterface API to access JavaScript" 
    2. Open a real popup: Example: 
    ActionScript: 
    private function popUpSomething():void {
      var editorPathOrUrl:String =
        'wrapper.html';
      var windowName:String =
        "SomeNameSeeDocs";
      var windowFeatures:String =
        "toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,width=500,height=700";
      ExternalInterface.call(
        'launch',editorPathOrUrl,windowName,windowFeatures
    JavaScript: 
    function launch(editorPathOrUrl,windowName,windowFeatures) {
      windowRef = window.open(
        editorPathOrUrl,windowName,windowFeatures
    Works in all browser I tested except Opera. 
    Tobi

  • Opening a HTML page from a Navigation link

    Hi All,
           I have a requirement of adding a new link at the navigation bar of WebClient. This link will open a static html page with some contents. I have created the page required for it. But I don't know how the link will be created at Navigation bar and how to open the html page from it. I am using the SAP CRM 5.0 and I want to add the link at Default profile.
      Please help.
    Thanks
    Indranil Datta

    Hi Sujit,
        Thanks for your help. I have created a new navigation bar entity and added that in a customized profile. I have also mentioned the page name and path for that link from tran SPRO. I found that link after logging into IC WebClient. But that link is not connected with the required page. If I click on the link page, it get refreshed but without any change.
    Thanks,
    Indranil Datta.

  • How to open NEW PORTAL PAGE from current portal page ?

    I'm very confuse with my problem.
    I have 2 portal page.
    portal page I has 2 portlet : portlet A & portlet C.
    portal page II has 2 portlet : portlet B & portlet C.
    Now my customer want : start with portal page I, when i submit portlet A, program will open portal page II.
    I don't know the way to call new portal page from current portal page. Help me, please.
    Thanks.
    Edited by: young_hero on Oct 30, 2008 1:12 AM

    Could you please help me how to call a .html page
    from a Pl/Sql procedure or trigger ?
    Thanks & Regards
    Kalyani KothaKalyani,
    Could you explain a little more exactly what you're trying to acheive? I'm not quite sure what it is you're asking for. Are you asking: "how would you/can you open a browser and direct it to a URL with PL/SQL?"
    Earl

  • Open an *.html page from a vi

    Hi,
    I don't know how to open an .html file from a boolean bouton.
    someone could help me ?
    thanks

    tst wrote:
    But the HTML file on the RIO (if it's anything like remote front panels on the PC) is only a "pointer" to the VI. It is only used so that the browser will have a place to start. The PC has nothing actually running on it and the RIO is not displaying the web page.
    Here is the basic text from a sample file which tells the web browser to connect to a running VI.
    http://www.ni.com/webappdemos/lv">>
    You can see that it's only a few lines telling the browser to connect to the VI. I think that to use the link you will either need an LV program running on the computer or you will need to write your own browser for the RIO (not a recommended solution).
    Is all right, I know that the html file make only a connection to the VI, but the the web page file are on the cRIO.So I don't understand because you think that the browser must start from the cRIO. If I actually can visualize an html file, that is on the cRIO, and the browser are running on my pc, why a link from the VI (as www.html.it) must open a browser on the cRIO and not on client PC?

  • Trying to call MM_showHideLayers on container HTML page from Flash

    I'm designing a site that is mostly in Flash, but I would
    like to show some content by changing the visibility of a layer on
    the HTML page that contains the swf file. I have tried
    on (press)
    {ExternalInterface.call("MM_showHideLayers",'testerbox','show');
    and
    on (press)
    {ExternalInterface.call("MM_showHideLayers('testerbox','','show')");
    and I have tried
    on (press)
    {getURL("javascript:MM_showHideLayers('testerbox','','show')");
    My HTML page code is below. Can anyone tell me what I am
    doing wrong and point me in the right direction? Can this be done?
    Is there a better way to display large amounts of highly formatted,
    dynamic content from within Flash without loading a new page or
    resorting to a pop-up window? I really want it to look and feel
    like it is all part of the same page, and I need more tags than I
    can use in a Flash textbox. Thanks in advance :-)
    Teri
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    <script type="text/javascript"
    src="swfobject.js"></script>
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_showHideLayers() { //v6.0
    var i,p,v,obj,args=MM_showHideLayers.arguments;
    for (i=0; i<(args.length-2); i+=3) if
    ((obj=MM_findObj(args
    ))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style;
    v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
    //-->
    </script>
    <style type="text/css">
    <!--
    #testerbox {
    position:absolute;
    width:200px;
    height:115px;
    z-index:6;
    left: 69px;
    top: 42px;
    background-color: #FFFFFF;
    visibility: hidden;
    -->
    </style>
    </head>
    <body bgcolor="#FFFFFF">
    <table width="316" height="180" align="left"
    cellpadding="0" cellspacing="0">
    <tr>
    <td
    background="../images/innerpage/sidebar-bg-iframe.jpg">
    <div id="testerbox">My test</div>
    <div id="flashcontent" align="center">
    <p>
    You must have Flash Player to use this feature.<br>
    <br>
    <a href="
    http://www.macromedia.com/go/getflashplayer"
    target="_blank">Click
    here</a> to download or upgrade your Flash Player
    </p>
    </div>
    <script type="text/javascript">
    // <![CDATA[
    var so = new
    SWFObject("leaders.swf","leaders","316","180","6");
    so.write("flashcontent");
    // ]]>
    </script>
    </td>
    </tr>
    </table>
    </body>
    </html>
    Text
    Text
    Text
    Text

    Hi, did you get a solution to this problem, i am having a similar issue with the MM_showhidelayers not working in IE6, it works fine in IE8?
    the code im using on a flash button is:
    on (press) {
    import flash.external.ExternalInterface;
    ExternalInterface.call("MM_showHideLayers('menu','','show','menu_back','','show' )");
    Thanks
    Gary

  • Open a html page from an applet

    Hi,
    I would like to open, from an applet, an HTML page in a new window with a specific width an eight.
    Who can help me ?

    Here is an example of applet to javascript with liveconnect:
    http://www.narhari.com/java/applet2javascript/
    You can use the send(String) method from the sample applet to send something like:
    window.open('xyz.html','myPopup','width=200,height=200');in order to open a window with specific dimensions
    of course you can also build HTML in your applet and use send() + some javascript to render it.

  • Opening an Html page from java code

    Hi
    I have created an application and in order to complete it i need to configure help file with it. Now i have created a menubar in which help button is present.
    My requirement is that clicking the help button should display the help file which is in the form of an html file in a new window just as in any other application.
    Can anybody help me on this issue? Your help would ge really appreciated :)
    Thanks

    My requirement is that clicking the help button should display the help file which is in the form of an html file in a new window just as in any other application.Do you want to open a new "Browser"? is this a hard and fast requirement? If not why don't you use javahelp instead.
    For more details refer : http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javahelp/index.html

  • Implementing osmf HTMLMediaContainer into HTML page from Flash Proffessional

    Integrating communication between osmf and javascript via HTMLMediaContainer using Flash Proffessional
    Quite new to this
    Hello may someone please explain how this is done exactly, Not quite understanting the samples and examples, I get the  onHTMLMediaContainerConstructed function but after that, Im quite lost on the javascript inside the HTML body tags!! is this body tag javascript needed if im using flash professional...please help
    Thanks evryone

    Hi GeekTumiso,
    i'm searching for documentation too ... i want to understand if i can load external html element to make an html player skin, but there is not documentation or good example :-(
    any suggestions?

  • In R12, how to open new HTML page in a new window

    When I do the Payment configuration in R12, sometime I need open Payment Admistrator and Payments Manager at the same time in different tab. But everytime if I have one opened and try to open the second one, it always replaces the first one instead of opening a new window. Please help!

    974502 wrote:
    When I do the Payment configuration in R12, sometime I need open Payment Admistrator and Payments Manager at the same time in different tab. But everytime if I have one opened and try to open the second one, it always replaces the first one instead of opening a new window. Please help!You can use multiple sessions and login to different responsibilities -- Please see these docs for details.
    Is the Use of Multiple Forms Sessions in a Single Browser Session Supported? (11i & R12) [ID 879404.1]
    Recommended Browsers for Oracle E-Business Suite Release 12 [ID 389422.1] -- Multiple Sessions
    Thanks,
    Hussein

  • Open new BSP page

    Hi all,
    i am in ABAP report and i want to open new BSP page from the ABAP report
    becuse some time it is open the BSP page in the same session of SAP system.
    and also how i can maximize it automatically in the same way of (F11 key).
    is there any documents that describe and explain the signature of this method.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
    EXPORTING
           DOCUMENT      = 'XXXXXX .......'
         APPLICATION            = 'X'
         PARAMETER              =
         DEFAULT_DIRECTORY      =
         MAXIMIZED              =
         MINIMIZED              =
         SYNCHRONOUS            =
           OPERATION              = 'OPEN'
    EXCEPTIONS
            CNTL_ERROR             = 1.

    If you want to open the BSP in Browsers, you can call the FM CALL_BROWSER & pass your BSP appl URL. This will open the BSP from R/3.
    OR you can use the HTML viewer to call URL..
    Look at the below blog for the same.
    /people/thomas.jung3/blog/2004/08/26/updated-calling-a-bsp-application-from-a-sapgui-transaction
    Hope this will help you.
    <b>*Reward each useful answer</b>
    Raja T

  • Referencing static html pages from jsps...

              Hi,
              This is probably a very simple thing to solve, but I'm having problems with referencing
              html pages from jsps under Weblogic.
              I get Error 404 - not found, whenever I try something like this in a JSP...
              <frame name="title" src="title.html" scrolling=no>
              The title.html file has definitely been copied into my ear file, and yet it isn't
              found. I can solve the problem by turning title.html into a jsp and registering
              it in web.xml. But this seems like serious overkill with static content!!
              Am I missing something really simple here?
              

              I've worked it out - directory mistake...
              Thanks,
              Chris
              "Matt Krevs" <[email protected]> wrote:
              >it sounds like a relative pathing problem
              >
              >is title.html reachable if you enter its address in the browser?
              >
              >is title.html in the same directory as your jsp?
              >
              >perhaps you could post your web.xml file?
              >
              >"Chris Sceats" <[email protected]> wrote in message
              >news:3d9c41b5$[email protected]..
              >>
              >> Hi,
              >>
              >> This is probably a very simple thing to solve, but I'm having problems
              >with referencing
              >> html pages from jsps under Weblogic.
              >> I get Error 404 - not found, whenever I try something like this in
              >a
              >JSP...
              >>
              >> <frame name="title" src="title.html" scrolling=no>
              >>
              >> The title.html file has definitely been copied into my ear file, and
              >yet
              >it isn't
              >> found. I can solve the problem by turning title.html into a jsp and
              >registering
              >> it in web.xml. But this seems like serious overkill with static content!!
              >>
              >> Am I missing something really simple here?
              >
              >
              

  • When i open any .HTML file from my computer it is not opening in firefox. Only a blank New Window Opens. Facing this problem since the firefox has updated.

    Whenever i try to open any HTML file from my computer, it opens a new firefox window which is blank. Facing this problem after the new update. please fix this problem

    I found that after Firefox v29, a LOT of my settings and<BR>
    add-ons were changed / reset. Try this;
    '''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]'''''
    <BR>While you are in safe mode;<BR>
    '''''Firefox Options > Advanced > General'''''.<BR>
    Look for and turn off '''Use Hardware Acceleration'''.<BR>
    Then check ALL of your settings. Browser and add-ons. Then restart.

  • 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.

  • Loading Image from HTML page into Flash component

    Ok, after doing much research on the internet, I am pretty
    sure you have to be a Flash and Actionscripting Jedi in order to
    solve this issue. Here we go:
    I have created an HTML page using PHP and MySql that displays
    image thumbnails. When a user chooses and clicks on one of the
    thumbnails, I want the larger image to be loaded into my swf. It is
    a jigsaw puzzle component I picked up here: www.crifano.com. Here
    is the puzzle on my page with an image manually inserted using
    Flash 8 (Note: This is only working in Internet Explorer right now,
    for whatever reason):
    http://premieretans.com/puzzle/jigsaw.php.
    I want the image on this page to be chosen by the user from a
    number of images that are populated on a regular PHP/HTML page from
    a MySql database. What is the best way to go about this?
    Thanks so much for the help on this matter. I know I am not
    the only person who has run into this dilemma, so I hope your
    knowledge will save others with a similar problem the hours I have
    spent on this issue myself. Thank you!
    Cheers-
    Charles

    Hi,
    There's no direct support for this. But you could implement
    drag and drop the way you normally would in javascript. Except
    here, on mouseUp over a div encapsulating the object or embed tag
    (the flash object), you'll need to make a call into actionscript
    from javascript indicating that a drag and drop happened.
    For more info, see
    how
    to drag and drop using javascript and
    actionscript
    and javascript communication

Maybe you are looking for