Opening an external link using javascript.  Keeping the new window to the front

I display a picture from an external link when it is called my swf.  When the user clicks a button, place appears a corresponding picture in a new browser window.  After the picture window is open, if the user clicks another button, that the photo browser update but its is no longer at the front.  I know that I need to use the focus() command but can not understand how to integrate it in my AS3 code.

var req=new URLRequest();

function scrollPanePopulate(event:Event){     
     //create the temp variables
     var calledPhoto=pntxml.row[pointindex].PhotoUrl;
     req=pntxml.row[pointindex].PhotoUrl;
     var jscommand:String = "var newwin=window.open('"+req+"','win','height=400,width=600,left=650,top=50,toolbar=no,scrollbars=yes,location=no');"; 
     var url:URLRequest = new URLRequest("javascript:" + jscommand +"void(0);"); navigateToURL(url, "_self"); 
}

The above code works fine but I want to keep the picture in front window when it is updated.  Any suggestions?

Thanks in advance...

-josh

:

var req=new URLRequest();

function scrollPanePopulate(event:Event){          //create the temp variables     var calledPhoto=pntxml.row[pointindex].PhotoUrl;     req=pntxml.row[pointindex].PhotoUrl;     var jscommand:String = "var newwin=window.open('"+req+"','win','height=400,width=600,left=650,top=50,toolbar=no,scrollbars=yes,location=no');";      var url:URLRequest = new URLRequest("javascript:" + jscommand +"void(0);newwin.focus();");

navigateToURL(url, "_self"); }


p. s.  you use the externalinterface class.

Tags: Adobe Animate

