|
<< Back to Working
Code in HTML page:
function popup(mylink, windowname)
{
if(!window.focus)return true;
var href;
if(typeof(mylink)=='string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=550,height=400,menubar=no,resizable=yes,scrollbars=no');
return false;
}
Code in Flash button:
on(release)
{
import flash.external.*;
ExternalInterface.call("popup", "/interactiveSimulation.html", "flash");
}
|