Solved

button of image, hit area

Posted on 2007-03-21
3
191 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

932 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now