How can I ensure that the ThrottleEvent is supported by the current used browser?
I can see that they mention some browsers which support it:
The platforms that support throttling and pausing are currently the following: Flash Player Desktop Mac and Windows, AIR Mobile, and Flash Player Android. The following platforms do not dispatch the ThrottleEvent automatically because they do not yet support pausing or throttling: AIR for TV devices, AIR for desktop, and Flash Player Linux Desktop.
But I don't think that I can check specifically for each one of them (I guess there are edge cases too).
I'd like to do something like this:
package
{
import flash.display.MovieClip;
import flash.external.ExternalInterface;
import flash.events.ThrottleEvent;
import flash.events.ThrottleType;
public class TestThrottle extends MovieClip
{
public function TestThrottle()
{
var throttlingIsEnabled = ???
ExternalInterface.call('throttlingSupported', throttlingIsEnabled);
}
}
}
Do you know a way how I could achieve this?