I don’t know if this is the right way to do it, but I’m trying to make a function, that can be started with the press of a button, but I can’t quite get it to work, heres my code:
If I intead of using the button.onPress=function uses the onEnterFrame = function() - It works the way it’s surposed to - BUT I want to be able to start and stop the function with the press of button!
Will make a MC move up and down depending on the mouse move (_ymouse). But how do I set a starting _y value for the MC? Cause no matter where I place the MC, it starts with a _y value of 0…