I can't figure out why this button isn't working. I have an air iOS document running actionscript 3.6. When it opens, it runs this code:
then thisCode:var someDate:Date = new Date();
var dayNum:uint = someDate.getMonth();
{
gotoAndStop (dayNum + 1);
}
Once it gets to that frame, I try to run the buttonCode:var Aug:Date=new Date();
gotoAndStop(Aug.date, "August")
But nothing happens when I publish and hit the button.Code:Right.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_2);
function fl_MouseClickHandler_2(event:MouseEvent):void
{
gotoAndStop(currentFrame + 1)
}
-There's a next frame for it to go to
-I've tried duplicating the button and the action script in a new air document and the button worked
-I tried replacing the "gotoAndStop" in the button with a trace and nothing was retuned.
Really running out of ideas of what could be wrong..... is it the actionscript preceding the eventlistener that's causing it not to respond?

