|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
actions to a specific layer
Hello everyone.
First of all, sorry for my English, I'm bad using technical language but I'll try my best I'm working with a world map in the main stage, and some countries are films that have two layers, one with text -the country's name- and the other with the country itself. Every country in the main stage have an asociated button, that when you press it changes the color of the related film. But of course, it changes all the film's color, including the text with the name. I would like to know if there's a way to relate the action attached to the button -colorCountry=new Color(zonaInactiva); colorCountry.setRGB(0x2DC7E2);- just to one of the layers of the film, the one with the country itself. Thank you in advantage ![]() |
|
#2
|
|||
|
|||
|
there's no layer-specific actions. you gotta give each instance a name, and refer to those instances in your actions.
but holy cow! there are a whole lot of instances in your world map. maybe someone else can come up with a better solution. |
|
#3
|
|||
|
|||
|
Well, It's a pity!! Thank you a lot for answering, dkkz
![]() |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > actions to a specific layer |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|