FORUMS: list search recent posts

linking symbols together

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Daniel Lindvall
linking symbols together
on May 3, 2010 at 7:04:30 pm

So I'm making a map in flash and what I want to do is that when u hover over a province on my map I want the province to light up and that a text on the side to light up as well.

I made the map highlighting by just converting my map into different buttons and from there just doing a tint on the mouse over.

Now to my question do I have to add the text in every single map piece or is there some easy way to link 2 symbols to each other?

Return to posts index

Adam Ashby
Re: linking symbols together
on May 5, 2010 at 4:33:20 am

One possible way is make each map piece and text a MovieClip with 2 frames. Frame 1 being the out state, frame 2 being the over state with a stop action on both frames. Then code something like this:

map1.sister = text1;
text1.sister = map1;

map1.buttonMode = true;
text1.buttonMode = true;

map1.addEventListener(MouseEvent.MOUSE_OVER, over);
map1.addEventListener(MouseEvent.MOUSE_OUT, out);
text1.addEventListener(MouseEvent.MOUSE_OVER, over);
text1.addEventListener(MouseEvent.MOUSE_OUT, out);

function over(e:MouseEvent):void{;;

function out(e:MouseEvent):void{;;

Adam Ashby
mutli-media artist

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved