Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copied Buttons

Status
Not open for further replies.

EricKlassen

Technical User
Aug 18, 2006
3
US
I have a very basic understanding of the flash timeline, with less of the actions coding. I've bought a template from Template Monster and now I'm finalizing some tweaks to it. It's all ready to go except for the buttons.

I was able to get one button to work exactly like I wanted, so I copied that button onto 9 separate layers to get 10 buttons (all the same at this point). Once in their places and tweens set, I thought I could change out the type quite easily to label the new buttons. I also thought I could change the destination url easily. This does not seem to be so easy.

Two Questions:
1.All the buttons change when I make any changes to one, and I can't figure out how to change just the text. It seems like the button copied onto the new layer, but the symbol area of that layer is empty. How do I get these buttons to act independent from one another?

2.To change the destination url action script, I've looked in the button frames, the symbol the button is animated in, and the main timeline. The only actions I can find are stop(); which are in the symbol animation. When I try to open actions for the button, there is a message that says "cuurent selection cannot have actions applied to it." Where do I go to find this action script?

Any help if very appreciated,
Eric Klassen
 
When you copy the buttons the text uses the same tween, before changing the text you could right click the text and choose duplicate, then change it...
The action script usually is on the timeline. It sends actions to the buttons using the instance names...
 
That really helped. I've got all the buttons working individually, re-tweened with the correct text.

I've searched the timeline for action script for the buttons and this is all I could find:

_root["item"+_root.button].gotoAndPlay("s1");
_root.link=_root.button;

Is there something I'm missing? I don't see anything here that resembles url info, much less anything for an individual button. I thought I will see a small "a" in the timeline if there is action script. I see only a few.

Thanks,
Eric
 
What are the instance names of the buttons?
You are trying to open a URL by clicking the buttons or to make something to the flash page?
 
brutteforcce,

Thanks for your help. I've figured it out. I needed to click on the button image in the symbol, then right click to open it's actions. The link information was there.

Eric
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top