;

PDA

Click to See Complete Forum and Search --> : v7-AS3 Koolmoves url open in new window


jarnold
06-04-2009, 08:06 AM
Hi,
I want to have a button that opens a new browser window in full screen. I've read this from an earlier post from 2006.

getURL("Javascript:window.open('http://www.koolmoves.com','fs','fullscreen=yes')");
from Steve

I this the best way with KM7?
thanks
ja

byweb
06-04-2009, 03:02 PM
Why Javascript ? Do you want to open a window or link to URL ?.

if you want to do the second, in KM7 and AS3 look this code:

var OtherSiteURL:URLRequest = new URLRequest("http://www.koolmoves.com");
function GoUrl(event:MouseEvent):void
{
navigateToURL(OtherSiteURL, "_blank");
}
YourBotton.addEventListener(MouseEvent.CLICK, GoUrl);


but if you want really open window in KM7 with AS3 it is this code:

var js:URLRequest = new URLRequest();
js.url = "javascript:window.open('http://www.koolmoves.com', 'fs', 'fullscreen=yes'); newWindow.focus(); void(0);";

function openPopUp(evt:MouseEvent):void
{
navigateToURL(js, "_blank");
}
YourBotton.addEventListener(MouseEvent.CLICK, openPopUp);

It is all !

jarnold
06-04-2009, 11:48 PM
Thanks for the reply but I'm only looking at the single line in the Koolmoves "geturl" option rather than a seperate code. I want the button to open a new browser window in full screen. Currently it opens the IE browser window but then I have to make it full screen.
ja