Ensure that throttling is supported in browser AS3


How can I ensure that the <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/ThrottleEvent.html" rel="nofollow">ThrottleEvent</a> 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?


As you mentioned in your question :


The platforms that support throttling and pausing are currently the following: Flash Player Desktop Mac and Windows, AIR Mobile, and Flash Player Android. ...


And as you are writing for Flash Player, so you have just to verify if it's Flash Player Desktop Mac or Windows to know if throttling and pausing are supported, and you can verify that using <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/Capabilities.html" rel="nofollow">flash.system.Capabilities</a> especially <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/Capabilities.html#version" rel="nofollow">Capabilities.version</a>, <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/Capabilities.html#os" rel="nofollow">Capabilities.os</a> and <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/Capabilities.html#playerType" rel="nofollow">Capabilities.playerType</a>.

Hope that can help.


  • How to get CPU usage in flash?
  • Using the Menu, Back, Home buttons with AIR for Android, Flash CS6
  • URL detection adobe air desktop widget
  • How do I increase font size in RStudio Help pane?
  • Error getting audio input device sample rate: '!obj'
  • c++ Socket select and receive problem
  • How do you download a image/png data URI in Edge?
  • Controlling tab space in a using CSS?
  • Xcode launch app error in Mac 10.9 Mavericks
  • Remove border around the color in an input[type=color] in Firefox?
  • Overriding window.location on Webbrowser Control
  • Using let variables in a lambda in Scheme
  • TCameraComponent and TVideoCaptureDevice do not initialize in Win32
  • How to make a user wait with Laravel
  • cordova build android throws error on Ubuntu 12.04
  • Where in the relevant specification is it documented that some comments in a SQL script are, in fact
  • Android - HorizontalScrollView will not scroll all the way
  • Unique SMS sender id?
  • jQueryMobile, Ajax Navigation, and MVC
  • Which browser have this strange user agent? (IOS device)
  • Generating anchors with PyYAML.dump()?
  • Mocha throws unexpected token error for ES6 object spread operator
  • Get Currently Active User in Android
  • Failed to find version-tag string. File must be updated
  • Alamofire and Reachability.swift not working on xCode8-beta5
  • netsh acl setting (need alternative method - registry settings?)
  • how to set variables in a php include file?
  • Is playing sound in Javascript performance heavy?
  • Disable Enter in editText android
  • Cannot resolve symbol 'MyApi'
  • Recording logins for password protected directories
  • If I include Java 8 in my Android app does that affect which devices it will work on?
  • swift auto completion not working in Xcode6-Beta
  • Sony Xperia Z Tablet not found by adb
  • Excel - Autoshape get it's name from cell (value)
  • Javascript convert timezone issue
  • Why is the timeout on a windows udp receive socket always 500ms longer than set by SO_RCVTIMEO?
  • Release, debug version and Authorization Google?
  • How do you join a server to an Active Directory (domain)?
  • Exception on Android 4.0 `android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode)`