i typed my code into macromedia flash mx, what now?

  • Thread starter Thread starter ralphus
  • Start date Start date
R

ralphus

Guest
do this:

1. draw a shape on stage.
2. select it and press F8 to convert it to a symbol
3. make it a button
4. give the button an instance name of theButton (thats the name the actionscript code is referencing in frame 1)
5. Put all the code you have in frame 1 eg

theButton.onRelease = function() {
trace("Ouch!!");
}

6 press control enter to test the movie and in the output window you will see the word Ouch.

What you probably havent done is give the button on the stage an instance name.
 
i typed the code into action-frame (where it is supposed to be according to the book i am reading) now how do i activate it into my interactive button?

here is the code:

// Don't click Me Program
// Demonstrates button clicks

theButton.onRelease = function() {
trace("Ouch!!");
} // end enterframethis

what do i select or do now to put it into the "interactive button?
 
Back
Top