Flash Question
- Started
- Last post
- 5 Responses
- REDWOOD
Hi folks,
I have a function
button.onRelease = function(){
buttonPressed = true
}Now i wanna know how i can check that the button isn't pressed anymore to set the var to false.
Ow and i DONT want to use timeline shit, just one frame.
THNX
- MX_OnD0
if you're using onRelease you already know the button isn't pressed anymore.
or am I not understanding you?
- REDWOOD0
Ow my fucking god, so stupid from my site. onPress and onRelease, shit man, throw this post away. I'm ashamed.
- Stylus0
button.onPress= function(){
buttonPressed = true
}button.onRelease= function(){
buttonPressed = false
}
- rabattski0
no it keeps being true. what you can do is to check if buttonPressed=true or not. if it's not than it's true, if it's true you set it to false.
- rabattski0
aha, too late, what stylus said but you could throw it into 1 function instead of two.