How to get started with Obj oriented AS3? (Flash help seems broken)

OK, I won't be the noob who does not read the manual and ask stupid questions, but I'm stuck here. It's been long since I had no experience real flash (Flash 5 in depth) and a small Flash 8. But now, my work has led me in some flash work & I'm basically from scratch. I am trying to get just a simple SWF to load an external class and have the class retrun value of a method.

I define

public class Greeter
public function sayHello (): String
var host: String;
greeting = "Hello World!";
return of the vows;

in an .as file (which is located in the same directory as my .fla) then frame 1 of my time line, I have:

var myGreeter:Greeter = new Greeter();
mainText.text = myGreeter.sayHello("Bob");

When I try and test the movie I get 2 errors:

1046: type was not found or is not a constant of compilation: Greeter.

Posted by: newsgroup user
I get only one, which is the "Incorrect number of arguments. EXPECTED
no more 0,' and the reason for this is that the sayHello() method
is not configured to receive all parameters.

Under most of the cases I would have been skeptical of the passage of an argument when nothing is defined, but I thought I had heard (way back to AS 2) AS being based on some sort of JavaScript rules so I thought maybe that didn't matter. And unfortunately, this error was not my fault for typing, its actually printed this way in the Flash help (see: getting started with ActionScript > example: creating a basic application).

We appreciate that clarification, even if I didn't get the error you mentioned. The compiler has never had that long before he released on bail.

Posted by: kglad
2. you must register the Greeter class file

OK, this has proved be the problem... Just on a hunch, I decided to look into the matter. Save the file as [] errors but off [] does not work. Flash is really sensitive with regard to file names? In any case, I'm a little better. Thank you very much.

Tags: Adobe Animate

