Solved

button of image, hit area

Posted on 2007-03-21
3
192 Views
Last Modified: 2007-03-24
I'm bringing in an image into Flash and making it a button, but want the outline of the image to be the hit area.  Unfortunately, when the image is brought in, it comes in with a square border.  How can I make the hit area of just the outline of the image only?
0
Comment
Question by:COwebmaster
  • 2
3 Comments
 
LVL 11

Expert Comment

by:sibgig
ID: 18767675
put your image into a 1 frame movie clip.

create a button instance, put the movie clip instance in the 'up' , 'over' , 'down' and 'hit' states. in the 'hit' state select your 'rectangle tool' choose your stroke color and make your fill color none, and then click and drag from corner to corner over your image in the 'hit' state. it should 'snap' to the image edges. there is your outline. delete the image from the 'hit' state leaving only the stroke. use properties to thicken the stroke if needed
0
 

Author Comment

by:COwebmaster
ID: 18767759
I tried but in the hit area because the stroke and fill colors are none, nothing shows up.  Also, the image is in the shape of the state of Nevada so it's an odd shaped outline.
0
 
LVL 11

Accepted Solution

by:
sibgig earned 500 total points
ID: 18768465
"I tried but in the hit area because the stroke and fill colors are none, nothing shows up."
*************
sounds like your stroke color is set to nothing (diagonal red line)
make sure your have your stroke color set to a color.
*************
"the image is in the shape of the state of Nevada so it's an odd shaped outline."
*************
in that case just use the pen tool to outline the state.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question