5 Replies Latest reply on Aug 5, 2009 11:25 PM by FangAvtar

    USA Map in flash


      Hi all,

      I want to create a usa map,it just showing the every state,same as http://flashden.net/item/flex-usa-map-component/41735.And when I mouseclick open a popup a show some data from database.

      But I am New abount map in flash.How can I proceed?Please advice me,if anyone know about this.As I think it can be made by flash, .fla file.

      Thanks in advance.

        • 1. Re: USA Map in flash
          kglad Adobe Community Professional & MVP

          make each state a movieclip or create a transparent movieclip button that will overlay each state.  assign each an instance name and assign each mouse handlers that use the data you load into flash from your database.

          • 2. Re: USA Map in flash
            FangAvtar Level 1

            Thanks kglad.But i don't know how to proceed.Actually I am new on flash.If you have any source code related this map,could you show me as a sample code.


            Thanks in advance.

            • 3. Re: USA Map in flash
              AttaBoy2 Level 4

              Another direction you might be interested in is learning and using the google maps API.  You need to use AS3 but if you can do that it's pretty cool.

              • 4. Re: USA Map in flash
                FangAvtar Level 1

                doghousejim i can implement the google map,but in my web page i want to see only usa map with state specific.as i provide the link.Please help me the .fla file if you have,its urgent.


                Thanks in advance.

                • 5. Re: USA Map in flash

                  If you want someone to do your work for you then you're better off paying that 5 dollars for the one you linked. Otherwise it's going to take a while and a bit of effort on your part to learn how to do that yourself.


                  First you're going to need a map that you traced or you have the right to use. Then, as kglad said, you're going to need to either split it into states and make each state a movieclip (convert to symbol in the right click menu) or you're going to have to make invisible movieclips to lay over each state. Each movieclip will need an instance name (which you assign in the properties panel) so you can apply event listeners for mouse events that do what you want. You'll also need to make a dynamic text box with an instance name so you can put some data on the screen. A lot of this stuff is really basic and you'll need to google tutorials to get help because it's a lot for one of us to cover.





                  instancenameofstate.addEventListener(MouseEvent.MOUSE_DOWN, MyFunction)
                  function MyFunction (e:Event){
                  MyTextBox.text = "This state is _____"






                  (sorry for the sassy website, haha)