Copy link to clipboard
Copied
I'm currently using flash CS6 and Actionscript 2.0 t create a point and click game.... I'm a little stuck on a button that won't really work for what I want it to. I'd be happy to e-mail it to anyone willing to help. Thanks a whole heck of a lot in advance!
There is nothing wrong with that code although you might want to use onRelease insread of onPress.
Place a trace() function call on the function to see if the function is being called.
Copy link to clipboard
Copied
Show the code for the problemed button and explain what it should do, what it does that it shouldn't, and its environment.
Copy link to clipboard
Copied
Basically, I have a seperate layer for buttons, actions, backgrounds, and effects.
The button, optimally, would advance the player to the next environment (frames on the timeline.) The code I used to target it is as follows:
LookUp.onPress = function(){
gotoAndPlay(42)
}
I have a few other buttons that work using the code I outlined, just different variables.
Copy link to clipboard
Copied
There is nothing wrong with that code although you might want to use onRelease insread of onPress.
Place a trace() function call on the function to see if the function is being called.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now