I have a TimerEvent that makes a shape's alpha change every second:
private function changeLightStatus(e:TimerEvent):void{
if (boolFlashOn == false){
light.alpha = 1;
boolFlashOn = true;
}else{
light.alpha = 0.5;
boolFlashOn = false;
}
No issues, it works fine, but I have a <s:TextArea/> underneath and when the user scrolls it the timer pauses and the shape stops flashing.
I've had a look at other questions and the answers say to make a new time thread so that they aren't connected, but apparently I can't do this in Flash Builder (Correct me if I'm wrong).
Thanks in advance
I've updated your tags to include Flex, but unfortunately I only ever use pure AS3 (no Flex tags).
So while you wait for a better answer you could try...
(1)
When you
addChild(light), also set as:light.mouseChildren = light.mouseEnabled = false;.(2)
Otherwise consider
EnterFrameinstead ofTimer:Then add supporting function
Let me know how it goes...