Solved

button of image, hit area

Posted on 2007-03-21
3
190 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
Comment Utility
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
Comment Utility
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
Comment Utility
"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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

772 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

12 Experts available now in Live!

Get 1:1 Help Now