This is what I get in the output window:
Statement must appear within on handler back_button.onRelease =function () {
can anybody help on this? what is wrong?
What statement do you get the error on?
If you don’t know, then post your code and I’m sure someone will figure it out.
The problem is that your statement is not within an on handler.
When putting code directly on a button you don’t use dynamic event handlers (which is what you have in your first post), you use static event handlers. Like this… [AS]on (release){
//do this
}[/AS] Dynamic event handlers are for dynamically assigning the events via actionscript (usually on a frame).
thank you guys. can anybody check my file?
The problem is exactly what I stated in my last post. You have actions on your button in the lower left corner, but you have them in a dynamic event handlers instead of a static event handler and that is why you are getting the error.
Also, you don’t need the onLoad handler on the frame, when the frame is hit those actions are called anyway so the onLoad doesn’t do anything.
could you write exactly what I have to change on these buttons? Thank you
You can’t replace “back_button.onRelease = function() {” with “on (release) {” by yourself :h: