Open new browser window

Hi

I’ve been trying to get my original flash movie to open up a new one in a separate browser window with no toolbars, menubars etc and to a specific size.

First of all I assigned this action to the button in my original flash file:

on (release) {
getURL(“javascript:Launch(‘http://www.mydomain/gallery.htm’)”);
}

then in the html page that the original flash sits I have:

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function Launch(page) {
OpenWin = this.open(page, "Gallery", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,width=451,height=472");
}
// End -->
</SCRIPT>

This I copied direct from a tutorial from this site which suggests putting this file in the BODY tags. However when I try it out, I click on the button in the flash file and it opens up a new page but with nothing in it (i.e. not the requested html page) and just a copy of my getURL entry

javascript:Launch('http://www.mydomain/gallery.htm’)’

which is dispayed in the location bar.

Anyone got any idea what might be going on?!

try
on (release) {
getURL(“javascript:Launch(‘http://www.mydomain/gallery.htm’)”);
}

TD

sorry thats what i meant

on (release) {
getURL(“javascript:Launch(‘http://www.mydomain/gallery.htm’)”);
}

is what I’m using in the flash and it still aint working for some reason!

Flash will only be able to use Javascript functions when it is exported with the – (forgot the name) option. It is much easier writing the javascript in Flash itself. Try this:

[AS]
on(release){
getURL(“java**script:window.open(‘http://www.yourserver.com/yourpage.html’, ‘anything’, config=‘toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,width=451,height=472’);”)
}
[/AS]

aha!

That worked except it also loaded another browser window with nothing in it behind it, any ideas why this is happening?

Have you seen this?:
http://www.kirupa.com/developer/mx/centered_popup.htm

Thanks

That worked a treat…