Having trouble using a simple class..New to AS3

Hello Everyone,
I am new to AS3 but not to AS2. I have written a simple class
and when I import it, I don't see the object that should be created
upon calling the constructor. Can you guys tell me where am I going
wrong. And I am very puzzled about 'document class'. Yes, I have
google numerous threads on "document class" but still very shaky on
this matter. Here is my simple class which should place a button
object on the stage when I create a new object of this class.
Once I have created the BTN class, I have made sure that I
have button component in my library, I then instantiate the object
by creating a new CS3 file and importing my class:
import com.learning.as3.*;
var b:BTN = new BTN();
When I test the movie, I get the following errors:
1172: Definition com.learning.as3 could not be found.
1046: Type was not found or was not a compile-time constant:
BTN.
1180: Call to a possibly undefined method BTN.
Any help would highly be appreciated.
Thanks you.

Hello Ned,
Yes, I have made sure that my directory structure exist as it
should be and yet I still get the errors.
Thanks a lot.

Similar Messages

  • Having trouble getting started with my new shuffle

    I am having trouble getting started with my new shuffle. any help?

    Hey there Feisty59,
    It sounds like you have a new iPod Shuffle, and want to know how to start using it. Here is a great resource for understanding how to use your iPod, and how to set it up and get music synced to it from iTunes:
    iPod shuffle User Guide
    http://manuals.info.apple.com/MANUALS/1000/MA1550/en_US/iPod_shuffle_4thgen_User _Guide.pdf
    If you have a different model of iPod Shuffle, choose yours from the following page and use that guide instead:
    Apple - Support - Manuals
    http://support.apple.com/manuals/#ipodshuffle
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • I'm having trouble using the iTunes and Apps store because i can't register my Nigerian mastercard. What should i do. i'm trying to register it in the Nigerian iTunes store.

    I'm having trouble using the iTunes and Apps store because i can't register my Nigerian mastercard. What should i do. i'm trying to register it in the Nigerian iTunes store.

    Is this a new Apple iD? If it is, and you have already set it up, then you have two options:
    1.     Temporarily put a Credit Card or Gift Card on the account to download the free app. If you put a credit card, then once you have downloaded the app, you should be able to go into your Account preferences and change the payment option to = None.
    2.     You can download the fee App, and then set up a new Apple ID.
    Cheers,
    GB

  • Is anyone having trouble with internet on the new macbook air and an old modem?

    Is anyone having trouble with internet on the new macbook air using an old modem?
    I live in NYC and have an old modem/router and keep getting kicked off the internet. I have time warner as my internet provider.

    Hello there adell723,
    I suggest taking a look at this article we have named Troubleshooting Wi-Fi issues in OS X Lion and Mac OS X v10.6 found here http://support.apple.com/kb/HT4628?viewlocale=en_US.
    Symptom: The network connection drops unexpectedly
    Your Mac may not not stay connected to your Wi-Fi network reliably.
    Your Mac may stop accessing the Internet during use.
    Solution
    Use these steps if your computer disconnects from its Wi-Fi network unexpectedly.
    Check your range to the Wi-Fi router and reduce the effect of interference.If your computer is too far from your Wi-Fi router or your environment has too much Wi-Fi interference, then your computer may not detect the Wi-Fi network properly. The easiest way to check for range limits with your Wi-Fi network is to move your computer or your Wi-Fi router closer together and make sure that there are no obstructions (such as walls, cabinets, and so forth) between the router and your computer.See Potential sources of wireless interference for more information about interference and solutions.
    Try connecting to a different Wi-Fi network. If your computer works fine when connected to a different Wi-Fi network, then the issue may be related to your network router or ISP. In that case, contact the manufacturer of your router or your ISP.
    If you have Mac OS X 10.8.4 Mountain Lion installed then I would recommend using Wireless Diagnostics tool which is on your computer already.
    Here is the article for it and how to use it to assist with wifi connectivity issues.
    About Wireless Diagnostics
    http://support.apple.com/kb/HT5606
    Cheers,
    Sterling

  • I'm having trouble using Adobe Reader

    I'm having trouble using or uninstalling Adobe Reader, i get a message when the programme has been anitiated which says Adobe Reader has encountered a problem and needs to close, i went on to Adobe's website and it said try uninstalling Adobe Reader and then re-install it as this sometimes works, i tried un-installing it from the Add or Remove programme but that didn't work either as i got another message telling me that the patch package could not be verified and to make sure i have permission.

    Dear Mylenium.
    Sorry i don't quite understand your reply, What do you need to know?

  • Im having trouble using Emoji on some apps since i downloaded ios5... Anyone else experiencing this?

    Im having trouble using Emoji on some apps since i downloaded ios5... Anyone else experiencing this? Ive tried every thing deleting emoji and apps and re-instaling to no sucsess?? Any help would be great thanks!

    YES! I am having a lot of AppStore problems since iOS 6. My 2 main issues are:
    1. AppStore crashes constantly or will just sit & spin then does nothing at all.
    2. If I search for a specific App, making sure my spelling is correct, AppStore will NOT bring the app up. Instead, it will bring up unrelated apps.
    Podcasts app does the same thing, as well as jumbling up dates. Very impossible to find the correct episode.
    APPLE, please tell me you are reading this and that a fix is quickly under way!!

  • Im having trouble using bbciplayer on my ipad it says i need to switch to wifi but im already connected can any one help?

    im having trouble using bbciplayer on my ipad it says i need to switch to wifi but im already connected can any one help? I ve uninstalled/ reinstalled  switched it on and off what next?

    Did you try downloading the movie from iTunes on your iPad?  I know it takes longer but I'd try that. 
    Also try to reset all settings. 
    Settings > General > Reset. Reset all settings. 

  • I just downloaded Mainstage, I'm having trouble using it, because it won't open, can someone help me out?

    I have the latest Mac Os update ... I downloaded Mainstage, it won't open... Why is that???  I've deleted it, reinstalled it, but I keep having trouble using it...

    Yu have to run the library upgrader - it is in your applications folder in the utilities folder - double click on it to exceute it - then launch iPhoto after running the library upgrader
    LN

  • I'm having trouble using my redemption code to access Lightroom?

    Can any one help I am having trouble using my redemption code to access the download of lightroom

    i am having the saame trouble with my audio book.  I can get music but no longer my book. and it makes me mad. help me too.

  • I'm having trouble using my track pad. The arrow moves but I can't click on anything.

    I'm having trouble using my track pad. The arrow moves but I can't click on anything.

    Oh thank you for posting on how to enter safe browsing! I had tried to disable add-ons, but couldn't make anything click to do so. So frustrating!
    Anyway, after putting on the safe browsing, it worked *immediately*, so clearly the add-ons were the issue! I deleted a bunch I don't use anyway, and it's been working fine for hours.
    Thank you!!

  • I'm having trouble using my iTunes to buy things in games is ther something I should it keep telling me to contact support

    I'm having trouble using my iTunes card to purchase things in games keeps telling me to contact support. I can buy song so it is activated can anyone help??

    i am having the saame trouble with my audio book.  I can get music but no longer my book. and it makes me mad. help me too.

  • I am having trouble using home sharing.

    I am having trouble using home sharing. My brother is able to access my libary but I can't access his. Even though we put in his ID for me to access, it just loads and gives up. Can anyone help me out? My OS is windows vista and my brother's is windows 7.

    Welcome to the Apple Community.
    The following article(s) may help you.
    Troubleshooting Wi-Fi networks and connections
    Recommended Wi-Fi settings
    Troubleshooting Security Software

  • Having trouble using adobe

    HAVING TROUBLE USING ADOBE AFTER ITS INSTALLED... YOUTUBE, FACEBOOK GAMES.... SAYS OOPS TRY AGAIN

    You're in the Reader forum. You want http://forums.adobe.com/community/flashplayer

  • I having trouble using time machine

    I having trouble using time machine on my mac. When I click it, it wants me to set it up. When I click on that it says  to select backup disk but there is nothing on the page, it's blank.  What do I do next?

    Have you connected the Hard Drive you want to storage your backup? If the answer of this question is yes, you need to format it in "Mac OS Extended (Journaled)" It can be a NTFS drive and you are probably using macfuse to have permission to read and write it time machine can't write on NTFS (As far as I know) Hope it helped

  • Having trouble using escape sequences

    I'm trying to display a Christmas tree, but I'm having trouble using \ before the symbols. It won't compile.
        result.append("      \/\\ " + NEW_LINE);
        result.append("     \/  \\ " + NEW_LINE);
        result.append("    \/    \\ " + NEW_LINE );
        result.append("   \/      \\ " + NEW_LINE);
        result.append("   \-------- " + NEW_LINE);What could be the problem?

    Following your advice, it still won't compile. Sorry, my knowledge of Java is limited at this moment.
        result.append("      / /\ " + NEW_LINE);
        result.append("     /  /\ " + NEW_LINE);
        result.append("    /    /\ " + NEW_LINE );
        result.append("   /      /\ " + NEW_LINE);
        result.append("   -------- " + NEW_LINE);Error message:
    C:\Users\John\Desktop\ChristmasTree.java:18: illegal escape character
    result.append(" / /\ " + NEW_LINE);
    ^
    C:\Users\John\Desktop\ChristmasTree.java:19: illegal escape character
    result.append(" / /\ " + NEW_LINE);
    ^
    C:\Users\John\Desktop\ChristmasTree.java:20: illegal escape character
    result.append(" / /\ " + NEW_LINE );
    ^
    C:\Users\Johnny\Desktop\ChristmasTree.java:21: illegal escape character
    result.append(" / /\ " + NEW_LINE);
    ^
    4 errors
    Tool completed with exit code 1
    Edited by: jvu on Sep 18, 2008 6:25 PM

Maybe you are looking for

  • How do I remove an entire "local" playlist from my divide without messing up the cloud?

    I have a couple of playlist on my iphone with the songs on the device.  When i'm in itunes, the music tab for the iphone now says the songs are in the cloud and to manage it from the device.  If I swipe there is a "delete" on the playlist.  What does

  • CD-ROM wont open..

    Okay.. ive been playing around with my hardware earlier today. I didnt get my ram yet.. so i cant install the whole system yet. The "problem" is.. I connected the molex power connecter to my dvd/rw drive... and the dvd/rw drive powered on.. but when

  • How do you duplicate a tab ?

    Does firefox allow a tab to be duplicated ? Cannot find it in the options ...

  • RTL Option in Illustrator CC 17.0.0

    I have Illustrator CC 17.0.0 and I can't access the Right-to-Left Paragraph direction option in order to write hebrew/arabic. I've already changed the type preferences to show Indic options, and then used the "Middle Eastern & South Asian Every-line

  • USB data manipulation from Java to all OS

    Hello currently I'm developing on a software where I need to detect the USB Device and get access to the data send from the USB Devices. I googled but couldn't find the perfect library for usb for all platform. My program is used by many clients of d