I NEED YOUR HELP GUYS PLEASE

IM JUST NEW TO ADOBE FLASH AND I DONT HAVE ANY IDEA WHAT TO DO
AND I HAVE A SCHOOL PROJECT USING FLASH
CAN YOU MAKE A TUTORIAL ON HOW TO MAKE THIS
1.MAKE INPUT BOX
2.MAKE  OUTPUT BOX
3.IF YOU INPUT "HI" ON THE INPUT BOX THE OUPUT WOULD BE "HELLO"
ITS LIKE A INTELLIGENT CHATTERBOT
PLEASE HELP ME
IM BEGGING YOU ALL

My instincts tell me that I should not help you because this is for a school project and defeats the purpose of the exercise. However, you are only hurting yourself in the long run. On the other hand I am also a firm believer that the right person can learn a lot by looking at example code.
import flash.text.TextField;
import flash.utils.Dictionary;
import flash.text.TextFieldType;
import flash.events.KeyboardEvent;
import flash.ui.Keyboard;
var inputTF:TextField = new TextField();
var outputTF:TextField = new TextField();
inputTF.border = true;
outputTF.border = true;
inputTF.width = 200;
inputTF.height = 20;
outputTF.width = 200;
outputTF.height = 20;
inputTF.type = TextFieldType.INPUT;
inputTF.multiline = false;
outputTF.mouseEnabled = false;
outputTF.selectable = false;
outputTF.y = inputTF.height;
outputTF.multiline = false;
addChild(inputTF);
addChild(outputTF);
var outputMap:Dictionary = new Dictionary();
outputMap["hi"] = "Hello";
inputTF.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
function keyDownHandler(e:KeyboardEvent):void
          if (e.keyCode == Keyboard.ENTER)
                    var enteredText:String = inputTF.text.toLowerCase();
                    var outputText:String = outputMap[enteredText];
                    if (outputText != null)
                              outputTF.text = outputText;
                    else
                              outputTF.text = "I don't know that";
                    inputTF.text = "";
You're welcome

