Computer Science Canada saving buttons |
Author: | Martin [ Wed Mar 03, 2004 12:05 am ] |
Post subject: | saving buttons |
Suppose I have a bunch of buttons that have the same effects (up down over etc.) and animations, but different text and (obviously) doing different things when they're hit. Now, how can I create a bunch of these buttons without redoing the tweaning for each of them? |
Author: | zylum [ Thu Mar 04, 2004 12:12 am ] | ||
Post subject: | |||
you can make a prototype which controlst the buttons and the various parameters control the actions and the text of the button (the button being a movieclip)... for example: make a movieclip with 3 frames, 1 for no action, one for over and one for mousedown... in each of these frames add the action: stop() ; remember that these frames can contain other movieclips (to make animations) or what ever else you want ie jpgs... then make a text box with the var name 'name'. now in the main timeline on the first frame add this code:
using the protoype parameters you can add other custom actions too. it all depends on what you want to do. does that sort of help? |