Solved

button of image, hit area

Posted on 2007-03-21
3
195 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 11

Expert Comment

by:Tom Ray
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:
Tom Ray 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

729 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