Navigation and call Javascript

Hi all, I have a big problem. I want to use the Navigation to a URL and both want to call Javascript to close the browser. I used the code for this as follows:

navigateToURL (myUrlPath, "_blank");
ExternalInterface.call("saveglobalscore",score) ('closeWindow');


But until the Flash navigate to another URL, external Interface calls for 'closeWindow' Javascript function.

and because of this navigation will be lost and did not navigate to this URL.

So please let me know how to get the navigation is Flash or not?

Maybe you can use the external interface to trigger a javascript timer function that closed the first page.

Tags: Adobe Animate

Similar Questions

  • Click-box behavior and call javascript

    Greetings,

    While working on a project, I noticed odd behavior regarding the behavior of click-box where there is more than one box click on a slide.

    Here's the situation:
    I have a lesson in Captivate project (2). In several slides, I have a box on the slide where the user can access material outside the lesson. They do so via clicking on a click box. The click box is set to fire a javascript that opens additional content (external url) in the window which 'floats' above the slide currently displayed.
    Javascript is a script of browser window open standard with the parameters passed.

    Here are the called script (it is located in standard.js):
    function openBrWindow (theURL, winName, features)
    {
    Window.Open (Theurl, winName, Features);
    }

    This script is called in Captivate in:
    Insert-> Click-box-> if the user clicks on inside the box of success-> run Javascript

    An example of a typical call:
    Box click-> JavaScript: - > in the window/field is:

    JavaScript:openBrWindow('_ _http://www.mydomain.com/about/org-Pol/f-07/f-07-016.html','mypolicy','width=800,Height=600,ScrollBars=yes');

    It works very well. A window with this URL opens on the slide arrested.

    Strange behavior happens where I have more than one of these boxes click on a slide. If the user clicks on a second click box, the correct URL (different) opens in a window is OK, but the progress of the slide (now behind the new window open). It should not go to the next slide. It should stay put until a user clicks on a particular button to advance.

    Has anyone seen this type of behavior before? Is this a bug in Captivate 2? Or a bad javascript call? Any thoughts?

    Thank you for your comments.

    TPK

    Hi TPK

    When you change the properties of the click box, note that there are two buttons to the right of the field 'JavaScript '. One of the points of suspension (...) and you have probably clicked that one to get into the script. The other is an arrow down. You must click on the arrow and uncheck the option "continue playing project." You will need to do this for each click box, the user can interact with where you do not want to continue if the user clicks on the slide.

    See you soon... Rick

  • Calling JavaScript function from c ++

    Hello

    I need to call a function javascript from c++ code. I have a webview in which an html page is opened.

    I can connect to c ++ js using navigator.cascades.postMessage. I have to call vice versa.

    c ++ for js now.

    Concerning

    Hello

    I tried another way of calling JavaScript function continue in every 5 seconds.

    Steps to follow:

    1 import im .js QML file.

    2. create a function in QML and call the java script of QMLfunctuion function.

    3 the signal of the CPP in every 5 seconds and connect this signal to function in QML whare you call java script function.

    4. it indirectly calls the java script function.

    Thank you

    Anand

  • Dynamic action calling JavaScript with parameters

    I have a DA who called some JavaScript to Hide/Show/cancel 2 P110_PARENT_SOLUTION_ID text elements, P110_ANSWER_TEXT be part of radio P110_DIRECTORY_TYPE.

    DA > settings > Code:

    If ($v ("P110_DIRECTORY_TYPE") == 'R') {}

    $("label[for=P110_HEADER_TEXT]").text ("name of the root directory")

    $x_Hide ('P110_PARENT_SOLUTION_ID');

    $x_Value('P110_PARENT_SOLUTION_ID',"");

    $x_Hide ('P110_ANSWER_TEXT');

    } ElseIf ($v ("P110_DIRECTORY_TYPE") == 'E') {}

    $("label[for=P110_HEADER_TEXT]").text ("header text")

    $x_Show ('P110_PARENT_SOLUTION_ID');

    $x_Show ('P110_ANSWER_TEXT');

    } ElseIf ($v ("P110_DIRECTORY_TYPE") ==' no) {}

    $("label[for=P110_HEADER_TEXT]").text ("directory name")

    $x_Show ('P110_PARENT_SOLUTION_ID');

    $x_Hide ('P110_ANSWER_TEXT');

    $x_Value('P110_ANSWER_TEXT',"");

    }

    This works perfectly, however I need to reproduce this code for 2 more areas on the same page. To do this, I created a JavaScript function with 3 parameters and call it in the dynamic action

    Page header > Javascript > function and Global Variable declaration:

    function ProcessDirType

    (I_DirectoryType

    I_ParentSolutionId

    I_AnswerText

    )

    {

    If ($v (I_DirectoryType) == 'R') {}

    $("label[for=P110_HEADER_TEXT]").text ("name of the root directory")

    $x_Hide (I_ParentSolutionId);

    $x_Value(I_ParentSolutionId,"");

    $x_Hide (I_AnswerText);

    } ElseIf ($v (I_DirectoryType) == 'E') {}

    $("label[for=P110_HEADER_TEXT]").text ("header text")

    $x_Show (I_ParentSolutionId);

    $x_Show (I_AnswerText);

    } ElseIf ($v (I_DirectoryType) ==' no) {}

    $("label[for=P110_HEADER_TEXT]").text ("directory name")

    $x_Show (I_ParentSolutionId);

    $x_Hide (I_AnswerText);

    $x_Value(I_AnswerText,"");

    }

    }

    DA > settings > Code:

    ProcessDirType

    ("P110_DIRECTORY_TYPE"

    , "P110_PARENT_SOLUTION_ID".

    , "P110_ANSWER_TEXT".

    );

    Her DA stopped working correctly, I tried to replace the parameters with single quotes but not joy.

    Can someone give me the correct syntax so that I can make my code more generic and call in three different DA?


    Concerning

    ADE

    I didn't think there would be syntax errors, everything looks good from here. Single or double quotes can be used.

    Maybe it's something to do with the way in which the dynamic action is called. Is what event listening? Nothing has been changed in order to manage several regions?

    You can add this sort of thing to your javascript to help determine what is invoked and view the output in the javascript console.

    console.log('I_DirectoryType:'+I_DirectoryType);
    
  • call javascript to enable the disabled field...

    Hi guys,.

    I want to on the field by calling javascript by pressing the button.

    How to do this?

    Thanks and respect,
    SKUD.

    Hi Skud,

    On the AJAX call back, you came to know that about enabling/disabling of fields depending on whether you can write the script below.
    document.getElementById('ITEM_NAME').disabled = true;

    Thanks and greetings
    Teriimana

  • I have 10 devices all under the same identity of apple my partner can see all my contacts, call logs and use of all other web internet devices. How can I change this, to keep my contacts and call log on my phone only?

    I have 10 devices all under the same identity of apple my partner can view all my contacts and call logs and vice versa.

    The device can also see all internet pages use the devices, but mine isn't... How to get our contacts and call the newspapers private their own device and how can I get to keep an eye on web pages using my children? So how do for my phone, the master device / hand who is in control of access for all, because it has my info from apple id and card credit on all devices.

    Stop sharing an ID first. They are not meant to be shared. Then set the sharing of family. Each individual should have their own code.

  • Warning on the Trojan horse that could get banking information and call 855-*-*, is it really you?

    I got what looks like a caveat with you, or maybe a scam, do not know that. He said I might have a virus called 'Browser.Hijacker.Spy/Trojan.BankPass-Download. It also has a dialog box that appears telling me the threats that I could cope and to click 'OK' and call it 855-*-*. I really care, is not on your part, and if I click on ok, I download the virus. Help!

    Jack

    Edit: removed personal information for your protection. (philipp)

    If you get a pop-up message asking to put plugins or Firefox updated or anti-malware analysis then this message probably is a scam and you should never respond to such reporting to avoid being infected by malware.

    • Don't update Firefox via "> about" or by downloading and installing Firefox from Mozilla and server never using a popup or a link on a web page.
    • Plugins should be updated only through the plugin itself, or by visiting the home page of the plugin.
  • IPhone 6s - microphone does not work on all applications except camera and calls

    Hey, I don't know exactly know what happened with my phone. Suddenly, my microphone work on LINE, Whatsapp and almost all other applications that use mic. Except, camera and when someone call me on my number.

    But it does not work on whatsapp and LINE calls. And it also does not work when I snapchat. Only works on the default camera Apps and call through my number.

    I tried:

    -restart my phone

    -hard reset and blink? Reset with the power and the "home" button.

    -read the micro support page. Still no solution.

    TL; Dr:

    my microphone does not work on every apps on my phone except calls through number and approx. of default camera it gives you just that silence when I play it on voice notes. But it works when I record yourself using videos on the default camera app.

    Hello Bllacke,

    Thank you for using communities of Apple Support.

    I see from your post, some applications have a problem to access your Microphone. I know how it is important to ensure that your applications have access to the Microphone and can use this feature. I have a few things I want to try.

    First, tap Settings on your iPhone and then scroll to the last section that lists your apps. Select the applications that use the microphone and make sure that the Microphone is activated (green).

    Then, follow the steps in the article below to close these applications:

    Force a nearby application on your iPhone, iPad or iPod touch

    Then, test the microphone in these applications again and see if it works.

    Best regards.

  • I have a 6 s with Verizon iPhone. Can I send/receive calls (using this service and calls on other devices functionality) on my iPhone 5s, who was with AT & T service, but has no service now since I switched to Verizon?

    I have a 6 s with Verizon iPhone. Can I send/receive calls (using this service and calls on other devices functionality) on my iPhone 5s, who was with AT & T service, but has no service now since I switched to Verizon?

    Note: I'm able to get two phones to ring with an incoming call, but the 5s consist not out. Whenever I dial a number, it says call failed.

    Do not dial a number. Try to choose a contact in the contacts App and tapping on telephone button.

    That said, I don't think that outgoing calls work on continuity since another iPhone. given that the iphone is designed to make calls through its own service.

    Document to support that you just did not mention calls from a secondary iPhone at all, it points to Mac, iPad and iPod touch, which leads me to believe that it won't work.

    It runs from devices such as iPads and Macs, who have no other way to place a cell call.

  • My kids have iphones that I need now to be able to text and call and do nothing else. Is anyway to do this? They had iphones which have been misused and now that I'm aware of this use, I now need to restrict any activity.

    I have recently read activity inappropriate my children iPhones... a 4S and 6s. Is - this here anyway for now limit their use of the phone for texting and calls and nothing else? No apps, no wifi, just SMS and calls. I can now monitor texts and calls, but want nothing else to do. I can call and text them. Help please!

    You cannot limit the phone to only send SMS and calls, but you can stop using the offending apps. Go to settings > general > Restrictions and set a restriction password. Then turn off Safari so they cannot browse the web, "Apps installer" and all the other options you want. Remove all third party apps unwanted from their phones, and then they will not be able to reinstall if "Apps installer" has been disabled.

  • Put the tabs below the navigation and search bar.

    I need to change the position of the tabs and navigation and search bars. I want the tabs under the navigation bar, search bar and the 'drop of firefox in the menu drop down.

  • My iphone 6 is possessed!  He opens my apps, send SMS and call my contacts, my games.  Frustrated!

    My iphone 6 is possessed!  He opens my apps, send SMS and call my contacts, my games.  Frustrated!

    Basics of the manual are restarting, reset, restore.

    Start there.

  • can I buy a Skype to another country number and call people to make look like I am

    can I buy a Skype number to another country and call it people what actually looks like I'm calling from that country, while actually being in a completely different country?

    Hello

    A Skype number is used to receive incoming calls. You can't shout a.

    TIME ZONE - US EAST. LOCATION - PHILADELPHIA, PA, USA.

    I recommend that you always run the latest version of Skype: Windows & Mac

    If my advice helped to solve your problem, please mark it as a solution to help others.
    Please note that I usually do not respond to unsolicited private Messages. Thank you.

  • questions of text and call iPhone 4

    My iPhone 8G 4 has had many problems with the text and calls. For FaceTime calls, when someone calls me or I call them, it comes up with an error message about an incomplete phone number. For text messages, I don't get any messages, but those apps. (The apps you sending SMS messages to remind you of things, ads, etc.). I can't send or receive iMessages and I can only send but not receive text messages (those green). I am currently on the latest version of the iPhone software 4, (I think it's iOS 7.1.2 whichever is later). Please answer has solutions, similar questions, etc. Thank you!

    To ensure that your software works correctly, set up in the new device once again, as this is explained in this article:

    Use iTunes to restore your device to factory settings - Support Apple iOS

    Start without using the backup first, put in place the phone manually and test the iMessage and FaceTime functions.

    If they work, restore again the last rom backup.

    Perhaps a look at general troubleshooting before you start the configuration:

    If you can't send or receive messages on your iPhone, iPad or iPod touch

  • I use iphone 5 s updated to 9.2, but I can not use the network and call :( Please help me

    I use iphone 5 s updated to 9.2, but I can't use the network and call someone help me please

    What happens when you try to use the network?

Maybe you are looking for