Piece of code does not play for the animation CLICK

myHomeButton.addEventListener (MouseEvent.MOUSE_OVER, MouseOverHome);

myHomeButton.addEventListener (MouseEvent.MOUSE_OUT, MouseLeavesHome);

function MouseOverHome (MouseEvent): void {}

stopPlayReverse();

homeHOMEanim.play ();

}

function MouseLeavesHome (MouseEvent): void {}

this.addEventListener (Event.ENTER_FRAME, playReverse, false, 0, true);

}

function playReverse (Event): void {}

If (homeHOMEanim.currentFrame == 1) {}

stopPlayReverse();

} else {}

homeHOMEanim.prevFrame ();

}

}

function stopPlayReverse(): void {}

If (this.hasEventListener (Event.ENTER_FRAME)) {}

this.removeEventListener (Event.ENTER_FRAME, playReverse);

}

}

myHomeButton.addEventListener (MouseEvent.CLICK, ClickHome);

function ClickHome(event: MouseEvent): void {}

If (homeHOMEanim.currentFrame > = 0, homeHOMEanim.currentframe < = 4) {}

homeHOMEanim.gotoAndPlay (36) ;}

If (homeHOMEanim.currentFrame > = 4, homeHOMEanim.currentframe < = 8) {}

homeHOMEanim.gotoAndPlay (39) ;}

If (homeHOMEanim.currentFrame > = 7, homeHOMEanim.currentframe < = 12) {}

homeHOMEanim.gotoAndPlay (41) ;}

If (homeHOMEanim.currentFrame > = 11, homeHOMEanim.currentframe < = 16) {}

homeHOMEanim.gotoAndPlay (42) ;}

}

In this code, the upper part works perfectly (in other words, everything that precedes the method addEventListener (MouseEvent.CLICK, ClickHome);), it is so that when the mouse passes over the home button, the animation starts. When the mouse leaves the button, the animation runs in reverse back to the start.

However, none of the last part of the code seems to work.

Thank you

myHomeButton.addEventListener (MouseEvent.CLICK, ClickHome);

function ClickHome(event: MouseEvent): void {}

If (homeHOMEanim.currentFrame == 1 | homeHOMEanim.currentFrame == 2 | homeHOMEanim.currentFrame == 3) {}

homeHOMEanim.gotoAndPlay (36);

}

If (homeHOMEanim.currentFrame == 4 | homeHOMEanim.currentFrame == 5 | homeHOMEanim.currentFrame == 6: homeHOMEanim.currentFrame == 7) {}

homeHOMEanim.gotoAndPlay (39);

}

If (homeHOMEanim.currentFrame == 8 | homeHOMEanim.currentFrame == 9 | homeHOMEanim.currentFrame = 10 | homeHOMEanim.currentFrame == 11) {}

homeHOMEanim.gotoAndPlay (41);

}

If (homeHOMEanim.currentFrame == 12 | homeHOMEanim.currentFrame == 13 | homeHOMEanim.currentFrame = 14 | homeHOMEanim.currentFrame == 15) {}

homeHOMEanim.gotoAndPlay (42);

}

}

For some reason-it worked, but others with the ' &' don't.

Tags: Adobe Animate

