How to make a button click make text appear elsewhere on the screen

I have a map of the US and  each state has a rollover that changes the color of the state...what i  am trying to figure out is how to click on the state and have text  appear to the side of the US map and have that text stay up until the user clicks on another state. Any help will be greatly appreciated. Thanks

Good... keep working at it... I was already preparing the following for you, but if you pursue your own solution you will learn more and become more comfortable with working with Flash.
If you want to look at what I was going to offer to possibly streamline what you end up with, or just have trouble, here it is...
Select one of your states and give it an instance name in the properties panel... let's say you pick Utah and you name the instance "utah"  For example sake, let's say you also do the same for Ohio (naming it "ohio").
Create a dynamic textfield where you want the text to be displayed and assign it an instance name, let's say you name it... "stateInfo"
Create a new layer for actionscript so that you can assign some code for teh states.  In that layer, in the frame where the states are, select the empty keyframe, open the Actions panel, and place all of the following code there...
var utahInfo = "Whatever text you want to display when you click Utah";
var ohioInfo = "Whatever text you want to display when you click Ohio";
utah.addEventListener(MouseEvent.CLICK, showInfo); // assigns a listener to the button
ohio.addEventListener(MouseEvent.CLICK, showInfo);
// for the above you will do the same for the rest of the state buttons... they can all share the following event handler function because it uses their names to identify the text variable that will be assigned to the textfield
function showInfo(evt:MouseEvent):void {
     stateInfo.text = this[evt.currentTarget.name+"Info"];

Similar Messages

  • My ipad will not start.  It is 1 year old...I have tried holding the two buttons and nothing..I have it connected to my desktop and it will make a ding noise but nothing comes up on the screen.

    My ipad will not start.  It is 1 year old...I have tried holding the two buttons and nothing..I have it connected to my desktop and it will make a ding noise but nothing comes up on the screen.

    Frozen or unresponsive iPad
    Resolve these most common issues:
        •    Display remains black or blank
        •    Touch screen not responding
        •    Application unexpectedly closes or freezes
    http://www.apple.com/support/ipad/assistant/ipad/
    iPad Frozen, not responding, how to fix
    http://appletoolbox.com/2012/07/ipad-frozen-not-responding-how-to-fix/
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    Black or Blank Screen on iPad or iPhone
    http://appletoolbox.com/2012/10/black-or-blank-screen-on-ipad-or-iphone/
    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
     Cheers, Tom

  • How to code on button click how to increase row height in iphone/ios/uitableview

    how to code on button click how to increase row height in iphone/ios/uitableview
    - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;
        pppp=[postText objectAtIndex:indexPath.row];
        CGSize maxSize = CGSizeMake(280, MAXFLOAT);//set max height
         CGSize cellSize = [pppp sizeWithFont:[UIFont systemFontOfSize:14]
                           constrainedToSize:maxSize
                               lineBreakMode:NSLineBreakByWordWrapping];//this will return correct height for text
        // return  cellSize.height+115;
        BOOL isSelected = [self.selectedIndexPaths containsObject:indexPath];
        CGFloat maxHeight = MAXFLOAT;
        CGFloat minHeight = cellSize.height+115;
        CGFloat constrainHeight = isSelected?maxHeight:minHeight;
       CGFloat constrainWidth  = tableView.frame.size.width - 20.0f;
        NSString *text       = hChildPost[indexPath.row];
        CGSize constrainSize = CGSizeMake(constrainWidth, constrainHeight);
         CGSize labelSize     = [text sizeWithFont:[UIFont systemFontOfSize:15.0f]
                                constrainedToSize:constrainSize
                                    lineBreakMode:NSLineBreakByCharWrapping];
       // return MAX(labelSize.height+75, 100.0f);     return MAX(labelSize.height+75,cellSize.height+115);    
    i used this code but it crashed app

    On what line did it "crashed app" and what was the exception? The line within this function, not in main.m. If you haven't figured this out yet: view the debugger output, try single stepping, and/or add NSLog messages in the function.

  • Sorry I'm new to Final Cut Express. How do you make an image (jpeg file for example) move across the screen slowly as I've seen in many films.

    Sorry I'm new to Final Cut Express. How do you make an image (jpeg file for example) move across the screen slowly as I've seen in many films.

    Neil from bristol wrote:
    … How do you make an image … move across the screen …
    by setting KEYFRAMES
    (read, what FC/e's built-in Help-feature tells about it)
    resize and set pic to start position
    set keyframe
    move playhead in timeline to desired length
    set pic to end position
    set keyframe …

  • TS3274 my ipad won"t turn off. there is a small window with an email text in it and it appears frozen on the screen. How can i turn the ipad off?

    my ipad won"t turn off. there is a small window with an email text in it and it appears frozen on the screen. How can i turn the ipad off?

    Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps BEFORE doing the reset.

  • When i click on my external hard drive the screen goes dark and a msg pops up saying i have to shut down my computer by holding the power button and then restart it. when i do that i get the same result every time. it worked perfectly last night..

    when i click on my external hard drive the screen goes dark and a msg pops up saying i have to shut down my computer by holding the power button and then restart it. when i do that i get the same result every time. it worked perfectly last night..

    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Ifou don't see any reports listed, but you know there was a panic, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ System Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar.
    There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of reports. A panic report has a name that begins with "Kernel" and ends in ".panic". Select the most recent one. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot.
    If you don't see any reports listed, but you know there was a panic, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.

  • On my MacBook Pro, sometimes when I click to close tabs in Safari the button will not work.  I have to click on some other part of the screen and then it will.  This happens in other programs like Word/Excel for changing font, etc. Solution/Suggestions?

    On my MacBook Pro, sometimes when I click to close tabs in Safari the button will not work.  I have to click on some other part of the screen and then it will.  This happens in other programs like Word/Excel for changing font, etc. Solution/Suggestions?

    Start up in Safe Mode.
    http://support.apple.com/kb/PH4373

  • How can I combine a lot of text and images on the same screen?

    How can I combine a lot of text and images on the same screen?  I can get a couple of words on the screen with a graphic but not 10 lines.  I need 10 lines on the page with the image. 

    Priscilla,
    I routinely combine 10 lines of 36 pt bible or lecture text to a suitable background using Boris Title 3D.
    Many times the text is too long to fit the screen using Boris, so I devide it into 2 or more parts with no transition between sections.
    In my case, the text is on the screen as the speaker quotes them.
    David

  • HT4436 On my touch I have an iCloud backup message asking me to check my settings, when I click on settings nothing happens and the screen goes black. It will not allow me to turn my touch on or off. What should I do to rectify this?

    On my touch I have an iCloud backup message asking me to check my settings, when I click on settings nothing happens and the screen goes black. It will not allow me to turn my touch on or off. What should I do to rectify this?

    Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430

  • When I click on certain website like youtube the screen goes blank and will to open. What do I need to do?

    when I click on certain website like youtube the screen goes blank and will to open. What do I need to do? I really need help

    1. System Preferences >  Flash Player > Advanced >  Delete  All
         Press the "Delete All" button
         Install Adobe Flash Player.
        http://get.adobe.com/flashplayer/
        Follow the prompts.
        Quit Safari.
        Restart computer. Relaunch Safari.
    2.  Allow  Plug-ins
        Safari > Preferences > Security
        Internet Plug-ins >  "Allow  plug-ins"
        Enable it.
        Press " Manage Website Settings" button for more options.

  • HT4623 i was doing a software update downloading ios 6.1 and the phone froze half way through the download i tried to restart the phone by pressing the power button and the home button but its just a apple on the screen. what can i do to fix this??

    i was doing a software update downloading ios 6.1 and the phone froze half way through the download i tried to restart the phone by pressing the power button and the home button but its just a apple on the screen. what can i do to fix this??

    See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...
    Be sure to Follow ALL the Steps..
    But... if the Device has been Modified... this will Not necessarily work.

  • Installed iTunes on Win 7. Everything is there except when I hook up my phone the mene has all the active buttons, but there's no lettering on the screen to see what they are

    Installed iTunes on Win 7. Everything is there except when I hook up my phone the mene has all the active buttons, but there's no lettering on the screen to see what they are

    (Apologies for butting in wiclee.)
    The effect is usually caused by trouble with the Segoe UI fonts on your system. Unfortunately it's a bit trickier to deal with on Windows 7 systems than Vista or XP. (The "Vortical" instructions which can fix it for almost all folks on Vista and XP aren't applicable to Windows 7.)
    Try having a look through the following (unfortunately very long) topic. It contains a lot of information on the Windows 7 variants of this, and possible methods for fixing the various Segoe UI-related issues that might be in play:
    iTunes 10.1 Missing Text

  • How much does it cost to replace a iPod touch 5g. the screen is completely broke and digitiser and theres no front and back camera??

    how much does it cost to replace a iPod touch 5g. the screen is completely broke and digitiser and theres no front and back camera??

    Apple will exchange your iPod for a refurbished one for $99 for 16 GB 5G and $149 for the other 5Gs. They do not fix yours. Note the older 16 GB 5G has only a front camera and the other 5Gs (16 GB released late last month and the 32 and 64 GB 5Gs have both front and back cameras)
    Apple - iPod Repair price                                    
    A third-party place like the following maybe less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens         
    Replace the screen yourself if you are up to it
    iPod Touch Repair – iFixit                  
    Identifying iPod models

  • How come everytime i add an image to my pages document the screen goes blank and then closes the app?

    How come everytime i add an image to my pages document the screen goes blank and then closes the app?

    Hi Fayed11,
    Welcome to Apple Support Communities.
    You may find this article useful for troubleshooting any apps on your iPad that aren't behaving as expected:
    iOS: Troubleshooting applications purchased from the App Store
    http://support.apple.com/kb/ts1702
    Have a great day,
    Jeremy

  • How can I make a button (click) animate an object

    Basically I want to make a button (nextscreen) which animates a rectangle (movie1) once it's clicked.
    So far it doesn't work, anything I try gives me errors
    for example I typed
    nextscreen.onPress();
    function fl_AnimateHorizontally_6(event:Event)
        Movie1.x += 10;
    But it gives me the error
    Scene 1, Layer 'Actions', Frame 1, Line 12
    1061: Call to a possibly undefined method onPress through a reference with static type flash.display:SimpleButton.
    Apparently once I select my button and hit f9, I'm supposed to see the symbol of the button at the bottom but I can't so all my script is on a seperate layer called Actions and is all over the place
    So I try to use code snippets and when I run my program with this code;
    nextscreen.addEventListener(Event.ENTER_FRAME, fl_AnimateHorizontally_7);
    function fl_AnimateHorizontally_7(event:Event)
        Movie1.x += 10;
    My object animates but without me clicking the button
    so what do I need to add so only when I click the object animates
    Regards

    If that's the case then you need to have clicking the button initiate a repeating function, which you can achieve using an ENTER_FRAME event listener.
    nextscreen.addEventListener(MouseEvent.CLICK, fl_AnimateHorizontally_7);
    function fl_AnimateHorizontally_7(event:MouseEvent)
         nextscreen.removeEventListener(MouseEvent.CLICK, fl_AnimateHorizontally_7);
         this.addEventListener(Event.ENTER_FRAME, moveHalfway);  
    function fl_AnimateHorizontally_7(event:Event)
         if(Movie1.x <stage.stageWidth/2){
                Movie1.x += 10;
          } else {
                this.removeEventListener(Event.ENTER_FRAME, moveHalfway);  

Maybe you are looking for

  • Adobe Reader 9.4.2 installiert -plötzlich update Hinweis 10 X

    Hallo habe die obige Version installiert. Wenn ich dort auf automatische Updateprüfung gehe, ist nichts aktuelles. Nun habe ich eine PDF Anlage geöffnet und plotzlich kam eine Update / Installations Aufforderung irgendwas mit 10..X Was könnte das gew

  • How to get the First day in a Week in a Fiscal Year

    Hi guys, I have a Requirement to calculate the First day in  a Week  in a Fiscal year . The FM GET*FIRST_DATE and all are for Calender year. Is there any FM to calculate the First in a Week in a Fiscal year. For eg. They will give 200826. In this 26

  • Database design for multiple users/connections

    Hello All, My questions are about overall design/strategy of the database. We are using Oracle 9.2.0 on AIX as a backend for a ColdFusion application. When deployed, the CF app and Oracle will be running on our customer's server, with the customer's

  • Why does my iPad say plug into iTunes

    When I turn my Ipad on it has a symbol saying plug into iTunes, does anyone know why this is?

  • Desktop Manager show's an error!!

    I am using Desktop manager version 5, when ever i connet my blackberry to my PC and open Desktop mananger it ask for an update for a APPLICATION LOADER! weill i press yes and then it downloads till 5.07mb and stops and says "please try again later" i