Phill
07-08-2004, 08:56 AM
Hi all, I am very new to Flash and apologise if anyone has asked this before.
I have an app I am trying to make which is as follows;
It has two layers. On layer 1 is an imported world map as a jpg. On layer two I have traced out regions of it as vector shapes with the pen tool and converted them to symbols (buttons). This is so I can alter the colour of different regions, so for example africa might have a semi-transparent overlay of yellow to show whose control it is under at this point in time i.e. the yellow player. It is like a board game, think Risk or Diplomacy, the map is just a visual representation of who has what at the end of each turn. All I want it to do is create the semi transparent coloured overlays on top of the underlying world map to show which players own which territories.
At present I am defining new color objects and attaching them to each region with the setTransform command. This seems to all be pretty straightforward and works just fine. What I would really like to do though is have those values fed into each region by a text file, so I could just change the text file and let the app update itself, and this is where I am stuck. Any help would be appreciated.
I have an app I am trying to make which is as follows;
It has two layers. On layer 1 is an imported world map as a jpg. On layer two I have traced out regions of it as vector shapes with the pen tool and converted them to symbols (buttons). This is so I can alter the colour of different regions, so for example africa might have a semi-transparent overlay of yellow to show whose control it is under at this point in time i.e. the yellow player. It is like a board game, think Risk or Diplomacy, the map is just a visual representation of who has what at the end of each turn. All I want it to do is create the semi transparent coloured overlays on top of the underlying world map to show which players own which territories.
At present I am defining new color objects and attaching them to each region with the setTransform command. This seems to all be pretty straightforward and works just fine. What I would really like to do though is have those values fed into each region by a text file, so I could just change the text file and let the app update itself, and this is where I am stuck. Any help would be appreciated.