Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | RE: FLASH: Variables to pop up window... |
From: | F. John Sayyah |
Date: | Sun, 16 Jul 2000 22:08:01 +0100 |
You can try the following:
Step 1. Insert this JavaScript between the <head> and </head> tag of your
HTML page.
<script language="javascript">
function popWin( url, name, width, height, scroller ) {
var outStr = 'height=' + height + ',width=' + width;
if (scroller != 'true') {
outStr = outStr +
',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,
resizable=no';
}
else {
outStr = outStr +
',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,r
esizable=no';
}
window.open(url, name, outStr);
}
</script>
Step 2. Now, go to the button, in your Flash movie, which you wan't to
give the action to open a browser window. Click "Properties" for it.
Step 3. Assign a "Get URL" command for this button, containging the
following:
javascript:popWin('link.html','Title',322+16,450+16,false)
Step 4. You can make the appropriate changes in the javascript to control
how the popup looks, it should be fairly self-explanatory..
Close a browser popup window
Step 1. Insert this JavaScript in the head of your main page, DO NOT
MODIFY IT:
<script language="JavaScript">
function closeBrWindow() {
window.close();
}
</script>
Step 2. Now, go to the button, in your Flash movie, which you wan't to
give the action to open a browser window. Click "Properties" for it.
Step 3. Assign a "Get URL" command for this button, containging the
following:
javascript:closeBrWindow()
F.J. Sayyah
>From previous email
-----Original Message-----
From: ownerchinwag [dot] com [ownerchinwag [dot] com]On">mailto:ownerchinwag [dot] com]On Behalf Of Roxanne
Tuton
Sent: Sunday, July 16, 2000 12:17 PM
To: flasherchinwag [dot] com
Subject: FLASH: Variables to pop up window...
I want to bring up a screen in a pop up window but need to pass some
variables to the window when it pops up. I only need to pass them once. I
could pop up a _blank window but I want to have control over the size and
placement of the window. Here is my code what is wrong with it?
Get URL
("Javascript:window.open("Preview.asp","Preview","location=no,directories=no
,toolbar=no,menubar=no,status=no,scrollbars=no,resizable=no,width=550,height
=400,top=200,left=300")", vars=GET)
It just freezes my browser right now. How do I make it work?
Scott Jeppesen
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
www.flashforward2000.com
Produced by United Digital Artists and lynda.com
Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
shockwave.com and Electric Rain.
1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
Register before June 30 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
www.flashforward2000.com
Produced by United Digital Artists and lynda.com
Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
shockwave.com and Electric Rain.
1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
Register before June 30 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
Re: FLASH: Variables to pop up window..., avex
Replies
FLASH: Variables to pop up window..., Roxanne Tuton
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]