The event handlers that doesn't work do not

Hello. I'm trying to get my .fla to go on my case-3 film, but when the home page appears, do not click on the buttons to instances of film. I have check the names, and they are correct. Can you find anything in the code? Thank you

package {}

import flash.display.MovieClip;

import flash.events.MouseEvent;

SerializableAttribute public class Main extends MovieClip

{

var startPage:StartPage;

var hillPage:HillPage;

var pondPage:PondPage;

public void Main()

{

startPage = new page of home;

hillPage = new HillPage;

pondPage = new PondPage;

addChild (startPage);

Add event listeners

startPage.hillButton.addEventListener (MouseEvent.CLICK, onHillButtonClick);

startPage.pondButton.addEventListener (MouseEvent.CLICK, onPondButtonClick);

hillPage.backToStartButton.addEventListener (MouseEvent.CLICK, onBackButtonClick_Hill);

pondPage.backToStartButton.addEventListener (MouseEvent.CLICK, onBackButtonClick_Pond);

}

Event handlers

function onHillButtonClick(event:MouseEvent):void

{

addChild (hillPage);

removeChild (startPage);

}

function onPondButtonClick(event:MouseEvent):void

{

addChild (pondPage);

removeChild (startPage);

}

function onBackButtonClick_Hill(event:MouseEvent):void

{

addChild (startPage);

removeChild (hillPage);

}

function onBackButtonClick_Pond(event:MouseEvent):void

{

addChild (startPage);

removeChild (pondPage);

}

}

}

are there any error messages?

If this is not the case, use the backtrace function.  for example, place trace functions in your event handlers to see if these functions are called.

Tags: Adobe Animate

