forcing onrelease behavior
March 10th, 2010
Filed under: enart.xn--i1uv10c.com | edit
I've tried
button.onRelease;
and
button.onRelease();
but it does not call the function.
function pressthebutton(){
//do something
}
button.onPress = function(){
pressthebutton();
}
//then you could later say for example:
pressthebutton();
//or
loadmovieorsomething.onLoad = function(){
pressthebutton();
}
Yes, I'll do this if I can't figure out the direct call to the button's onRelease. Thanks!
function pressthebutton(){
//do something
}
button.onPress = function(){
pressthebutton();
}
//then you could later say for example:
pressthebutton();
//or
loadmovieorsomething.onLoad = function(){
pressthebutton();
}
onRelease is almost always an actual function ;)
You shouldn't have any problems calling it, post your code :)
button.onRelease = function()
{
trace("Yeah! You clicked me!")
}
/Mirandir
#If you have any other info about this subject , Please add it free.# |