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.
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.