In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

Chapter 43 Example 1

Get Adobe Flash player
by actionscriptbible 10 Feb 2010
/**
 * Copyright actionscriptbible ( http://wonderfl.net/user/actionscriptbible )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/djFD
 */

package {
  import com.actionscriptbible.Example;
  import flash.external.ExternalInterface;
  
  public class ch43ex1 extends Example {
    public function ch43ex1() {
      if (ExternalInterface.available) {
        trace(ExternalInterface.call("function(){return navigator.userAgent}"));
      }
    }
  }
}