Okay, so it's late and i'm struggling a little bit with this code bit i'm working on. I'm a novice programmer and all blah blah, i would really appreciate some guidance. I'm working on a chunk of code for a game and i'm trying to get the shop to drop down using the following code:
shopWindow.addEventListener(MouseEvent.CLICK, shopopen);
function shopopen(event:MouseEvent)
{
var shopopentween:Tween = new Tween(shopWindow,"y",Strong.easeOut,-123,173,24);
}
And it opens perfectly!
however, i could not get it to close. I've tried using booleans to tell when its open or closed but that did not work. I attempted to remove the EventListener, and add a second one, but that didn't work either. How can i apply a tween to an object on click, then a different tween on the next click?