Similar Questions

  • All of my icon are icons of java. When I click, a back short style window appears, then disappears. I can not open files or links. What is the simple solution?

    All of my icon are icons of java.  When I click, a back short style window appears, then disappears. I can not open files or links. What is the simple solution? This CHANGE occurred on 15 July.

    The simple solution is:

    1. type the word restore in your Start menu.  Some options will appear.  Choose to restore the system and settings files
    2 - Click Next, choose July 14 (or a date before the problem occurred), and then click Next again.  Your system will restart with repaired parameters.
    Let us know if it works for you.
  • Is anyway to keep the front screen unlocked?

    Sorry if this is a stupid question... you can keep the front screen unlocked? It's a pain to try to answer a call or even read a text without constantly having to unlock all the time... TIA Andrea

    There is an application called "No Lock".  It does not block the screen, hide but will all move together to the lock screen.  I really like this app.  I use it all the time.  I hope this helps.

  • When you open an external link, a new window opens and displays the home page

    Updated to the latest version (36.0 Linux) and now whenever I open a link from an external application to be steam E-mail IRC or any other source, instead of the page is displayed a new window will open and then load the home page. I tried the default browser to something else (which opened the links correctly) switching and vice versa, safe mode and even a refresh, but the problem persists.

    I found this in the bug tracker.

    Apparently it seems to be a problem with an old hack in XFCE or desktop environments possible on X in general, which is no longer supported in Firefox 36. A solution fast until they solve this problem, is to open a new terminal and enter:

    sudo gedit /usr/share/xfce4/helpers/firefox.desktop
    (replace gedit by any other text editor you use)
    .. .and change the last two lines:
    X-XFCE-orders = %B - distance "openURL (about: Virgin, new window)"; %B;
    X-XFCE-CommandsWithParameter = %B - remote "openURL (%s)"; %B %s;
    to read:
    X-XFCE-orders = %B;
    X-XFCE-CommandsWithParameter = B %%s;
    then save the document, of course.

    This solves the problem for me immediately.

  • Videos to pause when you open an external link

    Hi, we have a scorm course that has integrated Vimeo videos, using the web object and it works very well, also on the same page\slide we have links to external resources.

    What we demanded, that is when the learner clicks on an external link he paused the video, no matter what ides on how we can do this?

    Thank you very much

    Jamies salvation,

    Unfortunately, Captivate is unable to send commands to web objects, then you will not be able to implement a command which pauses for the video (frustrating, right?).

    My only suggestion would be to put your external resource on a transparent section,

    or

    Set it so the hyperlink executes a tip rather than just the link action and place so the advanced action opens the link and hides the web object / moves on a holding slide.

    I hope this helps! I appreciate it is not a good solution.

    Mike

  • Opening an external link to a target

    Hope this is the right place for this question and that it is not too bad...

    I use CS4 to build a simple website using a template with navigation bar, header and footer.
    In the left navigation panel, I want to be able to associate a few buttons (maybe Spry menu?) to open an external URL. So far, that's fine, but in addition I want to do the following when the link opens in my site:-

    (1) I want the link to open it in the main content window on the RIGHT side of my page (that is to say I don't want to open a new browser window)
    (2) I also want to be able to left or right, to justify the content of the page when it opens in the RHS window (I've seen called openstyle = "rtl", which can be used for languages that read from right to left (Hebrew, etc.))
    (3) the content of the external URL is an image, that is to say, GIF or PNG, not text.

    On older sites (DW3) I got close to do this with images, but I still couldn't do the bit right justify. The images always open left and I had to Diecut to the right manually. I thought that executives were in the doghouse now and I should spend some of the new templates, widgets, etc.

    You can see my dilemma by looking www.firegrass.co.uk on my tester page.

    Any help or advice would be much appreciated.

    Thank you
    Neil

    Definitely. It's like any other HTML page...

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    ==================

    "CS4Rookie" wrote in message
    News:gqg5uq$98t$1@forums. Macromedia.com...
    > Ok, then what happens if I include the link to the image in another HTML page on my
    > site.
    > and then call this page near the top of my main browser buttons.
    >
    > Can I then specify where in the HTML page, the image is favorably in?
    >

  • External link - how to give the link of a theme of subproject about main project

    Hi all

    I created a main and two subprojects and project master merged these two subprojects.

    I scoured all the external link topics in this forum.

    As a result, I was able to give the link of a main project theme about a subproject.

    However, I need your help to achieve the following two things:

    A first:
    =======
    I need to give a link to a section of the subproject in a master project topic...

    For example. Introductory section is located in the Master project

    When I click on a button in a subject found in the subproject (merged with the masterone), I should be able to view the introductory section.

    How can this be achieved...

    A second:
    ==========
    I manually included a home button in each header and footer of all subjects (depending on condition), which opens the present welcome topic in the main project)-pretty easy

    However, I'm fighting to give the link to the present home button in the subproject merged to open the welcome topic of the master of the project.

    Pls guide me how to do it...

    Thankx in advance...

    Try to remove the underlining from your CHM file names, reissue and compilation. Do not use underscores or other special character traits.

  • External links that start with the URL of the site

    Hello

    I have a website upward to www.rhinebeckfarmersmarket.com that I remade recently with DW. (I used to use FrontPage). Everything looks good except when I go to the page of sponsors, links to all the authors begin with http://www.rhinebeckfarmersmarket.com/ followed by the link I want to go to. I use _blank option to open links in a new window.

    Help! : o).

    Mark
    www.Pinnacle-VR.com
    www.NorthernLight.net

    This is because you did not include the Protocol in the link-

    It should be-

    http://www.beekmandelamaterinn.com ".

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.dreamweavermx-templates.com - template Triage!
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================

    "Mark D. Fink" wrote in message
    News:fan8jj$NHP$1@forums. Macromedia.com...
    > Hi,.
    >
    > I have a website upward to www.rhinebeckfarmersmarket.com I
    > recently
    > redone with DW. (I used to use FrontPage). Everything looks good except when I
    > to
    > sponsors page, links to all the authors begin by
    > http://www.rhinebeckfarmersmarket.com/ followed by the link I want to go
    > to.
    > I use the _blank option to open links in a new window.
    >
    > Help! : o).
    >
    > Mark
    > www.pinnacle-vr.com
    > www.northernlight.net
    >

  • Setting value using javascript on the form of tables created by APEX_ITEM

    I can assign the value using javascript on normal form of table as below:

    var vRow = pThis.id.substr (pThis.id.indexOf ('_') + 1);
    $x_Value ('f05_' + vRow, 'Value');

    However I can't do the same if the tabular presentation is dynamically created by APEX_ITEM.

    Some tips on how to do this?

    Thank you

    If this should not be something like:

    this.id.substring(4, 8)
    

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Frame 12 chart: hold SHIFT used to keep the line straight, now what?

    It was when you draw a line in Framemaker that now the SHIFT key while dragging the line would keep the straight line. This no longer works in Frame 12. What is the right way to get a straight line?

    Thanks in advance.

    It seems that talk us about different things. I thought that you were concerened about the change of the line after what he drew.

    To create a new vertical/horizontal line, select the line tool (cursor becomes +), then hold down the SHIFT key. Now, click where you want to start (while holding down the SHIFT key), and then drag the line to where you want to end (i.e. your last approach). At this stage it will still be the selection and display the handles at both ends.

    For editing existing line, ctrl + click on the line. The handles will appear. Hold down the SHIFT key and then click the e handle you want to change. You can move horizontally or vertically along the imaginary axis passing through the selected breakpoint when you use the shift key modifier.

  • external link to webhelp, view the table of contents

    Hello

    is it possible to automatically show the pane external TOC when binding an html file? On our intranet, many pages are not compiled with robohelp, they are word-> html pages, but we link these pages to the robohelp webhelp.

    By default, you only see the topic and have the link display at the top of the page. But this link to display is not visible unless you really link to the top of this page.

    I would like to activate the navigation pane by default whenever an external link refers to HR webhelp.

    Inez

    http://intranet/path/startpage.htm#path/target.htm

    I'm not following you, but the above should work.

    With this kind of things it should be to create a small test project and do refer a file for you on the server. Then you can test without affecting your project or online users.

    See www.grainge.org for creating tips and RoboHelp

  • Is it possible to open a folio to a specific page of external links using the URL scheme?

    We want to link in a folio of another application we create.   We can open the application Viewer with the URL scheme that we define in the application (for example, com.name.app).   However, it always opens the application on the home screen.

    Ideally, we would like to link in a specific portfolio or a single page in the folio.  Is this possible using a sort of chain of request/identifier/anchor on the end of the URL scheme?

    Yes, its possible, but officially not supported and is not fully tested. Check the DPS tips App by Bob Bringhurst (https://itunes.apple.com/in/app/digital-publishing-suite-tips/id436199090?mt=8)

    Download Advanced Overlay folio and check "Buttons & Linking" - slide 2

  • Using Javascript in the settings from Acrobat open Api

    I am trying to use the Acrobat Open Api in order to more specifically navigate to pdf locations.
    The pdf open api however is silent on how to acquire the parameters needed for the URL.

    Specifically:
    The acrobat open api provides several examples of urls to open pdfs in different ways.
    I am trying to use is:
    http://example.org/doc.pdf#page=3&zoom=200,250,100

    1) page is easy - in the doc it is there and it can be found via this.pageNum

    2) zoom is also easy - in the doc it is there and it can be found via this.zoom

    The other two parameters are hard to find.
    My closest guess is to use this.viewState.
    However extracting the fields of this object has been impossible to me.
    I see that this.viewState.toSource() will output the contents,
    but are these the correct contents I need for the two other zoom parameters.

    I also recognized I can use the this.bookmarkRoot object.
    However I could not find fields in its children which give the
    page, zoom, scale and offset parameters.

    Any help would be appreciated.
    Thanks for your time.

    I also recognized I can use the this.bookmarkRoot object. However I could not find fields in its children which give the page, zoom, scale and offset parameters.
    

    Acrobat JavaScript cannot access these settings.

  • How can I do to a file PDF opens automatically in tabs rather than in a new window?

    With the help of Adobe Acrobat 2015.006.30094.

    I think you have the permanent license rather than a subscription version. Like all the old versions, it will get only what's new with paid upgrades. One day. Only the subscription version has smaller evolutionary changes.

  • I've migrated the FF settings to a new PC and no external link now opens

    A few days I received my new PC and migrate all important data of the former using a special tool to W8. I also installed Thunderbird and FF anew and migrated their setting using the tools recommended here (FF + MozBackup Sync). And all of a sudden I lost the ability to open any external link in FF now regardless of the source (Thunderbird or any other piece of software). Now, I have to copy and paste the URL manually. It is not the best solution. Old PC OS: Vista Business, new PC operating system: W8.1. Thanks in advance.

    Hi people, I got tired of manually entering the URL addresses and decided to go back a few steps. So I uninstalled about half of the programs installed (including FF and Thunderbird) and reinstalled them again. And now everything works as expected. It's a kind of magic for me. In any case thank you for your advice, even copy - paste.

Maybe you are looking for