 |
|
| Part 2) Creating the Buttons |
| In this partt we're going to be creating the buttons for the drop down menu. |
 |
|
| Step 4. |
| Next, I've created a Button Symbol name 'mainButton', and given it the instance name of mainButton also. This button will be used to make the sub buttons appear. |
 |
|
|
| |
| Step 5. |
| For the sub buttons, I've created an MC called subButton, which contains 2 frames - One frame for it's mouse over state and one for mouse off. For the mouse over state I've made a white rectangle. |
 |
|
|
| |
| Step 6. |
| For the mouse over state I've made it peach. We'll use actionscript later to stop it so there's no need to place a stop action. |
 |
|
|
| |
| Step 7. |
| We'll be using actionscript to give each buttona name, so we need to add a text field on the sub button. On a layer above the rectangles, i've created a text field and given it a 'Var called 'txt' and made it. The text field will show what's ever assigned to 'txt', and we'll be using Actionscript to assign a name for each button. We also need to make the text field 'Dynamic' so that it's possible to do this. |
 |
|
|
 |
| Step 8. |
| Since we only have one subButton MC, and we're going to use Actionscript to create multiple instances of it dynamically. To make this possible the subButton MC needs to be given a "Linkage Identifier", so that the button can be referenced with Actionscript. You can bring up the window below by right clicking on the subButton MC from the Library. By clicking on the'Export for Actionscript' check box, the 'identifier' will automatically be filled by whatever the MC is called so leave it as that (subButton). |
 |
|
|
 |
|
|
|
|
 |