A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: [RESOLVED] Customised Window

  1. #1
    Banned deepakflash's Avatar
    Join Date
    Aug 2007
    Location
    [Object not found]
    Posts
    1,160

    resolved [RESOLVED] Customised Window

    I am using this in my flash to open a new customised window:
    PHP Code:
    on(release){
    getURL("JavaScript:window.open('pf.html','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1015,height=640,left=0,top=0');");

    The problem i face is, when this new window opens the current window goes blank and my entire flash file is lost. So i will have to click BACK button in my windows to reload my old swf. How to avoid this? Is it possible to open my customised new window without affecting the previous one?

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    Give it a name ?
    window.open('pf.html','newWindow','toolbar=no...et c.)

    Also, the params toolbar etc.. are false by default, so you don't need to enter them unless you want one to be set to true. For example:
    resizable=1

    It's possible you'll get more help in the HTML/CSS/Javascript forum, since this is not an actionscript problem.

    gparis

  3. #3
    Banned deepakflash's Avatar
    Join Date
    Aug 2007
    Location
    [Object not found]
    Posts
    1,160
    thanks, i wil try that out

  4. #4
    Banned deepakflash's Avatar
    Join Date
    Aug 2007
    Location
    [Object not found]
    Posts
    1,160
    I tried that, but the result is the same

    I "did" post this in HTML/CSS/Javascript forum, but no replies.

  5. #5
    Banned deepakflash's Avatar
    Join Date
    Aug 2007
    Location
    [Object not found]
    Posts
    1,160
    Any help ??? PLZ

  6. #6
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    maybe void the javascript:

    PHP Code:
    getURL("javascript:void(window.open('pf.html', 'newwin', 'width=1015,height=640,top=0,left=0, scrollbars=1,resizable=0'))"); 
    Just guessing that with a height of 640 px you may need to enable scrollbars, if you have a no resize..

    gparis

  7. #7
    http://www.in3d.eu Kostas Zotos's Avatar
    Join Date
    Jul 2007
    Location
    Athens - Greece
    Posts
    408
    Hi,

    gparis is right..

    Try also something like this:

    PHP Code:
    var Url="http://www.google.com"  // The Url 
    var Name="myWin" 
    var Features="width=640,height=480,menubar=1,toolbar=0" 

    getURL"javascript:myWin=window.open('"+Url+"','"+Name+"','"+Features+"'); myWin.focus()"
    You get also the most reliable results, if try your file (or code) in an online (or local running) server...

    Kostas
    Last edited by Kostas Zotos; 06-28-2008 at 01:08 PM.
    K. Zotos online portfolio: http://www.in3d.eu

  8. #8
    Banned deepakflash's Avatar
    Join Date
    Aug 2007
    Location
    [Object not found]
    Posts
    1,160
    "void" made it work. THANKS Gp

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