Ask a Question related to Macromedia Flash Sitedesign, Design and Development.
-
kyiyer #1
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
-
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... -
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"} -
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... -
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... -
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... -
rlc5611 #2
Re: Flash Newbie Complex Problem
Take a look at [url]www.sierrabravocharlie/USAStats.html[/url]
Something like that?
rlc5611 Guest
-
rlc5611 #3
Re: Flash Newbie Complex Problem
sorry, that should be [url]www.sierrabravocharlie.com/USAStats.html[/url]
rlc5611 Guest
-
kyiyer #4
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
-
rlc5611 #5
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
-
kyiyer #6
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
-
rlc5611 #7
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



Reply With Quote

