How to work around the function on HTML5 Adobe animate external button CC

I created my HTML5 Canvas with Adobe animate CC.

It's a few pieces of my code of "page.js" after publishing my project

this.frame_0 = function() { 
this.button_1.addEventListener("click", fl_ClickToGoToAndStopAtFrame.bind(this));
     function fl_ClickToGoToAndStopAtFrame()
     {
          this.gotoAndStop(1);
     } this.stop();
}

And this is my button "page.html".

<button type="button" class="btn btn-default">Default</button>

How to bypass the function/send command "gotoAndStop (1)" my external button above?

Yet once, your code is not linked to your button.  You must use something like:

document.getElementsByClassName [0]. [ "btn btn-default"]. addEventListener ('click', fl_ClickToGoToAndStopAtFrame.bind (this));]
function fl_ClickToGoToAndStopAtFrame()
{
this.gotoAndStop (1);
} this.stop ();

Tags: Adobe Animate

Similar Questions

  • How to call the function of reading edge animate external JavaScript


    I have a symbol on the stage called "basket"... on the inside of the symbol is my graph that has a trajectory put on to the timeline (it's called "car_v1").

    On my stage, I have a code to hide the cart symbol with a class of external style sheet:

    SYM. $("panier") .addClass ("hidden");  (it's the css - .hidden {display: none ;})})

    I have a function that calls a file external javascript... Since this external file, I want to get the animation of scenario to work:

    This is the function call:

    checkCar();

    and here's the function:

    function checkCar() {}
    If (AdobeEdge.countCar == 5) {}
    AdobeEdge.getComposition("EDGE-172492634").getStage ().$("cart").removeClass ("hidden"); This works!
    AdobeEdge.getComposition("EDGE-172492634").getStage ().$("cart").play (); does not work!        <-this is the line I need help!

    sym.getSymbol("cart").play (); It works inside the border and the scenario animation works!

    }
    }

    Can someone help me get the playback feature to work my external javascript file? Thank you!

    Kristen

    Hello

    You can try:

    function checkCar() {}

    If (AdobeEdge.countCar == 5) {}

    iCall var = AdobeEdge.getComposition("EDGE-172492634").getStage ();

    iCall.$("cart").removeClass ("hidden");

    iCall.getSymbol("cart").play ();

    }

    }

  • How to work around the error fan on Thinkpad x 220. Thank you.

    I have an urgent need to access my data for the work. I tried to Press esc, but it does not work, holding down both, press on frequently, etc..

    Anyone can share how start windows regardless of the fan is not working.

    Thanks in advance

    Thana

    In the case anyone trying to find the solution too. I haven't met a. I changed the fan is on ebay and it is running.

  • How to work around the error message which is in itself a mistake

    I can't use my printer to complete any function as a meesage to mistake is to say that the cartridges are damaged and must be replaced. This I did with new HP cartridges, those corresponding to want printer HP 120 but the error message does not clear. Also when I reinsert the cartridges previously deleted the eror message continues.

    In my view, there is a software error that prevents me now to use the printer. The printer was bought on 24/08/2013.

    I can't use the printer as the error meesage saying: cartridges of damage cannot be bypassed or erased.

    What would you suggest I do to return this status on 7months printer?

    Hi jill3,

    I understand that you are experiencing an error message about the cartridges on your desire to 120. I would recommend following the instructions in the document below.

    'Cartridge problem,' "Incompatible cartridge", or 'Lack of ink cartridges' message on the all-in-one

    If the problem persists, call HP. Your printer comes with a 1 year manufacture warranty, you can use this link to check your warranty. The number of call HP is 1-800-474-6836 for the Canada and the United States, or you can Contact HP worldwide.

  • How to work around the Apple subscription music

    I just bought a new iPhone SE. When I try to play music, I see a page offering me a three month of Apple's music trial. Is it possible to skip the trial and just to play my music?

    TO circumvent Apple music in settings go to the music and stop seeing Apple music

  • How to work around the permissions of files in Windows 7?

    Hi all

    Just try the Windows 7 RC, it seems that Microsoft made security a little too anal retentive system.

    I setup Win7 with me as an administrator, I have the single user account on the operating system, so logically I should have administrator
    Access to all files, well, so last night I tried to drag the files from one folder to another, I get a message saying that 'I need administrator permissions to perform the task", or something like that, he asks me if I want to continue, I click on"continue"and then I get a message saying
    'Access denied', even though I am the administrator, I go through the process of creating the file and folder permissions to give me access, everything looks good, so I try dragging the files again, with the same exact results, it seems like the OS completely ignores the settings.

    It is an absolute royal pain in the you-know-what to try to unravel in Windows 7, Windows XP is much friendlier in this regard.

    I think that Microsoft should seriously rethink this.

    Other than that, I love Windows 7, compatibility issues seem to be resolved, I can run XP software, some of my devices have drivers written for XP, but I seem to be able to use them, I couldn't do this in Vista.

    Did you try to settle in the Middle user account control settings? Click Start, type UAC

    Also, what locations the system drag files from? Are these personal files or system?  Was this an upgrade or clean installation?
    Andre Da Costa http://adacosta.spaces.live.com http://www.activewin.com

  • How can I work around the compatibility test during the upgrade of Windows Vista Edition Home Premium to Windows 7 Home Premium?

    During the upgrade of Windows Vista Edition Family Premium of Windows 7 Home Premium, he stopped at the compatibility check and asked to uninstall McAfee Personal Firewall Plus. I uninstalled McAfee Total Protection, but the problem remains. I contacted the technical support of McAfee and it installed and running a deep cleaning products McAfee removal. But the problem remains. What should I do to work around the compatibility check, so that I can complete the upgrade to Windows 7 Home Premium.

    Go to C:\Program Files

    Remove the McAfee program from there folders

    Restart the installation again.

    Also:

    1. click on start, type msconfig in the search box and press ENTER.

    User account control permission

    If you are prompted for an administrator password or a confirmation, type the password, or click on continue.

    2. in the general tab, click Selective startup.

    3. under Selective startup, clear the check box load startup items.

    4. click on the Services tab, select the hide all Microsoft Services check box, and then click Disable all.

    5. click on OK.

    6. When you are prompted, click on restart.

    7. after the computer starts, check if the problem is resolved.

  • Work around the question of order selection setting in CS 4

    Hi guys,.

    I'm writing a JavaScript in Indesign that will copy the contents of each block of selected text in the Clipboard. The main problem is the order of selection, since I use 4 CS. I'm trying to work around the problem by writing the coordinates X and Y of each image in the tables through a loop 'for', because of the order in this respect is always the upper left to the lower right corner in my documents. However, I don't know what to do after the sorting of arrays: how could tell the program to use first the framework with the coordinates of the closest to 0, then the next, etc.. ? So far, I have this:

    var identifying = new Array();

    var given = new Array();

    Var block = app.selection;

    for (var i = 0; i < Blocs.length; i ++) {}

    var myBounds = blocks [i] .geometricBounds;

    var X = myBounds [1];

    var Y = myBounds [0];

    LesX.push (X);

    LesY.push (Y);

    }

    LesX.sort (sortnum);

    Thanks a lot for your help!

    My

    THS is not a good approach. Identifying your table will be something like [90, 50, 30, 60, 20] before sorting. And after sorting, it will [20, 30, 50, 60, 90]. But that will not tell you how to find the object X value is 20.

    I would like to write like this:

    function byYX(a,b) {
        var
            aY = a.geometricBounds[0],
            bY = b.geometricBounds[0],
            aX = a.geometricBounds[1],
            bX = b.geometricBounds[1],
            dy = bY-aY,
            dx = bX-aX;
    
        return dy?dy:dx;
    }
    
    var blocs = app.selection;
    blocs.sort(byYX);
    
  • "message from website - object error_ - how we work around this problem or turn it off?

    'the Web site message' - (object error) - how we work around this or turn it off?

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-system/how-do-i-fix-object-error-message/5c0e66dc-50F2-4d82-BE4C-bedc5136df19

    Please read this thread.

  • How to get around the problem of printing from the printer driver Adobe PDF for Notepad instead of a PDF Document?

    How to get around the problem of printing from the printer driver Adobe PDF for Notepad instead of a PDF Document? I tried the tool 'Repair Acrobat Installation' and other problems listed on the forums, but nothing worked. In the Notepad document is the following ' % [ProductName: distill] % X937B6DD4 not found, using the mail service.» X07BB154E not found, by using the messaging service. % [Page: 1] %% % [Page: 2] % % [Page: 3] % % [Page: 4] % % [Page: 5] % X4EEBB81F not found, by using the messaging service. %% [Error: invalidfont;] OffendingCommand: show; ErrorInfo: CharOffsets ss %% [Flushing: rest of work (end of file) will be ignored] %% %% [warning: PostScript error.] No PDF file produced. ] %%."

    The log file indicates that the Distiller cannot find fonts and besides, fonts with very weird names. (These names can often appear when printing from an application, WPF such as Internet Explorer 9, 10 or 11.)

    My best guess is that the problem is with the options set for the PostScript of PDF from Adobe printer driver instance. Exit the application you were initially impression since. Open the Adobe PDF printer Properties . Then click the Advanced tab. Then click on the button default printing . This should produce a significant window default print Adobe PDF is already opened in the Adobe PDF settings tab. On this tab, there is a checkbox to rely on system only fonts; do not use fonts in the document. If this box is checked, uncheck it and press apply , then OK. Then go to the general tab and press the button Preferences giving the window entitled Adobe PDF printing preferences. Again once, look for the box to rely on system only fonts; do not use document fonts. If this box is checked, uncheck it and press apply , then OK. Then back in the Adobe PDF Properties dialog box main, press apply (if it is enabled), and then click OK. Re-enter the app you were original print and try to print again. Let us know if that fixes the problem.

    -Dov

    PS: Unfortunately, rely on fonts system only turned on by default, causing problems for many applications. I always recommend turning it off (i.e., unchecking it)!

  • How to remove "around the web" pop ups?

    How to remove 'around the web' pop ups of Safari on my macbook air?

    Download and run Malwarebytes Anti-Malware: http://www.adwaremedic.com/index.php

    You can also remove the adware manually by following the steps provided by Apple: https://support.apple.com/en-us/HT203987

    After that, make sure that your default search provider is set to the one you always use. To do this, open Safari - Preferences - research.

    Go to the Safari menu (at the top right of your screen next to the Apple icon), choose 'Quit Safari'

    Press the "Shift" key and while holding this button on your unique keyboard, click the icon of Safari on your Dock.

    Open Safari - Preferences - Privacy - data to remove any Web site.

    Also, I think it would be a good idea to install AdBlock.

  • How to get around the Startup Manager and the black scree at startup

    tried to deactivate the boot manager of arise to stat upward by going to advance settings and put the 'the operating system display list' to zero. However, the Boot Manager always appears at the star for a few seconds and then the screen goes black and possibly windows vista starts. What can I do to work around the Boot Manager and the black screen at the star to the top? I tried the system recovery option, but it didn't work. Can someone help me?

    Thank you

    Hello

    I suggest you to see link below and check if it helps.

    http://Windows.Microsoft.com/en-us/Windows7/change-the-default-operating-system-for-startup-multiboot

  • How do I change the function to send to in Windows 7 to add to an email?

    How can I change the function: send to, when I do a right click on the mouse? I want to add... .for an e-mail.

    If you want to add a document to a new Message already opened (or a reply or forward), then you must use the "Attach a file" or the equivalent in your e-mail client (secret). the function "send to" will only send the file to a NEW e-mail message. AS FAR AS I KNOW.

  • How can I disable the function on my v5 acer inspire?

    OT : How can I disable the function on my v5 acer inspire where when you click on the mouse somehow your whole page disappears? It wasn't like this in one of my computers before windows 8.

    How can I activate noff functionality of mouse that causes your entire page to disappear when you click on it the wrong way .i have an acer v5 inspire.please help. Ive had a lot of computers, but this feature never appeared until the windows 8

    Please help its driving me crazy

    James m

    Hello

    Thanks for posting your query on the Microsoft Community.

    According to the description, I understand that you are facing problems with your mouse.

    I suggest you to refer to suggestions of Mohammad_Imran replied on 5 April 2013 and check if that helps.

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-TMS/how-to-disable-swipe-gesture-on-touchpad/77c9e8c5-0C5A-4527-a60e-81e8168aec52

    You can also check:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-TMS/how-do-i-change-the-settings-for-my-Windows-8/a0349e35-B090-42fb-A586-feac551a0100

    Hope this information helps. Please let us know if you need any other help with Windows in the future. We will be happy to help you.

  • Work around the GUI - old mimi question Worksation

    I'm stuck.

    I am running Win 7 computer with VMware workstation 9.  I use VMware for reliability, snapshots, etc.  I have done this for many years and I am happy with the benefits (real or imaginary) under VMware.  My use and understanding is not sophisticated but I was able to take fat from the fire several times over the years because of my setup.

    The virtual machines of my guests are installed on a disk Raid 'E', but I mainly run one machine that I want to be able to boot from a shortcut on the desktop.  I understand that it is possible to do and work around the GUI of the VMware Workstation or Player.

    Help, please!

    Concerning

    k

    kriemer wrote: I tried (should have said that).  Everything that happens is opens VMware workstation but not the virtual machine.

    Yes, (see image below) , I forgot that you must use the following syntax:

    -x

Maybe you are looking for