A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Koolmoves url open in new window

  1. #1
    Member
    Join Date
    Aug 2008
    Posts
    78

    Koolmoves url open in new window

    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

  2. #2
    Senior Member byweb's Avatar
    Join Date
    Apr 2007
    Location
    Andalucia (spain)
    Posts
    267
    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:
    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:
    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 !
    Last edited by byweb; 06-04-2009 at 02:49 PM.

  3. #3
    Member
    Join Date
    Aug 2008
    Posts
    78
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center