ExternalInterface class in ActionScript.
ExternalInterface ActionScript class simplifies things significantly.
ExternalInterface requires that you are publishing to Flash Player 8 or higher.
ExternalInterface class is in the
mx.external package. Therefore, you’ll generally want to import the class. The rest of the code in this recipe assumes that you’ve imported the class with the following code:
import flash.external.ExternalInterface; ...