Similar Questions

  • My episode does not play in the store

    My episode is not playing in the store, but it's as a Subscriber.  The circle of game/load just continues to blink.

    My podcast is connections with Craig Sherman.

    Your feed is at http://feeds.feedburner.com/ConnectionswithCraigSherman

    There are three elements in your workflow: only the third is a media file playable. Appears when subscribing but does not play in the store within a reasonable time.

    The URL of your file is a Google Feedproxy one and if it works well in a browser it redirects to a URL of Google Drive. Google Reader is not a place appropriate for your media files - it has always caused problems and I advise you to find another host.

  • A refurb Lenovo/IBM PC windows 7.0 SW, software code does not work for charging SW after a system restore

    A refurb Lenovo/IBM PC windows 7.0 SW, software code does not work for charging SW after a system restore. How can I get a new one

    Skip, enter the product key, and then complete the installation.

    Try the phone activation:

    How to activate Windows 7 manually (activate by phone)
     
    1) click Start and in the search for box type: slui.exe 4
     
    (2) press the ENTER"" key.
     
    (3) select your "country" in the list.
     
    (4) choose the option "activate phone".
     
    (5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
     
    (6) explain your problem clearly to the support person.
     
    http://support.Microsoft.com/kb/950929/en-us

  • 24 fps video does not play in the source CS5.5 without jerky movement monitor

    Problem: 24 fps video does not play in the monitor source CS5.5 without jerky movement. 30 frame will play well. I took the same shot 24 fps, using the same exact configuration settings and it played in my CS5.0. No problem. I have them side by side and checked to make sure everything was EXACLTY the same. The 24 frames per second call played smoothly in the monitor source CS5.0 Panel. Can someone tell me what the solution might be to get the CS5.5 play smoothly? When I visited on the timeline in CS5.5 he played smoothly on the timeline. Puzzled.

    > nikon d7000

    This is probably the cause.

    See for a workaround:

    http://helpx.Adobe.com/Premiere-Pro/KB/Nikon-D7000-footage-stutters-playback.html

  • Error: The system does not license for the OS image. The system cannot find the path specified

    Hello

    I copied the image of Windows Embedded 7 T510 using HP thin client capture on a USB port. Now, I'm trying to load this image in an another thin client Embedded Win 7 T510 via a USB port.

    However, when the customer starts using this image of the USB, I get error below.

    "Error: the system does not license for the OS image! The system does not have the specified path.

    What solutions do you recommend.

    Thanks in advance

    Solution:

    I tried to install it on a Linux Thin client... Is there had this error.

  • Zip code does not match with the Service request number

    Hello
    I can, check the State of repair of my Xbox to the t.
    It keeps giving the same error (ZIP Code does not match with the Service request number).

    I tried to register the product.
    but it seems impossible, if it has a status of repair open.

    a catch 22.

    Hello

    I suggest you go through the following link.

    http://www.Xbox.com/en-us/

  • I downloaded a video from my camcorder, but it does not play because the video is MP4.

    I download the video from the camcorder, but it does not play because the video is MP4. How can I play download MP4 player

    The free version of Apple's QuickTime might be worth a try:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Apple QuickTime:
    http://www.Apple.com/QuickTime/Download/thankyou/index.html

  • T610 with Windows Embedded 7 - the system does not license for the operating system image

    Hello community,

    I bought a refurbished computer ThinClient T610 that is running a Windows 7 Embedded English. The label on the package says, that the computer ThinClient is allowed with W7E. When I now run Easy Tools installed on the computer ThinClient hp to create a USB Image with the German language, everything works fine: the image is downloaded from the web and put on the stick.

    But after you start the stick, the installation program tells me: "the system does not license for the operating system image. What I am doing wrong? The BIOS is already the latest.

    Or y at - it another way to transform the operating system in German? There should be an option to download additional languages, but this particual window has no other options. And I have not found any manual way to download other languages.

    Concerning

    Michael

    Sometimes it can be so easy... ;-)

    So here's my solution:

    1. go on the Web for hp Support site

    2. go in the software and driver download

    3. set the language of driver on the language of your choice (in fact: it was the main problem)

    4. download an operating system image

    5. run the configuration tool and copy the image of an operating system on a flash drive

    6. restart the workstation and install the os

    7. take advantage of your computer ThinClient in the language of your choice

    I don't know, why the hp Easy Tools downloaded the image of evil, but with this solution, that I find myself at the same point, as if they did.

  • "@specTypeName @" placeholder for extensibility of the Email does not work for the master specifications

    Hi all

    • I installed E-mail Feature Pack 4.1 extensibility 6.2 PLM.
    • I use "GSMEmailFileBasedVariablesFormatPluginFactory" to send e-mail notifications when work flowing from one status to another.
    • I am successfully able to generate notifications by e-mail for all GSM specifications with the content specified by me except the master specifications.

    "@specTypeName @" placeholder for extensibility of the Email does not work for the specifications of the master.

    Can you please help me solve the problem?

    FYI,.

    ' @specTypeName @ ' placeholder works in all other GSM specifications.

    Thank you

    Nefertari

    For the resolution of this problem, please see the following knowledge base document:

    Document 2079386.1 - Notifications by email for the specifications of the master only lack the Type of specification field

    Thank you

    Stephen, Oracle Support

  • HP laserjet 1022 does not wait for the user to turn the pages when printing double-sided

    My Hp laserjet 1022 printer working properly for years.

    So far, when he executed more paper he tried a couple of times to get more paper and then stops with a message on the PC it is out of paper.

    Very annoyingly, this has changed recently, now when it is out of paper, he tries a couple of times to get more paper and watch the message on the PC, saying that it is paper and then again, try a couple of times to get more paper and again shows the same message on the PC and him back... This continues to go on and on.

    It's especially annoying when trying to print double-sided. Before he used to stop and ask you to turn the pages to print the other side. Now the previous behavior overrides the break to turn the pages and keeps it will try to get more paper. As now, it does not wait for the user to turn the pages, in general it spoils the impression out by getting another paper that is not what I wanted, he drives me crazy! It's really hard to print anything double face now.

    All solutions?

    Operating system is Windows 7, I just downloaded and installed the latest driver for this printer "2013-01-09, Version: 20120918" and I get the same behavior. In the properties of the printer that I put some State Messages to Off and at least I don't get the full windows message screen poping up every time the printer is trying again to get more paper. I have not found all the other parameters that may affect this behavior.

    Help!

    Hello

    I solved the problem! I found the original CD for the printer. I uninstall the current driver and then install CD and now when the printer is out of paper trying to get paper a couple of times and then stops, as it used to be.

    Thanks for your help.

    Martin

  • The submenu stack does not allow for the pictures stacked in the Organizer features 13 8.1 on windows

    The submenu stack does not allow for the pictures stacked in the Organizer features 13 8.1 on windows.

    Everyone knows this?

    I stacked a few photos, now I can't develop or desempilement them in the Organizer.

    This is for auto and manual of stacking.

    stacking.png

    Please press Ctrl + D to go to the older grid, and now the battery option must be enabled.

    Thank you
    Blandine

  • ORA-13754: 'SQL Tuning Set' 'string' does not exist for the user "sysman."

    ORA-13754: 'SQL Tuning Set' 'string' does not exist for the user "sysman."

    Hello
    in 10g R2 when I run the following in isqlplus I error of the United Nations:
    SELECT * FROM TABLE(DBMS_SQLTUNE.SELECT_SQLSET(
    'my_sql_tuning_set',
    '(disk_reads/buffer_gets) >= 0.05'));
    
    ORA-13754: "SQL Tuning Set"'my_sql_tuning_set" does not exist for user "sysman". 
    No problem if I run it as sys to sqlplus.

    Thanks for the help.

    How to activate for sys isqlplus?

    You are logged in as sysman,

    Check the user from the sql prompt.

    show user
    
  • HumanTaskActivity does not wait for the user to act

    Hello

    Proc2 I stole the activity of each of the branches, I invoke another process called PROC3 from the e-mail as PROC3 entry.

    PROC3 contains only HumanTaskActivity.

    By the time wherever I start my PROC2, he calls PROC3, but in HumanTaskActivity PROC3 does not wait for the response, it gets full without sending email.

    Any help would be very handful for me.

    Thank you
    VIKI

    VIKI,

    You can run just PROC3? It work? Except that there is a problem with the assignment of the user / group in this task? Users of human tasks has the correct permissions / roles?

    Marc

  • Embedded video does not play in the field of browser on os 5.

    Hi all

    I tried to play a video embedded in the field of the Navig. It has worked well in the Simulator. But does not work in the real aircraft. I use 8900. When I open the url in the default browser in 8900 its works perfectly. Y at - it all nedded field of browser settings play audio or the embedded video?

    Am the url is http://devweb.wizzpers.com/chat/seewizzper/wizzperid/30305

    Another problem is the time for video playback in the default browser for the blackberry 8900. When I tried the same thing in android and iphone taking 7-8 seconds to play. But 8900 takes 45 to 60 seconds.

    My code snippet is as shown below

    VerticalFieldManager browserManager = new VerticalFieldManager();

    BrowserField browser = new BrowserField();

    browserManager.add (browser);
    browser.requestContent (url);

    Add (browserManager);

    Any idea about this problem?

    Thanks in advance.

    Sujith.

    I am able to reproduce this problem.  It is caused by a problem with the BrowserField himself.  I don't have a work around for this when using the BrowserField.  You could launch the browser to display the page or play the video directly in your application using the player class.

    Our development team is aware of this problem, which should be resolved in a future version of BlackBerry Device Software.

  • Delete record behavior does not wait for the "submit" button

    I have master / detail pages as a whole.  Of all the detail, there are links to delete or update a record.  When I click the link to delete the folder, it goes to the confirmation page with the correct record.  Now, when I add the behavior delete record server and a button "submit", it is what is happening.  As soon as I click on the link to access the Delete Confirm page, deletes the record and the page redirects to the page that I put in the server behavior.  It does not display the confirmation page and does not wait for me to hit the button confirm.  The page runs and removes the page from the database.

    How can I get to wait until I hit the submit button?

    You must surround your request deletion with an "If" statement seeking a confirmation variable, then when the user clicks the confirmation link, you can pass the necessary variable and the ID of the record that the delete request is pregnant.

    As an alternative, you can use a JS alert fuction to ask if they are sure they want to delete the folder, and then delet allwo runs after confirmation to the user. To do this, you can use code like this...


    onclick = "return ('are you SURE you want to DELETE this record? confirm")">

    --
    Lawrence * Adobe Community Expert *.
    www.Cartweaver.com
    All Shopping Cart Application for
    Dreamweaver, available in ASP, PHP and CF
    www.twitter.com/LawrenceCramer

