hi I am developing a project in which i need to open popup on clicking to flash. but problem is that how can i do it. once i have tried but it open on fire fox but not on intrnet explorer.
A:
First make sure IE isn't disabling PopUps
For AS3 use this code:
var path = "http://yourdomain.com/yourpage.html";
myButton.addEventListener(MouseEvent.CLICK, clickHandler);
function clickHandler(event:MouseEvent):void {
var request:URLRequest = new URLRequest("javascript:openPopup('" + path + "');");
navigateToURL(request, "_self");
}
and in HTML page add follwoing javascript:
<script language="JavaScript">
<!--
function openPopup(url)
{
ww = 500;
hh = 500;
window.open(url,"","width="+ww+",height="+hh+",scrollbars=yes");
}
-->
</script>
Marc V
2009-07-01 10:46:24
i have try ti . my IE enables popup
2009-07-01 10:50:40
which version of flash you are using?
Marc V
2009-07-01 10:54:57
and AS2 or AS3?
Marc V
2009-07-01 10:55:35
i am using AS2 of flash
2009-07-01 11:42:53