Flash Newbie Complex Problem

Ask a Question related to Macromedia Flash Sitedesign, Design and Development.

  1. #1

    Default Flash Newbie Complex Problem

    Hello

    Have a project that I am told is best done with Flash but do not know where to
    start. I want to put a country map with state boundaries on my website. Each
    state will be coloured differently. The color of each state needs to change
    according to data in a MS SQL Server 2000 database. So, I need a way of
    addressing each state as a separate entity but show one country map. I want to
    be able to dynamically change the background colour of each state depending on
    the data in the database. I will also want to put one or two small images on
    each state and maybe a few characters of text.

    Please help. Greatly appreciate it.

    Thanks very much

    Iyer

    kyiyer Guest

  2. Similar Questions and Discussions

    1. Problem with complex XML
      Hi! I have a problem that for some will be trivial, but for me it is getting on my nervs. All the tutorials and tips I have seen around about AS2...
    2. Flash - C# Web Service parsing complex result
      Hi, I have C# web service which returns return new object { int , string} for example return new object {55,"some text"}
    3. complex data types from PHP to Flash
      Does anyone know of any really easy and effective ways to move complex data types from PHP into FLASH and vice-versa? A while back I made an...
    4. newbie: "complex" query
      Hi all, I've a problem writing a VB 2005 application that interacts with a mysql database that stores the correspondence with our customers. I...
    5. Flash too complex for Director?!?
      I'm creating a CD-ROM in Director, and I am using flash MX for most all my interface as well as most all the animation. In my flash file, I have some...
  3. #2

    Default Re: Flash Newbie Complex Problem

    Take a look at [url]www.sierrabravocharlie/USAStats.html[/url]

    Something like that?
    rlc5611 Guest

  4. #3

    Default Re: Flash Newbie Complex Problem

    sorry, that should be [url]www.sierrabravocharlie.com/USAStats.html[/url]
    rlc5611 Guest

  5. #4

    Default Re: Flash Newbie Complex Problem

    Hi

    Thanks - yes something like [url]http://www.sierrabravocharlie.com/USAStats.html[/url] -
    but I want the map to auto-update from a database - with the state colors
    changing depending on the some values in a database. For example, the
    background color for the state of Texas could change 10 times in a 24 hour
    period - depending on incoming data. From the site I can see that it is,
    indeed, possible to target a particular state within a country map and shade it
    in a given colour. I'd want certain details to be displayed with the
    mouse-over but the background color will not change with the mouse-over - the
    background color of each state wil be determined by the data in my SQL Server
    database.

    How do I proceed to create a map like this?

    Thanks very much, indeed

    Iyer

    kyiyer Guest

  6. #5

    Default Re: Flash Newbie Complex Problem

    It is pretty simple really. Make every state a movie clip. Edit each state
    movie clip and add a layer and duplicate the frame with the state shape in it
    in the empty layer. Make one of the state shapes a button and make the state
    shape in the other layer a movie clip. I recommend you give the one that is a
    movie clip a generic instance name such as "statearea" this will make it easier
    to target later. On the layer that is the button, edit the button and move the
    first frame to the fourth frame so that all you have is a hit area in the shape
    of the state. Leave the other frames of the button empty. The state shape that
    is the button will give you functionality for mouse events and the one that is
    a shape you can target and color with action script.

    If you want to be a little more efficient on memory, rather than have the hit
    area of the button a shape, you could copy the shape that you made a movie clip
    in the other layer into the hit state of the button and delete the shape once
    the alignment is right. Maybe I am not explaining that part well. If not,
    sorry. It is not really required anyway.

    The outline of the USA and state boundaries can be on a layer all by itself in
    the main timeline above the state movie clips if you have no need to alter the
    boundaries in any way.

    The above is all you need technically, the rest is action script.

    rlc5611 Guest

  7. #6

    Default Re: Flash Newbie Complex Problem

    Hello

    God - that sounds pretty complicated. :-) But I will try and come back with more.

    Thanks very much for your efforts.

    Best wishes

    Iyer
    kyiyer Guest

  8. #7

    Default Re: Flash Newbie Complex Problem

    It is not complicated - just repetitive. If you like, you can send me an email at [email]robertleecox@hotmail.com[/email] and I will send you a sample of what I am talking about.
    rlc5611 Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139