Similar Messages

  • Hi. I am reinstalling Macbook Pro OS X from the "question mark icon". During process, there is a question "select the disk where to install Mac OS X" but there is no option/selection in the box. I really need your help guys. I need it badly. :'(

    Hi. I am reinstalling Macbook Pro OS X from the "question mark icon". During process, there is a question "select the disk where to install Mac OS X" but there is no option/selection in the box. I really need your help guys. I need it badly. :'(

    If you got the question mark and you do not see any partition to install OS X to, it is not good.
    Close the OS X installer by pressing the red button at the top left corner of the Install OS X window, and open Disk Utility. Then, look at the left sidebar and tell me if you see your hard drive. You should see something like this:
    Do not worry if you do not see Macintosh HD or if the option with an arrow shows a different name. This is normal.
    If you see it, choose it, go to the Erase tab and erase the drive. Finally, close Disk Utility and reinstall OS X. You will lose everything if you do not have a backup.
    If you do not see the drive, it is damaged and it has to be replaced. You can replace the hard drive of a MacBook Pro without voiding the warranty, and any 2'5" SATA hard drive is valid. If you are not an experienced user or you do not want to go inside the MacBook, take it to an Apple Store or reseller.

  • Hi i need your help guys

    Hi everyone I have a problam with my macbook pro.
    When i using my laptop suddenly the screen is turning off, but computer continiues working, and i need to shut down computer with power button and then turn it on again. if anyone can help me please respond me.
    P.s. i have bootcamp installed and there is same problem
    (sorry for my english)

    i cant find where is year

  • I NEED YOUR HELP GUYS!! I WAS DOWNLOADING OSX LION WHEN MY NET CONNECTION STOPPED. THE ICON DISAPPEARED AND IT WILL TAKE 48HOURS FOR THE INTERNET CONNECTION TO BE RESTORED. WHAT SHOULD I DO? PLEASE HELP ME. IM NOT TECHIE AT ALL SO PLEASE.. PLEASE HELP ME.

    The internet was working fine til 10:31am philippine time. Was downloading OSX Lion, at that time it was somewhere half. Then all of a sudden internet failed and lost connection. Called my ISP immediately and was told it would take 24-48hours for the service to be restored. THen after ending the call the OSx Lion icon disappeared. I dont know what to do. Im not techie at all. Please guys. HELP ME>

    Hey allan. I dont know. Nothing seems to change. I still dont have net connection. Im at a net shop right now. (Not using mac.)  What will happen to the OSX Lion that I payed for? The icon was gone. Im still in the middle of downloading it.

  • Code for send button. I need your help, guys!

    I would appreciate a Java code for a "send" button or a "send page" link that would send a complete web page to my email address. I have some forms for my users to fill out online and send them to me, and so the problem I am having is that when I use FrontPage forms (text boxes, check boxes, radio buttons, etc.,)for them to use, I am getting the input from those form only. What I NEED to get is the complete page, exactly what the users see on the screen with all the text in the forms. The need for this is that these forms (reports) will later be printed out, so they MUST look exactly as on the screen.
    So I am thinking a bit of Java code could help me out. Would you give me a hand guys? Thanks!

    Do some JNI and take a snapshot of the screen, it is the ONLY way I know to ensure EXACTLY what you ask for: even the HTML from the page may look different than what the users sees when filling out the form when that HTML is displayed on a different machine and system.
    Otherwise your agument seems a little trivial and you could just replicate the form on your local machine and insert the data you captured with a normal post operation into the local copy of the HTML form.

  • HT1212 I need your help guys

    Good Day Guys,
    I forgot my pass code i need to remove every thing in my mobile and start using it as new device, can some help me pleeeeeeeasae

    If you lose or forget your passcode, you will need to perform a factory restore to remove it.

  • My z60m needs your help! Please anyone? (Recovery disks needed)

    I accidentally modified my MBR with a Ubuntu Karmic Koala install.  It changed the MBR and now the R&R partition will not restore to factory defaults.  Thinkpad told me the only solution is to run the recovery disks. 
    I did not make these, and now I am suffering.  Please, someone with their thinkpad winXP image on their z60m can you help?  It is possible to make recovery CDs inside the thinkpad tools on windows xp.  Could someone please make them and ship them to me?  (If you have some, can you loan them to me?)  I can pay you for your time and effort.  I have paypal and can pay for shipping, discs, time, etc... Please just name your price.
    Thank you so much,
    Brian

    http://forums.lenovo.com/t5/Z-Series-ThinkPad-Laptops/Z60M-Borrow-a-set-of-PR-disc-s-please-Restorin...
    i am not sure whether the kind soul habskilla would lend you the set of the discs or you could ask sfraden to see whether he is willing to help you out. If worst comes to worst, you can order the discs from Lenovo. 
    Regards,
    Jin Li
    May this year, be the year of 'DO'!
    I am a volunteer, and not a paid staff of Lenovo or Microsoft

  • Report with Two Queries -- Really need your Help Guys

    I might be posting duplicate thread but i couldnt found the Q&A that i am looking for.
    I am trying to create a report where i have to use two query. Also, with this query i am passing parameter where i ask user to enter Report Month so they can run report by what ever month they want to see data.
    Now my Q_2 is duplicate or Q_1 because in my final report layout i have to display fields where i have to compare current_month_data to Previous_month_data. so basically i want user to in put current month date and previous month date and layout look like.
    Company_Name Currentmonth_sale previousMonth_Sales ....
    Honda $1423.42 $324.42
    Toyota $3433 $4255.45
    so on....
    Now so far i create report manualy and drop two query in to the report but when i trying to create Report Wizard and group by each Company.. it is not giving me the out put that i want. Instead of giving me above out put its give me my Q_! result with each company group and then under that result i have Q_2 result.
    so HOW CAN I DISPLAY FIELDS FROM MY Q_2 WITH MY REST OF THE FIELD ON Q_1?????????????????????????
    Thank You guys.

    Actually, I tried to use Data Link but i am not able to success.
    Let me know if I am doing anything wrong . i click on left hand side tool panel where its says DATA LINK. then i click on Q_1 field and then drag the mouse over to Q_2 query with same field name. but its give me an error that Can not link it because of Group data and i have option to choose Yes, NO or Cancel.
    Let me know what are the step i need to take in order to link this two queries.
    Thank You
    keyun

  • I need your help guys...really...

    Ok...I'll try to explain my problem...I hope you will exuse my poor english.
    I'm a very satisfied owner of an iPod nano which I use with the iTunes software. Recently I also bought a few songs for the italian iTunes Music Store and I was very satisfied also by this service; but I had a problem.
    A few days ago I had to completely erase my hard disk because a virus damaged it. I made a copy of my music folder and I re-install the Win XP2 operating system but when I re-imported my songs I discovered with sadness that the music bought on the iTunes Store was disappeared. I try to recover them from my iPod but iTunes didn't allow me; I autorized my pc following the instructions gave on the web site but I always receive the same answer....you are not autorized to transefr this music on your pc. How can I do? Moreover some songs that weren't up to date on my iPod and were only in the music backup folder are completely lost I think....can I recover them?
    I hope I manged to explain my problem and that you can help me.
    Thank you very much
    Dimitri

    For Valentine...I try to return on the store and to re-download the a song but I have to pay another time....it don't works...
    For Lance...I never change my account! When I connect my iPod and I try to transfer my purcheges iTunes tells me that I'won't be able to transfer my songs because my pc is not authorized....In the "store" window I authorized my pc, using my account username and the password , with success but I still can't transfer my songs.

  • RoboWizard....I need your help again, please?

    Hi...
    I tried putting the program and all the projects onto the
    local machine, but I am still getting those errors and cannot
    produce any output. Its just about driving me nuts! What else could
    it be?
    Steph

    Steph -
    Try creating a new project on your workstation, and import
    your existing pages afresh. That should get you a new, server-free
    project and project file.
    If you answer this message using the Reply option, we can
    keep your issue to a single thread. That would be cool.

  • Need your help guys! PLZ!

    hi guys im new here! im from colombia! but I have a problem....
    first... I have one ipod and my bro have another.... my ipod works perfect but my brothers one.... well! stinks! anyway... I dont know why but when he connect the ipod to windows.... sounds a tirili... lol... anyway windows got the ipod... but when he open itunes... dont work! itunes cant find it!!!!!!!! im desesperate!!! my bro have 13 years old... and dont have idea about all this Sh*t!
    ITS WEIRD BECOUSE... I USE MY IPOD... JUST PERFECT! itunes read it... windows read it! i have movies! have music photos!!! blablabla! BUT MY POOR! BRO! DONT HAVE! ANYTHING!!!!!!!! PLZ GUYS! HEEEEELP ME!

    well did u install ur bros ipod too?

  • HT3743 I need your help. Please

    What will I do in this case? I don't have any other option to think for my iPhone to activate.

    i dont think so. i got it upgraded and it turns out bad. i got to restore my iPhone and now my phone's not activating. it says that "Your iPhone could not be activated because tghe activation server is temporarily unavailable. Try connecting your iPhone to iTunes to activate it, or try again in a couple in a couple of minutes." I tried it on iTunes but it just the same. It wont even work also. Now im sad of this.

  • I need your help guys!!!1

    Hi everyone,
    I have an iPod Touch and it has got a small hairline crack. The iPod is still in warranty. Will Apple repair it free of charge or would I have to pay for it?
    Thank You for your time.

    My guess is probably not. The only ones that can answer for sure are at the Apple Store. My an appointment for them to look at it and they will tell you your options.

  • Time Capsule Problem, I need your help! Please

    I have had my Time Capsuler for a few years now, and I believe that it just died. I tried all the resets and and this is what I get....
    When unplugged and then plugged back in the Status Light goes from Green to yellow for a short time then NO Light at all?
    My question? Is there anything I can do to get the info off it or is it Totally dead?? Or am I not doing or seeing something simple??
    Stuck without Music and Photos!
    Thanks

    Hello,
    This forum is for Windows Store developer app submission related issues. I would suggest reaching out to the
    Answers Forums for additional support, or submitting a request for
    technical assistance.
    -Jonathan
    Windows Store Developer Support
    Office Store Developer Support

  • I WANT FIND MY IPHONE  i am  chinese   , i   need your  help.

    I WANT FIND MY IPHONE  i am  chinese   , i   need your  help. PLEASE tell me  the iphone  ICCID  THANKS
    <Personal Information Edited by Host>

    Read this http://support.apple.com/kb/ht4061

Maybe you are looking for

  • SAP Net Weaver Version 7.0 Installation

    Hello Experts, Iu2019m totally new in SAP products and I would like to ask about the installation steps as the following: 1-Iu2019m planning to install the following SAP products in one server (16GB RAM, 1TB HDD, Win 2003): A-Oracle Database Version

  • CDR Datastreams -how to access the data?

    With apologies as I posted this to the Enterprise forum, but I wasn't 100% sure where this goes. I'm looking to create a Java class using IDL, that is then converted to CDR, and then access its CDR representation as a series of bytes. However, I'm no

  • Need info on UDCDCMD ioctl

    Does anybody know where I can find information on this ioctl? Can't find mention of it other than in patch reports. Thanks

  • Moved some files not LR won't startb up

    I've moved several files to different folders and now I can't get Lightroom to start--well, it starts but the spinning beach ball won't let me do anything whatsoever. Frozen fast on the library page and Lightroom is not responding. I've trashed every

  • Looking to speed up my internet

    Hi, I'm new to mac. I'm looking for a way to speed up my Internet connection. On Windows there were many programs I knew of but now I'm sort of on a learning curve and have no idea what software, shareware, freeware to trust. If anyone could give me