Similar Questions

  • the 'new folder' button doesn't work is not on the documents or images.

    The "new folder" documents or pictures button does not work. When I press nothing happens.   Used to work, but no more.

    Only change I made is that I now use Chrome instead of IE. How can I fix it?

    It's looking like a recent update of chromium may be the cause. Here are two patches.
     

    How to remove and restore the default context Menu items 'New' in Windows 7 and Windows 8
    http://www.SevenForums.com/tutorials/28677-new-context-menu-remove-restore-default-menu-items.html
     
     
     
    Tip: When you save the text in Notepad, the default file format is .txt. Replace all files.

     
  • The external site AJAX doesn't work do not?

    I built an application that load statistics from an external xml file on the web. It works fine in a browser, but after packagaing with webworks and running in the simulator of the AJAX load ever.

    I added

    http://www.mysite.com"/ >

    for my config file, but has not helped. Are there other permissions or the things that I have to pay to get this working?

    Tim Windsor helped me with this one. The solution was to add the following to the file config.xml webworks.

        BIS-B    TCP_WIFI    TCP_CELLULAR    MDS    WAP2    WAP
    
  • The mouse scroll wheel doesn't work does not correctly?

    Win 7, Microsoft Wireless Mouse 5000
    Everything worked fine but I had to reformat & return my computer again the conditions of the plant.  I have add the correct software for my mouse.  Now, when I use the scroll wheel, it moves the screen a full coming soon page (spreadsheet, word processing, etc.).  The unique thing is that I can say that she does so ONLY with products at Microsoft (Excel & Word so far), with any other software, it seems to work as it should (a few lines at a time).  No one knows what is the cause?  Help please.

    Thanks in advance... Bob

    Hello

    1. have you checked if the problem occurs with a different mouse?
    2. don't you make changes on the computer before the show?


    You can try the steps provide in the supplied knowledge base articles and check if that helps:
    Troubleshoot a wireless mouse that does not correctly
    http://support.Microsoft.com/kb/321122
    Troubleshoot the incidents of the response to the mouse or wireless keyboard
    http://support.Microsoft.com/kb/838398
     
  • Option of 'Options' of the Smartphones from blackBerry in the BB Menu button doesn't work is not on the Torch 9800

    Whenever I select 'Options' from the drop of the BB Menu button on my Torch 9800, the screen flashes, then back to my home screen. It has been so for a long time (almost a year) and I think that there is a permission that has been disabled inadverdently. It does work if I use the theme BB6 native or other that I downloaded. Anyone know how to make 'Options' to the option to start working again?

    Hi randynjaimie,

    Try to back up your data using the BlackBerry® Desktop Software and perform a clean reload of your BlackBerry® Device Software.

    For more information, see the following article. How to perform a clean reload of the BlackBerry Device Software for Windows. www.BlackBerry.com/BTSC/kb11320
    Please test to make sure that the problem has been resolved before restoring all the data from your backup file.

    I hope this helps.

  • No audio audio on computer. Fix Center indicates the problem, my audio doesn't work does not sound and manufacturer-both required

    I have an acer CPU. I might delete something that caused audio does not run correctly, but not sound. Speakers are plugged.

    Install the audio for the brand device drivers and the computer audio device model you have.

    (Without device drivers, the operating system has no idea how to talk to the audio device * and * vice versa.)  We can speak English, the other Swahili.  If no member of the House can translate, then you get just a lot of weird looks.)

  • Design the Standard CS6 Suite doesn't work is not on the new iMac

    I just bought the new iMac 27 ". Good looking! I've updated the OS 10.8.2 I ran that Installer DSStandard CS6 and whatever else it took place without a hitch. When I try to start anything but Acrobat, before unexpectedly programs I have not even the boot screen. I have repaired permissions.

    Any suggestions as to what I'm doing wrong?

    Yes, this occurs when users try to copy it to the applications using Time Machine or the Migration Wizard.

    Please remove the software using the uninstaller programs located in Applications/Utilities/Adobe Installers.  After that it's over, you want to follow up with enforcement of the CS cleanup tool.  You can find the details of its use in the cleaning of CS for Setup issues tool | CCM, CS6, CS5.5, CS5, CS4, CS3 - http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html.

    Once you have completely removed software, then please reinstall from your installation media.  If you have further difficulties then please format the drive and only restore your documents and settings.  You will have more success to install with a clean drive.

  • HP 14-r206nv: light wireless led doesn't work do not

    I have a very minor issue that don't mind operating of the laptop, but I'm curious to know why it does not work, because I know that before reinstalling windows it worked normally.

    Well well, to the point now. After a hard drive failure and replacement, Windows 8.1 are installed again and each driver has been installed and works well. The only thing that doesn't work is the led light button wireless (F12). The button is working correctly, activation and deactivation of the Wi - fi, but not the led. It lights, neither white nor red, it is always disabled.

    The model of the wireless card is Realtek RTL8723BE.

    I installed the drivers from the HP site.

    Version of the driver for the wireless card is 2013.8.915.2014

    The version of the wireless button driver is 1.1.7.1

    I tried the latest drivers for the card (an optional windows updates finds) implemented to date for this and the wireless button (if I try update driver in Device Manager, it installs a new) but nothing has changed for good so I decided to go back to what the official site suggests and post here.

    Hi @v1184,

    Thank you for your inquiry.

    I understand that you had a hard drive failure and he had to be replaced, you did. You reinstalled Windows 8.1 and all drivers are up to date.  The only problem you are having is that the wireless button light does not illuminate, but it does not work.

    You tried to update the wireless driver button, but has not changed, so you returned back to the recommended HP driver.  As the wireless button does not work it is not the driver, however, it could be that the light burned. The other possibility would be that when you replaced the hard drive, the connection has been dislodged or disconnected and must be reconnected.

    Please let me know if this information helps you solve the problem by marking this message as 'accept as Solution', this will help others easily find the information they seek.  In addition, by clicking on ' Thumbs Up ' below is a great way to say thank you!

  • Re: File 4639436023 number - we have a Laserjet CP4025DN printer that doesn't work. Who call upon us

    We have a Laserjet CP4025DN printer that doesn't work. Who call us.  We are located in Calgary, Alberta, Canada.  The screenshot is empty and is not communiating with our computers.

    Here's the phone # for 1-(800)-474-6836 Canada

  • LR 5 doesn't work is not on the new Macbook Pro.

    LR 5 doesn't work is not on the new Macbook Pro.  Have tried 2 CC downloads, download licensed 5.6 and 5.5 download licensed, all the results in the same thing.  It comes up with the screen base but no signs and gives that an error occurred when changing the modules.  Nothing I have tried seems to help.  He also said "start with lightroom mobile at the top on the left, although it said it's Lr 5.6.  Anyone else having problems?  Calls to adobe are no help and have to wait until Monday for technical support.  Surely this must run on a NEW laptop with any other installed software!

    Setup logs was very good.  Application installed but is not working properly.  Finally got Adobe support and it turns out be a file permissions error.  Had to add applications and myself as accessors of the Lightroom folder under ~/Library/Adobe/ path and set permissions to read & write (was read only for everything except system) and apply to all the cases closed.   Works fine now.  Including this here in case when someone else is going through this issue.

  • MSN - CRASH - TECH MSN TOLD - not able to use msn and I get a msg in the event viewer that the error is NTDLL. DLL

    MSN TECH SAID TELL WINDOWS CE PROBLEM I am STICK - not able to use msn and I get a msg in the event viewer that the error is NTDLL. DLL and talked with msn. Called MSN windows Dept. -How can I correct this situation?

    Hello

    Did you change your computer?

    Method 1:

    I suggest you perform the clean boot and check.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: After a repair, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

    Method 2:

    I also suggest you to follow the link and check.

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833

  • To run all the applications of the laptop or install download applications works does not error message indicating that the application is not valid "win32.exe or win32.application.

    To run all the applications of the laptop or install download applications works does not error message indicating that the application is not valid "win32.exe or win32.application.

    Hello m.velentino,

    Not sure if you are still having the error message isn't valid win32.applicaiton.

    Get the error: not a valid 32-bit application can have several origins:
    I have listed some of them below.

    The file is corrupted, bad or missing.
    -If the hard disk is damaged or hurt it cause work programs to fail, either because not all data can be read from the hard drive the program is damaged on the drive. Run scandisk and defrag on the hard disk to check for potential errors.
    -If you run the program from a shortcut on the computer, verify that the program is still on the computer. In some cases if the program is no longer installed on the computer, you can get this error.

    File is not designed for your version of Windows:
    -If you try to run a program that is not designed for your version of Windows, you can get this error.
    -Although many old programs designed to work in older versions of Windows will work with new versions of Windows, unfortunately, not all programs will not work.
    -If the program is an MS-DOS program more former start program or Windows, you can get this error.
    -If the program is designed for a 64-bit version of Windows and you are running in a 32-bit version of Windows, it will not work and generate this error.

    File is a virus, worm or other malicious program file.
    -
    This error can be generated by a file that is a virus, worm, Trojan horse or other type of malware file. Often, this will result because the antivirus installed on the computer will not allow the file to install or run. Try to analyze the file to check, it is not a virus or infected.
    -If the file has been checked and is clean, it is always possible that the virus protection program or a another program installed on the computer is at the origin of questions during installation or execution of the program. Start the computer in Mode safe and try to run the program. start the computer in Mode safe will be that nothing is running in the background that could cause this problem.

    Hardware incompatibility.

    -If you get this error during the installation of a program, it is also possible that the CD-ROM drive or the drive that you are installing the program from is not compatible with Windows or has drivers that are not compatible with Windows.
    -Download the latest drivers for your CD player or other of the manufacturer of the computer or the manufacturer of the equipment. (Microsoft does not pilot for other materials)

    Let us know if these suggestions help you.

    Marilyn

  • Download previous versions of Premiere Pro? The most recent one doesn't work on my computer. The screen keeps flashing black and white.

    Download previous versions of Premiere Pro? The most recent one doesn't work on my computer. The screen keeps flashing black and white.

    Hello

    You can see the following link to find out how to download a previous version of creative cloud apps.

    Download and install Adobe Creative Cloud apps

  • The product I bought doesn't work! I need help and I was stuck in your 'contact us loop' for the last few days and I'm frustrated. How can I contact you for help!

    The product I bought doesn't work! I need help and I was stuck in your 'contact us loop' for the last few days and I'm frustrated. How can I contact you for help!

    Probably the best place to start is the right forum for your product. This is the forum for Distiller Server, a product used by corporations long dead, and probably not what you have. If you can't find the right forum, please let us know the FULL name of what you paid for (Please check your invoice, as Adobe have a lot of similar products), and we may be able to direct you. Good luck!

  • Dreamweaver files doesn't work is not on the web

    I'm so frustrated! I've updated some of my photo on my site files, but some of the files will not display on my site. Everything works well in Dreamweaver, even when I check the files in the browser in Dreamweaver, however when I go online on my site, some of the files will not appear! I tried to replace the pictures think that something can be altered with the JPGs, but that didn't work either.

    A link to what I'm talking to you is:

    www.robertfaustphotography.com/Wedding/19.html

    The file is in the correct src folder and it works in dreamweaver. Is the same true for about 3 more photos in other galleries! Does anyone have an idea what is happening. I checked the code over and over again and that you can't find something wrong!

    This marker, as supposed replied.

Maybe you are looking for