tags:

views:

44

answers:

1

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
i have try ti . my IE enables popup
which version of flash you are using?
Marc V
and AS2 or AS3?
Marc V
i am using AS2 of flash