Is this a bug with 3.5 or did something change that I should know about? I tested with desktop and Android. Should I be concerned or just stick with 3.4 while the bugs are worked out?
EDIT:
It looks like the problem is that Event.ACTIVATE does not work anymore. When I place the addEventListener(Event.ENTER_FRAME,myFunction); outside, Everything works normally. The code below works with Air 3.4 .
stage.addEventListener(Event.ACTIVATE, fl_Activate);
stage.addEventListener(Event.DEACTIVATE, fl_Deactivate);
function fl_Activate(event:Event):void
{
addEventListener(Event.ENTER_FRAME,myFunction);
stage.frameRate = 24;
}
function fl_Deactivate(event:Event):void
{
removeEventListener(Event.ENTER_FRAME,myFunction);
stage.frameRate = 1;
}
OK. I simply added
above the first function and it works ok now.