You don't want this text acting like text so you're going to turn it into a graphic. Go to Modify -> Break Apart.
This will leave your text looking like this:
Repeat the same action Modify -> Break Apart. This turns your text into graphics AND eliminates the need to embed your fonts (neat!).
Go back to Modify -> Convert to Symbol. You'll get this window:
What we're doing is creating a "click area". If we didn't add this, it would be difficult or even impossible for the user to move their mouse over the physical area of our text. Use the rectangle tool and create a rectangle covering our text. It doesn't matter what color.
With this shape still selected, go to your Properties window and change the Alpha to 0%.
Now go back to your main timeline. Make sure your movie clip is selected and go back to your properties window and give it an instance name. In this case we named it clickBtn.
stop();
clickBtn.onRelease=function()
{
//add stuff that happens when clicked
gotoAndStop("play");
}
In this case I told my button to go the frame labeled "play".
And you now have a cool button!
[download] .fla source








No comments:
Post a Comment