Error 1010 / / buttons do not work

I know AS2 and finally convert to AS3 now following a book. My code is exactly like that in the book and everything in my library (buttons, movieclips) are coupled correctly, but I get the same error 1010 that a term is undefined and has no properties. I want to know if I'm stupid (I hope not), or if the book is out of date. I hope someone can help. I put a picture of what my property, together with the code below.

asLinkage.jpg

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 StartPage();

hillPage = new HillPage();

pondPage = new PondPage();

addChild (startPage);

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

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

}

function onHillButtonClick(event:MouseEvent):void {}

addChild (hillPage);

removeChild (startPage);

}

function onPondButtonClick(event:MouseEvent):void {}

addChild (pondPage);

removeChild (startPage);

}

}

}

You should go in your publication of Flash settings and select the option to enable debugging.  Which can improve your error messages to include the line numbers for the offending code.

What I see, I suspect that you're bad coding the names of the buttons inside the instance of StartPage.  The names HillButton and PondButton are the names of classes based on what your image library shows, they are not the instance names... at least I hope so that they are not.

Tags: Adobe Animate

Similar Questions

  • Qosmio F30: Toshiba control buttons do not work on Vista 64 bit

    Hello everyone

    I have Windows Vista 64-bit installed on my Qosmio F30, but before operation buttons do not work.
    I tried to use the 32-bit configuration of Vista drivers, but when I press it, I got the following error: "this function not taken in charge.

    So please can someone help me to overcome this problem.

    THX

    Hello

    You cannot use these Toshiba control buttons (play, pause, etc.) because the necessary drivers are not installed.

    You will need a compatible Vista value added package, but it seems that Toshiba page does not provide the 64-bit VAP but only the 32-bit version.
    The problem is that the software for Vista 32 bit does not work on Vista 64 bit OS.

    In my opinion so there's nothing to do right now

  • When I go to my creative cloud application, it said that I have no internet? try it again the button does not work

    When I go to my creative cloud application, it said that I have no internet? try it again the button does not work

    Log, activation, or connection errors. CS5.5 and later, Acrobat DC

    https://helpx.Adobe.com/x-productkb/policy-pricing/activation-network-issues.html

  • Navigation buttons do not work during audio playback

    I have a dysfunction of the brain...

    I use the audio function TextSpeech on 20 slides. I use a master slide to contain my header and footer. The footer includes my navigation buttons. While the audio is playing, the buttons do not work. As soon as the slide audio is finished, the buttons work. What I've done wrong?

    I built the main navigation using my personal button images and click on the boxes, built on a page standard, and then stuck in the slide master, a process that I used previously.

    By the way, if place the buttons of navigation (footer) on each slide, they work as I expected. I don't like all these items repeated on the timeline of each slide.

    Any ideas?

    Thank you

    Jack

    Captivate 7

    Windows 7

    I tried to reproduce this error. In the standard slide, I placed an image, added a box to click it and assigned her to take action on the next slide. When I paste these two objects on the slide, click box is stripped. So, when I presented in preview the project, I was automatically slide next without having to click on anything that it is me. (Since the click box to which I assigned the action is missing).

    However, the solution to this is that you can place a button smartshape modeled on slides, entrust your image and add the necessary action. The release works as expected.

    Anthony

  • My AS3 in Flash buttons do not work in HTML.

    Hey there,

    I created a SWF with 5 buttons. I used the following code:

    myButton1.addEventListener (MouseEvent.Click, f);

    function f (e: Event) {}

    navigateToURL (new URLRequest ("http://www.myurl1.com"));

    }

    MyButton 2.addEventListener (MouseEvent.Click, F2);

    function f2(e:Event) {}

    navigateToURL (new URLRequest ("http://www.myurl2.com"));

    }

    MyButton 3.addEventListener (MouseEvent.Click, F3);

    function f3(e:Event) {}

    navigateToURL (new URLRequest ("http://www.myurl3.com"));

    }

    MyButton 4.addEventListener (MouseEvent.Click, F4);

    function f4(e:Event) {}

    navigateToURL (new URLRequest ("http://www.myurl4.com"));

    }

    MyButton 5.addEventListener (MouseEvent.Click, F5);

    function f5(e:Event) {}

    navigateToURL (new URLRequest ("http://www.myurl5.com"));

    }

    It works perfectly fine when I export the SWF of Flash file.

    When embedding the SWF in a HTML file, that nothing is happening. The buttons do not work, no error message, nothing.

    Help someone?

    Thank you!

    The code looks perfect isn't the problem.  It could be your embed code for the web page.  Have you tried to let the Flash to publish an html page and then tested this page, or you rely on something else to create the embed code?

  • Delete the file as an attachment button does not work

    I have a form with a box the user can attach files. There are three buttons. To add a file to open the file to see it and the third button to delete the file that is highlighted in the drop-down list. Remove the button does not work. You see something wrong with my script?

    ADD A SCRIPT FILE

    MeetingMinutes.LogoControls.Attachments.Button1::click - (JavaScript, client)
    myDoc = event.target var;
    sFile var = "myFile" + NumericField1.rawValue;
    myDoc.importDataObject ({cName: sFile});
    myDataObject var = myDoc.getDataObject (sFile);

    sFileName var = myDataObject.path;

    ListBox1.addItem (sFileName, sFile);

    NumericField1.rawValue = NumericField1.rawValue + 1;

    OPEN THE SCRIPT FILE

    MeetingMinutes.LogoControls.Attachments.Button2::click - (JavaScript, client)
    try {}
    myDoc = event.target var;
    var sFile = ListBox1.rawValue;

    myDoc.exportDataObject ({cName: sFile, nLaunch: 2});
    }
    catch (e)
    {
    App.Alert ("Click on the file you want to open (select)," + "\n" + 'then click on the button to open the selected file' ");
    }

    REMOVE THE BUTTON SCRIPT

    MeetingMinutes.LogoControls.Attachments.Button3::click - (JavaScript, client)
    try {}
    myDoc = event.target var;
    var sFile = ListBox1.getDisplayItem (ListBox1.selectedIndex);

    If (sFile! == "") {}
    var nResponse = xfa.host.messageBox ("you are about to delete the attached highlighted file. \n\nDo you want to continue? ', 'delete an attachment ", 1, 2);
    If (nResponse == 4) {}
    myDoc.removeDataObject (sFile) + ListBox1.deleteItem (ListBox1.selectedIndex) + (NumericField1.rawValue = NumericField1.rawValue - 1);
    }
    } else {}
    xfa.host.messageBox ("no document selected. Click on the file to delete. ») ;
    }
    } catch (e) {}
    xfa.host.messageBox ("error in deleting of document");
    }

    Change var sFile = ListBox1.getDisplayItem (ListBox1.selectedIndex);

    TO

    var sFile = ListBox1.rawValue;

    Kyle

  • iPhone 5 home button does not work after ios 10

    My 5 Iphone Home button does not work after update final IOS version of 10.

    The home button works on the first push to wake the phone but it will not open the phone the second button.

    I activated the assist button, which does not work either. But what I discover is if I open device for assistance then touch and lock screen click on the button home will work once to open the phone. If I open any app I can't close it unless I go through the same routine.

    You attempted to restart your phone?

    You can do so by holding the sleep/wake button and the Home button simultaneously until the Apple logo appears

  • I'm locked out of my iphone5 not connected to my wifi at home and my home button does not work, any ideas on how to fix?

    I'm locked out of my iphone5 not connected to my wifi at home and my home button does not work, any ideas on how to fix?

    < re-titled by host >

    Take it to an Apple Store for repair or replacement.

  • My mute button does not work

    The button does not work everytime I try to put my phone on silent. I turn it down and it will automatically return to the sound, it activates again upward. What can I do?

    Hello Jackie101foever,

    Thank you for using communities Support from Apple!

    As I understand it, you can't silence your iPhone.  I have a suggestion that should help you with this.

    The first thing we want to do is to make sure that you have a current backup of everything on your iPhone.  If you follow this link, you will find instructions on how to make a backup:

    The backup of your iPhone, iPad and iPod touch

    If the silent button moves upward on its own, so you must do this checked by a service representative.  You can find the nearest one by looking here:

    Find locations

    If the button is stay down, but do not silence the iPhone then we want to restore all settings.

    Reset preference files resets all parameters that may be problems. This step will not delete your contacts, photos or personal information. It deletes all your preferences for Wi - Fi, Bluetooth, do not disturb, Notifications, general, sounds, brightness & wallpaper and privacy and removes your Touch ID & password.

    Do you this by clicking on settings > general > reset > reset all settings.

    Once you have done this, restart the iPhone and see if you are able to turn off the sound.

    Have a great day!

  • Delete buttons do not work after the update of 10.11.16.

    Delete buttons do not work after the update of 10.11.16.  The delete button works if I pointed out and then delete, but not if I use the "back" button or try a removal of uniqueness.  It is a problem in all applications.  I tried it in textedit, search google chrome, safari search and find finder engine.  There seems to be a 'problem' of the keyboard' as far as I know nothing happened to my keyboard, IE the spilt coffee, that recent warming has been updated to 10.11.16.  I use an iMac (27-inch, late 2009) with i5 clocked at 2.66 GHz, running OS X El Capitan.

    Any suggestion would be appreciated.

    Greetings, r.fromstouffville!

    It seems that the 'Delete' on your iMac keyboard key works as it is supposed to be after update to OS X 10.11.6. I'll be happy to help you get these keys working again.

    Reset of the controller management system (SCM) on your Mac - sometimes it's a matter of simply resetting your iMac SMC. Open this article and scroll down to "Reset the SMC on Mac desktop" section and follow the steps there.

    Try safe mode if your Mac does not start -even if your iMac, safe mode startup make sure it starts successfully.

    How to test one question in another user on your Mac account - use this article if restarting in safe mode did not help.

    Use Time Machine to back up or restore your Mac - if your keyboard does not always work as it should, I recommend you save your iMac to ensure that your personal data are safe. It is always better "to have" a backup for a backup "need."

    On OS X Recovery - if you have reached this point, you encounter the same problem in a test user account, that would mean it is a system-w. Start your iMac into Recovery Mode and reinstall the operating system.

    Thank you for the communities of Apple Support!

  • I don't remember password and my home button is not working how do I enter phone?

    I do not know my password and my home button does not work, how can I access the phone?

    Take your iPhone to an Apple Store or Service Center authorized Apple.  Let them evaluate and advise you how to proceed.

  • "Browser" button does not work

    So useful to someone, here's how I solved this problem.

    Facts: Since the FF27, I couldn't choose where to download a file, or send a file because the "browser" button would not work.

    On the update of Avast program, I stopped "Avast Secure Line" to take (thanks to my firewall Outpost) and then FF started working fine again.

    I was surprised because I had already tried all help given including FF running two Avast with Outpost arrested without success.

    I hope this can help. All the best

    Hi Phil24,

    Thanks for the tips, very useful!

  • "Back" button does not work and lost bookmarks

    I followed the instructions that Firefox has been extremely slow. He said my favorites would be saved and everything should work as usual. However, I lost all my precious Favorites, and now the back button does not work. She is pale grey all the time, and itls drives me crazy, that I can't go back to the search page. I have to type everything in full again.
    If I can't change it, I'll have to switch to another web browser, after being with Firefox for more years than I care to remember.
    I liked using Firefox and have recommended it to all my family and friends.
    I'm very angry on my favorites, because I used these regularly and had a few coordinates links and important model for my sewing and knitting, as well as time-saving links. Now, I'm completely lost without them.
    If this isn't the page said it would be saved, then I would not have changed anything.
    It's very frustrating and annoying, after spending months, where I wanted and now he lost get it all because of the wrong information. I am very anxious.
    Lesley

    You can check for problems with the database places.sqlite file in the Firefox profile folder.

    You can see if you can restore bookmarks to a JSON or a compressed backup of JSONLZ4 in the bookmarkbackups folder in the "Old data Firefox" folder on the desktop.

  • "Search" on yp.ca button does not work

    The 'SEARCH' button will not work on the page web http://www.yellowpages.ca/ in the Firefox browser. It works in the browser explore.

    If you use extensions (Firefox/tools > Modules > Extensions) which can block content (e.g., Adblock Plus, NoScript, Flash Block, Ghostery) then make sure that these extensions are not blocking content.

    You can try the following steps in case of problems with web pages:

    Reload Web pages and ignore the cache to refresh potentially stale or corrupt.

    • Hold down the SHIFT key and click the Reload button
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Command + shift + R' (Mac)

    Clear the cache and cookies only from Web sites that are causing problems.

    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > Cookies: "show the Cookies".

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.
  • Firefox automatically updated itself, would not add new bookmarks, then deleted all mine, will not always add new, now the back button does not work. I'm Livid.

    I think I'm on Firefox 13.0. He put itself as part of the update of my computer up to date (at least I guess that's what happened, because it has changed). I noticed yesterday that he would not favorite Web sites, but I thought it was just the website or bookmarks have been full-time or something. Today, I tried to remove a few bookmarks to make more, but they would not remove. I tried to register a new site, and it wouldn't work. I tried to close/exit firefox and re-opening of the program. While the program was closed, I installed the next set of updates on my computer. When I have opened firefox, all my favorites, and the tab menu (or what you call personal small bar on the actual tabs) were gone. I can't always favorite of new sites, so I can't even re-do all my favorites (and I got a lot, all of them arranged so it's a big loss and incredibly annoying). Then I realized that the back button does not work. And the cursor remains on the typing that I symbol, it does not change the arrow, when I click on a link.

    One possible cause is a problem with the places.sqlite file that stores the bookmarks and history.

    You can also try to repair the database of places with this extension:

Maybe you are looking for

  • iMessage will receive but not send on my macbook

    Help It was working fine until I had to reset my apple id password and emails.  I read another thread, which suggests that to remove file:///Users/Library/Preferences/com.apple.ids.service.com.apple.madrid.plist. has that restarted the app and will s

  • Uninstall VCOM fix it on XP Pro

    In the control panel "Uninstall": indicates that there is a network resource that is unavailable.  I don't have a network! It's in: C:\Program Files\Common Wise Installation Then, this file is said: a big pile of gibberish... ('WISEAf9C41C1EC1D4FCD9C

  • How can I print my photos displaying the date and time stamp

    I have pictures in a legal context but do not understand how to print them displaying the date and time stamp.  The timbre of the date and time are necessary for me to present my case exactly.  Can someone tell me how to print with these marks. Thank

  • Hotmail-hidden? addresses in the contact list

    HI-Can someone please help, in hotmail-when starting a new email, if I choose 'select all' contacts to show all addresses, I note when I sent the e-mail that there are 2 thugs * addresses on the list of sent ("Adultchat HornygirlHere") that I haven't

  • SD card reader driver

    Hello. I have a Lenovo X 61 Tablet with a built in SD card reader. I am running windows 7 and was running windows prior to vista. The sd card reader has always had the same problem. When I insert an SD card, it is detected and presents itself as a de