Maybe you are looking for

  • Pavilion dv7 4060us: dv7 4060us graphics driver under Win 10

    I may be beating a dead here horse I did a bit of research on this issue, but I thought I would try once more on the HP forums. I have a good Pavilion dv7 4060us I use to transport my QuickBooks files and inventory with me at the customer site, or wh

  • error 509 Exec.cpp

    I have a problem with my project.  Suddenly, there are a few screws class which cause complete labview crash - I get an error in EXect.cpp on line 509.  Kind of weird though - as the vi in question has not edited for a work identical older version in

  • Installation SSD

    Hello My apologies if what follows has already been answered before. I'll be unboxing a new T440s this week, and I want to install an SSD in your laptop and install Windows on the SSD drive rather than on the HARD drive. I have some questions about t

  • Reinstall Windows XP Home Edition on a Dell Dimension 8100

    I have a Dell Deminsion 8100. You need to reinstall OS XP Home Edition. PC does not recognize the drive in the Bay, or cursor, keyboard lights or get an answer. CD Rom is defined as the first option in the settings. Tried F12 to restart on a cd. Did

  • How to release the ram of the reserve of equipment...

    I have installed 12gigs and usable only 1.99, the rest is reserved for the haredware... intel core i7 950, 460scc, 3 x 1 TB wd hdisk gtx sli... I added more ram and the machine comes to give more to the material how to fix this problem... because my