<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <meta http-equiv="content-language" content="en-gb"/> <meta name="mssmarttagspreventparsing" content="true"/> <style type="text/css"> object { width:800px; height:500px; display:block; } object:focus { outline:none; } </style> <script type="text/javascript"> function openWindow() { if( window.open( "some.site.com", "windowname", "options" ) ) { return true; } return false; } </script> </head> <body> <object id="flash" type="application/x-shockwave-flash" data="movie.swf"> <param name="movie" value="movie.swf"/> <param name="wmode" value="opaque"/> </object> </body> </html>
import flash.external.ExternalInterface; function myFunc():Void{ var result:Boolean = Boolean( ExternalInterface.call( "openWindow" ) ); if( result ) { // popup launched } else { // popup failed to launch }}
import flash.external.ExternalInterface; function myFunc():Void{ var url:String = "http://www.ultrashock.com"; var windowName:String = "mywindow"; var windowOptions:String = "width:800,height:600"; ExternalInterface.call( "window.open", url, windowName, windowOptions );}