Click to See Complete Forum and Search --> : javascript popup window from flash....


setmybabyfree
08-15-2006, 06:52 AM
Hi people just wondering if anyone can help me.
I want to create a new customizable popup window containing a SWF from clicking a button from the main flash website.

The code i've put in the new window <head> tag looks like this:

==============================

<script language="javascript">

function launch(page){
OpenWin = this.open(page, "Title", "toolbar=no, menubar=no, scrollbars=no, location=no, width=719, height=903, top=250, left=250" );
}
</script>

==============================

The code i've put on the flash button looks like this:

==============================

Xenlarge_mc.enlarge_mc.onRelease = function () {
getURL("javascript:launch('http://examplewebsite.co.uk/new/enlarged/amp_enlarged7.html')");
this.gotoAndPlay("go_back");
}

==============================

When the button is clicked, it plays the "go_back" state on the button but it doesn't launch the new window. Does anyone know why this is or does anybody have a better way of doing it. I could go for the easy

getURL(http://whatever.com", "_blank");

but I want to customize the window like in the above code. Any help on this would be amazing.

Thanks.