Similar Questions

  • How to get started with XPath?

    In Lesson 4, making the flowchart for the employment application that access you the part on XPath, how to get started? Test Linux and workbench turnkey 9.5 and may not know how to launch the module.

    Hi FormsMan,

    XPath Builder can be started in several areas. If you use a SetValue activity, you can launch it by launching the expression builder that is part of the properties of the activity of SetValue.

  • How to get started with APEX?

    Hi all

    I'm new in the APEX and I am very interested to learn and deploy any application with APEX. Can someone help me start to APEX.

    For your kind information I installed oracle Express Edition database in RHL5. Then from where start I do not understand. Help, please.


    Hi Arif,

    Welcome to the world of the ApEx.

    You can start working with ApEx using the documentation available from the link below

    And also to view some of the oracle by example (OBE) for ApEx. you get an idea of how to work with ApEx

    in the following link for ApEx, you will get of OBE, CIR, RIR:P2_TAGS:APEX

    All the best

    Mark responds promptly

    Kind regards

  • How to get started with vmware in the SMB

    Hello world

    I read through this forum to help me understand more about vmware. I think that I have only a very basic understanding of vmware, so ask your recommendations for the project, I'm about to start.

    We are a company SMB with 3 offices in 3 places. We are about to implement a new software which runs on separate SQL 2005 servers in all 3 offices.

    I intend to provide all 3 offices with a similar configuration and have the servers SQL replicated during the night.

    The necessary servers are SQL server, file server and license server.

    The material I've been watching is DELL R710 or PE2950III PE. The number of people using the software would be about 5 to 6 for each office.

    Now, my goal is to move finally all our servers in a virtual machine, but to keep it simple for now, let me just start with what it takes for my project.

    My plan is to buy 1 server for each office and make them run 2 VMs each (SQL, Server license). With respect to the file server, I could use the local storage of the physical server.

    I am aware that this configuration will give me any redundancy in the case of a material error in the physical machine, but I'm hoping to expand my setup with the budget for the next fiscal year and buy the redundant servers.

    So I'm trying to get to the top and now works with spending too much on the material, but I still want to be able to move to a business solution from vmware that allows me to move VM is 1 physical machine to another, etc..

    I wonder now, what software to use for my project. I've been mainly reading on ESX and ESXi. I was looking at the license to the Foundation, but not sure that ESXi makes much sense at all if I have my VMs on 1 physical computer only.

    Then the VMware Server would be a better solution for me? If I decide to VMWare Server, can I still upgrade ESXi later?

    If I go with ESXi, I understand that I can have embedded it or installed. I guess that I can't use the local file storage when using the embedded version of ESXi?

    If I install ESXi, however, I have to start in Win Server 2003 or 2008 first that requires a separate license again and then install ESXi on its own partition on a Raid1 array. I would then use a Raid 5 for all virtual machines.

    Also with ESXi, would I be able to upgrade to a later version of ESXi with my setup? I guess that all the virtual machines must be stopped for an upgrade to ESXi?

    Appreciate any advice.

    See you soon

    Yes, this seems a sensible approach. As you are new to do this of course, you understand the different options of ESX here because it can be a little confusing to start. Going with Vmware server path would be much more disruptive in the future that you will suffer more downtime to make the change. Just to be clear, VMware Server is one where we have an application that runs on Windows (or Linux) to provide the functionality of virtualization. ESX or otherwise runs directly on the hardware.

    ESXi free edition, this may be an option for you initially, but you can not manage it with vCenter. You must use the VI Client directly to each box, failed to get the enterprise as vmotion etc features. With a single server, initially, this could be a good starting point.

    With paid for ESX you will have many other options, note the ESX layer features are essentially the same although we allow them just allows you to add the other stuff by taking the commercial offer.

    At this point it is assumed that you have vCenter somehow, so you will need a Windows Server to the host which can be a virtual machine if you want. If you started with the edition free is simply a matter of connection of the device of vCenter for ESXi nodes and they get activated with the management features - no downtime is necessary.

    Then you have 2 choices for ESXi

    (1) install on HDD or USB

    (2) buy what it come pre-installed with your server.

    The question is then what edition you purchase. We have some packages SMB has been called Essentials or Essentials more, but they are limited to a maximum of three servers altogether, it would be ok for you in you're first scenario but if you then want to make each site two nodes, so you'd not nowhere to go, a nd currently is not a licensing mechanism to upgrade , that's why I suggest you seriously consider 'Standard '.

  • How to get started with Oracle 11 g 2 enterprise

    Hi all

    I installed Oracle 11 GR 2 Enterprise 64-bit on Windows 7 operating system, you can tell me how to configure it to get start to use the oracle database? All links is also welcome.

    Thank you
    Alex Feng


    I installed Oracle 11 GR 2 Enterprise 64-bit on Windows 7 operating system, you can tell me how to configure it to get start to use the oracle database? All links is also welcome.

    All oracle documents, which you can find on

    Thank you
    A H E E R X

  • Confused how to get started with Blackberry 10 development

    Hi all

    I'm new to the development of BB 10.

    I have a DBMS to develop that will help me to read newspapers calllogs/phone and use DBMS data.

    Should I go with native/webworks/cascades? I'm really confused.

    Can someone help me with this...

    Native usually means waterfalls.

    You can use webworks if you plan to develop for multiple platforms and prefer html5, otherwise native/cascades offers better system integration and speed.

    I suggest that you start with the samples and documentation at
    There is also a course online which covers the basics and some advanced topics and should occupy you for a while.

    as a beginner, I suggest to make the UI in QML and use c ++ only as much as necessary until you feel more comfortable with it

  • How to get started with Blackberry Z10 development?


    Can someone tell me how I can start developing for Blackberry Z10.

    I had the Blackberry 10 native SDk Beta.

    Can I use Eclipse for development of BB 10 as we used it for 5.0,6.0 and 7.0?

    QNX Momentics tool is necessary for the development of BB 10, where to download?

    Thank you.

    Yep, it's in the SDK.

  • How to get started with consuming java Web services from WSDL - JDeveloper

    Hi all

    I developed a SOAP based WebService (JAX - WS) for product information. I deployed on stand-alone Weblogic server and the resulting WSDL file generated.

    In the ADF, we totally 3 options to work with the WSDL file.

    1 web Service DataControl (which will directly create a DataControl to access services exposed by Web service through WSDL)

    2 web Service proxy. (A proxy for the Web service of the Fund and offers to the client to interact with the exposed services)

    3. Java Web Service WSDL.

    From these 3 options, I am aware of the first two options. But on the way to the 3rd point or Java Web Service from WSDL, I'm not in a position to know. in what scenario, we will use this service.

    Now I have created the java web services starting from the WSDL. After generating the files of the project structure is as below.

    Please let me know where to start to interact with my application services. (We must separate class DC or any other way to interact)


    Please let me know your inputs on this. valuable suggestions would be appreciated.

    Thank you and best regards,

    Miko Auntie.

    Hi all

    On top of the implementation class (, we have an option called create a Client for the Web Service Annotations.

    This is the right option to choose, so that the client Classes get generated pertaining to this service. Of the client class, we can access the services available?

    Please comment on this if I depart.

    Thank you best regards &,.

    Miko Auntie.

  • How to get started with virtualization on both sites?

    Hi all

    I'm pretty new to virtualization, so my apologies if the following appear to be stupid or a similar case appeared here earlier that I did not notice.

    We have two sites connected with a gigabit ethernet link, redundant transparent. Site A is the seat of the administration, having a few servers (email, file servers, internet basic network connection, etc.). Site B is the technical operations center with nearly 20 physical servers dedicated to various automation and monitoring of the tasks (for devices located on the same site). The workload point of view, the site A and site B can be considered as individual Islands, i.e. the site B does not necessarily require functions of A site or services to do its job (with the exception of access to the e-mail server and files, but it's not a big deal) and vice versa.

    My goal would be to eliminate as physical servers as much as possible, while eventually improving the availability and reliability of the whole system.

    I would like to know what would be the most cost-effective way to implement a virtual environment for it. The Most important factors (apart from the sensitivity of the cost) which would be 1) in case the connection between the two sites is down, site B and site A still retains its local works (like today "unvirtualized'), 2) in case the connection between the two sites is in place, but the virtual host to the site has or B has a hardware failure the other host must support the functions of the defective temporarily (3) the additional traffic resulting from the interconnection of A host, and B must be minimized as much as possible.

    Of course, I don't need exact/models of servers, storage devices, etc., I'm more interested the general concept, how that would work and what kind of limitations/bottlenecks I should consider, as appropriate.

    Thanks in advance for advice on how to learn about this project.


    If you have a storage array unique to site B, with ESXi hosts in two connected sites and use it when the link goes down anything running on site was going to die.

    There is really no cheap way to do what you want to what you are trying to reach. Option 1 is probably the simplest and cheapest option at your disposal.

    You could have a 3-node cluster where 2 are in site A and 1 in site B. Then you would have two shared storage solutions and then would replicate all the data on the storage array in site A to site B, using replication based on the host. You can do that will be a san realitively cheap as long as it is on the supported list. But this solution requires VMware SRM, which once more is not a cheap solution.

    The real problem here is that you have business grade issues and plans, but SMB budget.

    Kind regards

    Paul Kelly

  • How to get started with virtualization

    Who can tell me how can start today on this field of virtualization. I need information on equipment, courses and certification. What should be the first step in this big world of virtualization. Thank you guys! My first post!

    Here is a link for certfication and education to VMware -

  • can someone show me how to get started with flash cs4!

    When I started using flash cs4, I put some .jpg in flash cs4 but I n Noah how to operate... Please help me!

  • The tab "Getting started with Mozilla Firefox" (as well as my default homepage on another tab) charge whenever I start Firefox. How can I stop this tab open at the start of the program?

    The tab "Getting started with Mozilla Firefox" (as well as my default homepage on another tab) charge whenever I start Firefox. How can I stop this tab open at the start of the program?

    If the above did not help, then also see the following articles for more suggestions:

  • How to stop the tab 'Getting started with Mozilla Firefox' to open every time I open FF?

    Everytime I open FF, the tab "Getting started with Mozilla Firefox" opens. I checked and it is not in my list of homepage.

    If I open any additional windows, it does not open.

    But, once I close all the and reopen it again, the tab opens.

    I had a similar problem with some addons (ietab) do the same thing.

    I found the fix for it.

    About: config, filter for 'Start '

    Ones you want to should appear at the bottom.

    Startup.homepage_override_url and startup.homepage_welcome_url

    Double-click on each one and delete the text string. Close and reopen the window to check that it worked.

    As I deleted them both at the same time, I'm not sure who was the culprit. So, I suggest starting by striking first and tests before deleting this one.

  • Firefox 8.01 - automatically load the "Getting started with Mozilla... page.

    Firefox 8.01 - whenever I starts, it loads automatically the "Getting started with Mozilla...» "the my home page Tab. How can't we open the tab "Getting started...". » ?

    Hi ricklord303,

    You should take a look at the Knowledge Base How to set the home pagearticle.

    There are the steps in this article to reset your preferences on the default home page. I would try everything first to clear all strangeness. If it works, you can try to set your homepage again to your personal preferences.

    If this does not work you should look at this article on this specific issue and Preferences not savedarticle.

    Hope this helps!

  • Registration and getting started with the INK HP INSTANT

    Registration and getting started with ink HP Instant

    Note: your printer must be connected to the Internet via a wireless connection.

    How does that you will always have ink HP? Your printer uses Internet to let us know when to send more ink. Here's how you can get all the ink you need, delivered to your door.

    1. Buy an eligible printer.
    2. Enroll in a plan based on the number of pages you print.
      Ink, cartridge recycling and transport are included.
      No annual fee, change or cancel your plan anytime.3
    3. We'll will ship special HP Instant cartridges.
      Our cartridges have more ink than the standard HP ink cartridges, so you'll replace them less often.
    4. Billing service and begin after inserting your first instant HP ink cartridge.
    5. Your printer will tell us when to send handwritten entry.
      Your service is not based on how many cartridges you use, so print as many pictures of high quality that you want.
    • You will always have ink before you need it.

    LoneStarBob wrote:

    I received my first ink (three colors) of HP cartridge. check the two original instant of ink in the printer cartridges they show two 3/4 full (identical). Puzzeld just why black not sent.

    Hi LoneStarBob,

    I'm going to private msg you on it to help track.

    Thank you


Maybe you are looking for