A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: how to make interactive map with info display?

  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    6

    how to make interactive map with info display?

    I have something in mind like this:
    http://www.heritage.org/applications/schoolchoice

    so each time, when the mouse is over each state, different information should show up in the right side box with different information.

    How should I implement this? should I draw the right side information box as picture, and then write a script to ask information to display when mouse is on certain state, is this a movie clip?

  2. #2
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    Make each state, into a button, by marking it, pressing F8, changing to Button, and pressing OK. Then, use Text Tool to make a long text field where you want the changeable information to appear, click on the newly created text field, open Properties Panel (CTRL+F3), and changing from Static Text to Dynamic Text, and in the Instance name field, type something like info_1. Then, click on a button once, and use this code on it:

    Actionscript Code:
    on(release){
        info_1.text = "State 1";
    }

    Repeat this with every button wit different information!
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  3. #3
    Junior Member
    Join Date
    Oct 2011
    Posts
    6
    a 26 year old girl (if still can be called) says thanks, and I will take a try...

  4. #4
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    SORRY!!!!

    Don't use that code, use this instead:

    Code:
    on(rollOver){
        info_1.text = "State 1";
    }
    a 26 year old girl (if still can be called) says thanks, and I will take a try...
    No problem
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  5. #5
    Junior Member
    Join Date
    Oct 2011
    Posts
    6
    For example, for one country say portugal, I created this roll over-display effect, so I guess I have to repeat for the other countries?
    As in that link, I put a explanation part goes with the base map. So this part always appeared when mouse is not over the country. However, when I repeated creating other countries' as buttons, and then editing on over down hit bar, the new information shows on top of the old explanation. how can I solve this problem? thanks

  6. #6
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  7. #7
    Junior Member
    Join Date
    Oct 2011
    Posts
    6
    Quote Originally Posted by Nig 13 View Post
    thanks a lot, I attached my flash to your hotmail email, pride outing thing, please give me some comments if you have time.

    Best,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center