Noob with code problem. : P

Hello, I am a beginner in Flash and I started to look further at some tutorials, recently I came up with this error in my code and I can´t seem to figure it out.

Error

C:\Users\anton\Downloads\Flash games\interactivestorybook\Main.as, line 101046: type was not found or is not a compilation constant: HillPage.
C:\Users\anton\Downloads\Flash games\interactivestorybook\Main.as, line 111046: type was not found or is not a compilation constant: PondPage.

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)

Event listeners

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

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

}

Event handlers

function onHillButtonClick(event:MouseEvent):void

{

addChild (hillPage)

removeChild (startPage)

}

function onPondButtonClick(event:MouseEvent):void

{

addChild (pondPage)

removeChild (startPage)

}

}

Would appreciate if someone could give me a helping hand, it's probly just something obvious, but at the same time, not obvious to me.

}

If it is a document class, so be sure that you assign the names of HillPage and PondPage classes for the objects in the library.

Tags: Adobe Animate

Similar Questions

  • noobie with a problem in his 1st project

    Hi, just a noob in actionscript, to leave, I looked at some video tutorials basic and searched for websites on topics I'm interest in as3.

    So I chose something that I thought was easy for my first project

    basically I I read www.justin.tv/meta/username.xml for each user xml file, I want to know the date of account creation

    on this XML part is something like < created_on > 1228199388 < / created_on > with the timestamp

    then I look at http://www.gotoandlearn.com/play.php?id=64 I have had success read this value for a SINGLE user and the conversion to the format mm/dd/yy when I define the user as a variable

    so I tried to add an input text where I can type any username, read this xml file, make the same conversion and show once again the date in a dynamic text box

    Screenshot_4.jpg

    so everything I have is really 1 button to clear the user name, the date, and others to display the date for the new user is entered in the first text box

    Adds the event listener for the buttons, don't think that's what I did wrong

    When I test it works very well for the user by default, but I have the problem as soon I click one of the buttons (clear data or to update to the new user)

    ArgumentError: Error #1063: incompatibility of County of Argument on joined_fla::MainTimeline / borrarTodo (). expected 0, got 1.

    for the clear button

    and

    ReferenceError: Error #1069: property not found on fl.controls.Button data and there is no default value.

    at joined_fla::MainTimeline/xmlCargar()

    for the show one

    messages in the output tab

    It's the project file

    I know not for people with more than a few days of experience is something really stupid, but I thought that and I can't find the solution

    Hope someone here coan to give me a solution or a clue about what I'm doing wrong

    var leeXml:URLLoader = new URLLoader();

    leeXml.addEventListener (Event.COMPLETE, xmlCargar);

    var datosXml:XML;

    nombreUsuario_txt.text = "justin".

    function xmlCargar(e:Event):void

    {

    datosXml = new XML (e.target.data)

    var creacionTimestamp:Date = new Date(datosXml.created_on * 1000);

    DIA var = creacionTimestamp.getDate ();

    If (dia < 10)

    {

    DIA = '0' + String (dia)

    }

    my var = creacionTimestamp.getMonth () + 1;

    If (my < 10)

    {

    My = '0' + (my) String

    }

    anio var = creacionTimestamp.getFullYear ();

    var fechaCreacion:String = (my + ' / ' + day + ' / ' + anio);

    resultado_txt. Text = fechaCreacion;

    }

    leeXml.load (new URLRequest ("http://www.justin.tv/meta/" + nombreUsuario_txt.text + ".xml"));

    borrar_btn.addEventListener (MouseEvent.CLICK, borrarTodo);

    function borrarTodo (): void

    {

    nombreUsuario_txt.text = "";

    resultado_txt. Text = "";

    }

    buscar_btn.addEventListener (MouseEvent.CLICK, xmlCargar);

    Carlos.


    your button should be called a function that loads your xml file, not the complete listener function of the load:

    buscar_btn.addEventListener (MouseEvent.Click, startBuscarF);

    function startBuscarF(e:Event):void {}

    leeXml.load (new URLRequest ("http://www.justin.tv/meta/" + nombreUsuario_txt.text + ".xml"));

    }

  • noob with clickzone problem

    I created a clickzone with a plus and the State. Above this area, I put buttons, but these buttons create a hole in my clickable area. Y at - it a script that would allow me to add buttons to the clickzone?

    If that's all you got, is not the code, that I introduced myself... it is not all traces that.  If trace you the undefined looming as the other stuff, so you still have something you want to locate.

    Aside from that, have you advanced to the section of the timeline you lebeled when you click on a button?

  • When you install the 2007 Microsoft Office Suite Service Pack 2 (SP2), I still received the error code 646... I tried to download the RegCure as advised, but the problem still exists... Please help me with this problem... Thank you

    Ideas:

    • When you install the 2007 Microsoft Office Suite Service Pack 2 (SP2), I still received the error code 646... I tried to download the RegCure as advised, but the problem still exists... Please help me with this problem... Thank you

    I tried to download the RegCure as advised, but the problem still exists...

    Who advised you to 'download... '. RegCure? Doing so could only worse issues! If you ever think that your registry database must be cleaned, repaired, boosted or optimized (it isn't), read http://aumha.net/viewtopic.php?t=28099 and draw your own conclusions.

    See http://social.answers.microsoft.com/Forums/en-US/vistawu/thread/6e716883-7af4-4a9f-8665-2f4dd57eee8d ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • I am currently using Windows Vista. I face a problem that I can't remove all the files in the form of MPEG-4. Error with code 0x800704C8.

    I am currently using Windows vista. I face a problem that I can't remove all the files in the form of MPEG-4. And the error with code 0x800704C8. What should I do so that I can delete these files? Please kindly help me to solve this problem. Thank you.

    original title: Code 0x800704C8...

    Hello

    Did you change your computer?

    Method 1:

    Step 1:

    I suggest you follow the link and check.

    What are the permissions?

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-are-permissions

    Step 2;

    Why can't I delete a file or a folder?

    http://Windows.Microsoft.com/en-us/Windows-Vista/why-cant-I-delete-a-file-or-folder

    Diagnose and repair Windows files and folders problems automatically

    http://support.Microsoft.com/mats/windows_file_and_folder_diag/

    Method 2:

    I suggest to download and install the Microsoft safety scanner and run the scan and check.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    WARNING: There could be a loss of data while performing an analysis using the Microsoft safety scanner to eliminate viruses as appropriate

  • Laptop off with code no. 54673540. Please provide a way to solve this problem, thank you.

    Hi there, I need help for en-able my CQ41 notebook, when I have not 3 times between the correct admin password and has been disabled with code no. 54673540. Please provide a way to solve this problem, thank you.

    Hello

    Please try:

    41751586

    Kind regards.

  • Having problems installing AUSST. He keeps coming out with Code 3 (couldn't create a folder).

    I'm trying to implement AUSST on a Windows Server, but it keeps failed with exit code 3. I tried setting up IIS7 and Apache2.4 and gave all users full control over the files. If I create the update folder before running the command then it recognizes the file is there and asks if it is OK to remove. The folder, then disappears, but the command cannot create the new folder. I tried to run the normal administrator and with my admin account command prompt but I get the same message.

    Log file:

    11/04/16 11:36:35:840. [INFO] |  | JEAN | Public services | AUSST.  |  | 1100 | RootPath = / apache24/htdocs/adobe

    11/04/16 11:36:37:997. [INFO] |  | JEAN | Public services | AUSST.  |  | 1100 | The record exists at the given root path! All the contents of the folder will be deleted.

    11/04/16 11:36:40:202. [FATAL] |  | JEAN | Public services | AUSST.  |  | 1100 | Could not create the folder/apache24/htdocs/adobe.

    11/04/16 11:36:40:217. [ERROR] |  | JEAN | Public services | AUSST.  |  | 1100 | Could not access the specified path.

    11/04/16 11:36:40:217. [ERROR] |  | JEAN | Public services | AUSST.  |  | 1100 | Can't add tasks to update for the installation of new.

    11/04/16 11:36:40:232. [INFO] |  | JEAN | Public services | AUSST.  |  | 1100 | AdobeUpdateServerSetupTool returned with code: 3.

    I followed this guide while setting up. The only thing it says about my question is to make sure that the folder has write permissions. I have everyone given write permissions and received the same error message.

    I ended up setting up on an old Apple XServe and it worked immediately. I can't that assume he didn't like is done on Windows 10.

  • Help!  Get pop-ups with CODE of ERROR: sec_error_X1X510_A

    I have an iMAC end of 2012, 3.4 GHz Intel Core i7, 16 GB 1600 MHz DDR3. NVIDIA GeForce GTX 680MX 2048 MB, El Capitan iOS

    When you use Safari, Google home page, I type a domain and it goes to what I believe is a pop-up fake Apple Support with CODE of ERROR: sec_error_X1X510_A.

    Need help solving this. THX

    You have probably installed some adware. Please post a report of EtreCheckof your system. We then look for obvious problems. Please click on the link, download the application and run the report. Once you have the report, please copy and paste into your response to this post.

    If you would like more information on what is EtreCheck, just click on the link and you will find a description of the application.

  • two drivers of PXI chassis with Configuration problem

    Hello

    I have two PXI chassis. One is PXI 1033 and works perfectly with the NI PXI-5404, 5105, 6509, 1409, installed 8336. The other is 1036 PXI with the PXI-5404 NI, 8366 installed. When I was trying wreath connect, as master 1033, 1036 as slave, I found several problems.

    1. in the Measurement & Automation Explorer, does not have my good guys in 1033. Instead, there is a sign of the Red Cross in bottom right with 6509, 5105, 5404.

    2. I can't find an another 5404 of the 1036. In fact, I can't find 1036 in MAX.

    Update BIOS. My PXI system is already identified under the name 'NOR PXI - 1033 Embedded MXI Express' and Chassis1 is identified as 'NOR PXI 1033'.

    So I made several tests as below:

    1. unscrew the 5404 1036 slave. MAX can configure 2 1036 chassis. Ok. But when I reconnect 5404 in 1036, same result happened as stated above.

    2 uninstall the driver of 5404, so the 5404 in 1033 does not either now. And then reboot again, same result happens again. Cannot detect the 1033 chassis. Other vouchers in 1036 don't work either.

    Please, any suggestion is highly appreciated.

    Sincerely,

    Bin

    Hi Ben,

    This happens sometimes with MXI-Express:

    Error code 12 with MXI-Express

    http://forums.NI.com/T5/PXI/two-PXI-chassis-connection-with-configuration-problem/m-p/1475876#M9033

    In general, you can read this error 12 means on Device Manager:

    Explanation of error codes generated by Device Manager in Windows XP Professional

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

    If it was a problem of bandwidth, PCI or PXI side, you could pull a few cards to see if that alleviates the problem, or that the link from Microsoft over the States, you can disable the driver for other cards.

  • I have a new computer with vista home, I also have 20 updates failed with code 80072EFD. I tried everything I can think of others then do a full restore. Help.__Thanks, __Wally

    I have 20 windows updates failed on my new computer with code 80072EFD and tried everything I know. Its still new with few programs on it so I could do another full system restore if I have to. I also have a free windows 7 for this computer that is always on its way. If I fix this now I will do all that again?
    Wally

    You may encounter temporary connection related errors when you use Windows Update or Microsoft Update to install updates
    http://support.Microsoft.com/kb/836941

    Windows Update error 80072efd
    http://windowshelp.Microsoft.com/Windows/en-us/help/93b6ab71-8B21-4B50-B40E-abb80eba29271033.mspx

    I guess you're running Vista.

    As for your 2nd question about the updates of Windows - Win 7 If you run Norton, you might have a problem. It can accept updates for Vista, but when you upgrade to Windows 7 it does not updates allow.

    TaurArian [MVP] 2005-2010 - Update Services

  • Last update of security to explore failed with code C 8007371

    Original title:

    8007371c

    Last update of security to explore failed with code 8007371 c. A ran Microsift Fixit. Still having the same problem. What to do next? Thank you!

    Hello

    1. What is the description of the software update (KB number)?
    2. Are what "Microsoft Fixit" you referring?

    You can try the steps from the following link and check if it works:

    Problems with installing updates

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-installing-updates

    Let us know if it helps!

  • Missing or damaged DVD with code 39 drive

    PC: HP Pavilion Dv5 1135e

    Windows Vista 32 bit
    I have a problem on my laptop dvd player. I have received the notice that it is missing or damaged with code 39.  I checked the Device Manager and there was a yellow interjection on ram dvd notification.  Could you help me how to activate my DVD drive again?

    Your CD/DVD drive is missing or is not recognized by Windows or other programs:

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

    Your CD or DVD drive cannot read or write media - Fix It:
    http://support.Microsoft.com/mats/cd_dvd_drive_problems

  • my collection of Microsoft solitaire' sez mid game for free. a block to the top with code #303019

    Separated from this thread.

    my collection of Microsoft solitaire' sez mid game for free. a block to the top with code #303019

    Hi Louise,.

    Let me help you with this.

    1. What are the troubleshooting steps you have done?
    2. This problem only occurs with the Microsoft Solitaire Collection or other games as well?

    I suggest you to bring the observer log files event to find the exact cause, which is the origin of the problem.

    Follow the steps to collect the log files:

    • Go to start, type event viewer. This will bring up the tile of the event viewer , click here to open the event viewer.
    • In the left pane, expand Windowslogs. Click on Application log and highlight the first event in the log and use the arrow keys to scroll down.
    • Most of your event will be information. You may see errors of Redor yellow warnings . If you see a red error, you can double-click on it to bring it and copy the contents into a document.

    Please answer us with this information and the current state of your computer, we will be happy to help you further.

    Thank you

  • Custom form of OAF - access denied with code 400

    We get this question after the deployment of OFA custom forms in our development environment.

    Error in the apache log shows:

    [error] [client 28.1.6.95] mod_security: access denied with code 400. Pattern match. ^ ([-__ | #! = A-Za-z0-9 / :,.$()]) {0,255} ([-_ | #! = A-Za-z0-9 /:,. $ ()]) {0,255} ' $' in ARGS_NAMES.])

    We conducted last autoconfig and no change. Recorded a SR.

    I guess others have seen this issue in R12.1.3.

    Any suggestions will be appreciated.

    Issue lies in the ARGS_NAME parameter.  Comment security.conf of httpd.conf and follow the steps below. Custom forms OFA work without problems.

    1. Please stop services

    2 backup $ORA_CONFIG_HOME/10.1.3/Apache/Apache/conf/httpd.conf

    3. comment out the following line

    include "/... /... /.ora/10.1.3/Apache/Apache/conf/security.conf.

    After his comments it should look like this

    #include ' /... /... /.ora/10.1.3/Apache/Apache/conf/security.conf.

    4 restart the services and test again the question

  • How do I replace my p.iva with code of taxes on my account? Thank you

    How do I replace my p.iva with code of taxes on my account?

    Thank you

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific time) <===> NOTE DAYS AND TIME
    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)
    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

Maybe you are looking for

  • E-mail client does not load iOS iPad 3 9.3.3

    I have model iPad 3.  64 GB version, seems to work fine except that it takes about 15 tries to get the email client to load.  When the icon is selected, it loads an image of the mail client but no data, returned to the home screen.  After about 15 ti

  • Fatal error Power Save, utility 0 x 51 on Satellite M70

    I just joined my M70 to a domain (SBS 2003) and get this message when I connect to the domain.If I was able to connect to the account of local user on the laptop then it works fine. If I go into power options in the control panel and select a differe

  • Diskeeper Lite install for R61e

    Hi all I'm sorry if it's a question of dunce, but where can I find the installation for Diskeeper Lite for my R61e? It came with it, but I uninstalled the application because I have a problems & now can't install it again put it back on! I tried the

  • PC Tools loading problem

    I loaded pc tools in August 2011 and now at sign on it says wait while windows is installed, and then to wait, it installs Jas paint, pro and Corel Album 6 and then he asked that I insert the CD for these programs, but it comes preinstalled with none

  • How the terms on average 'sandbox' & "Briefcase" of Vista?

    find the programs that are running in the taskbar [bottom left] who are "running in the sandbox"... What is TheSandbox?... also when I choose to do a new folder I see "Briefcase"... which is TheBriefcase?... What do [sandbox/portfolio]?