dpru
01-23-2007, 11:06 PM
I got a quick question about the "Hit" frame on buttons.
I have a set of images that are images of different nations (Brazil, Argentina, etc.) I have converted each image into a button, because I want the user to be able to click on the country, and then information about that specific country will be displayed on the right side of the flash stage.
My dilemma: setting the clickable area for each image. By default Flash sets the clickable area to be the entire image (including empty white-space). I do not desire this.
I already know that I can edit each symbol and create a keyframe on the "Hit" frame, and then I can draw lots of nice little shapes that will become the clickable area for that button, but that is NOT what I want.
Drawing nice little beautiful shapes will not accurately portray the shape of each nation. I would like the clickable area of each button to be exactly outlined by the outline of each nation in the image.
In other words, if the button is an image of Brazil, I want all of Brazil to be clickable, no less, and no more. No whitespace should be clickable, but no part of Brazil should be left out.
If I just drew nice little shapes...they certainly would either cover too much or not enough of the image. Using the Lasso tool would give me better accuracy than drawing little shapes, but using the Lasso tool to outline about one-hundred nations is extremely tedious and slow.
There has to be a more simple way to accomlish this. So, how might I accomplish this?
I originally tried this: I decided to go into Photoshop and make the background of the image (all that whitespace) transparent. It didn't work. Flash didn't care what part of the image was declared as being transparent and what part was declared as being opaque. All of the image was still considered "clickable", even whitespace.
So...once again...how might I accomplish this? Any ideas?
I have a set of images that are images of different nations (Brazil, Argentina, etc.) I have converted each image into a button, because I want the user to be able to click on the country, and then information about that specific country will be displayed on the right side of the flash stage.
My dilemma: setting the clickable area for each image. By default Flash sets the clickable area to be the entire image (including empty white-space). I do not desire this.
I already know that I can edit each symbol and create a keyframe on the "Hit" frame, and then I can draw lots of nice little shapes that will become the clickable area for that button, but that is NOT what I want.
Drawing nice little beautiful shapes will not accurately portray the shape of each nation. I would like the clickable area of each button to be exactly outlined by the outline of each nation in the image.
In other words, if the button is an image of Brazil, I want all of Brazil to be clickable, no less, and no more. No whitespace should be clickable, but no part of Brazil should be left out.
If I just drew nice little shapes...they certainly would either cover too much or not enough of the image. Using the Lasso tool would give me better accuracy than drawing little shapes, but using the Lasso tool to outline about one-hundred nations is extremely tedious and slow.
There has to be a more simple way to accomlish this. So, how might I accomplish this?
I originally tried this: I decided to go into Photoshop and make the background of the image (all that whitespace) transparent. It didn't work. Flash didn't care what part of the image was declared as being transparent and what part was declared as being opaque. All of the image was still considered "clickable", even whitespace.
So...once again...how might I accomplish this? Any ideas?