Flash MX. Don't know about Smart Clip or Components (unless I just don't know the name.)
Main Topics
Browse All TopicsI am constantly creating Flash sites that contain a number of buttons that act the same way but have different text on them. For example, I Have created a button that is gray text, that turns red in the over state, then black on click. I have about 90 buttons to create with different text. Right now, I create a Gray graphic (graphic1) that I lace it in the first frame of a button (button1). I change the tint on the Over frame to Red, and on the Down frame to Black. Then I duplicate "graphic1", name it "graphic2", change the text. Then duplicate "button1", rename it "button2" and swap each frame with graphic2. I do this over and over to get the 90 buttons done. There must be an easier way to do this! Please help.
Also, if the button has a box around it, is there a way to automate the resizing of the box to fit the new text in each of the buttons?
Thank you in advance.
Ozzie
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Well, i could create an example for you, but maybe would be hard to understand unless you read something here: http://www.flashcomponents
Here's a simple layman's solutions.
Why don't you simulate a button with a movieclip, ie. create 3 frames each with the up/over/down states of the button.
then create a new layer with a dynamic text field, with an instance name.
then create another layer ontop of that with an invisible button with the code:
on (rollOver) {
gotoAndStop(2);
}
on (rollOut) {
gotoAndStop(1);
}
on (press) {
gotoAndStop(3);
}
to simulate the button actions.
then on the movieclip put a simple onclipevent ie.
onClipEvent(load) {
this.btnLabel.text = "whatever";
}
Business Accounts
Answer for Membership
by: negatyvePosted on 2003-11-06 at 14:51:42ID: 9697520
1. are you using flash 5 or mx?
2. if first yes, do you know anything about smart clip? if second, about components?