A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Variable Popup Window

  1. #1
    Senior Member Leo Lima's Avatar
    Join Date
    Jul 2000
    Location
    São Paulo, Brazil
    Posts
    745
    Ok. First of all, thanks for reading. Second, I've tried search. Third, my problem:
    - I wanna open popup windows with variable widths/heights.
    - I have this code to open new windows:
    on (release) {
    getURL ("javascript:launchwin('content.html' , 'newwindow' , 'height=150,width=200')");
    }

    and this JS:

    <SCRIPT LANGUAGE="JavaScript">

    var newwin;

    function launchwin(winurl,winname,winfeatures)
    {
    newwin = window.open(winurl,winname,winfeatures);

    if(javascript_version > 1.0)
    {
    setTimeout('newwin.focus();',250);
    }
    }
    </SCRIPT>

    that came from http://www.moock.org/webdesign/flash...avascript.html.

    - Question: how can I launch variable windows with one simple code. Something using width/height as a variable instead of still code.

    Regards,
    Leo Lima

  2. #2
    Senior Member
    Join Date
    Sep 2000
    Posts
    1,159
    Put this in your button:

    on (release) {

    getURL ("javascript:window.open('http://www.flashkit.com','NameofWindow','width=800,height =600,top=0,left=0'); void(0);");

    }


    No need for any HTML file manipulation - just change the URL, window size and specs to your own and you are home free.

  3. #3
    Member
    Join Date
    Jul 2000
    Posts
    85

    Scrollbars

    Hi,

    Thanks for the good scripts. However, if i want to control whether there is scrollbars or not..how do i do it?

    how do i add in the windowParameters?

    PLS ADVICE!!

    Desparate...

    Sherraine.

  4. #4
    Senior Member Leo Lima's Avatar
    Join Date
    Jul 2000
    Location
    São Paulo, Brazil
    Posts
    745
    Thanks, but I want that variable.
    I need a script to open pic viewrs to my page. When you click the photo in flash I wanted to open a window to that photo. Problem is that the photos are dinamically loaded (loadMovie ("photo" + number + ".swf")) so the links should change that way too... Can you help me/


    Regards,
    Leo Lima

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