Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: pop-up javascript window is screwing up |
From: | Muzak |
Date: | Sun, 7 Jan 2001 09:13:04 GMT |
To open a popup window from a flash movie you need a Javascript and a getUrl action (attached to a button or keyframe).
The javascript goes in the head section of the HTML page the movie is in.
<script language="JavaScript">
<!--
function openWindow(theURL,winName,features) {
window.open(theURL,winName,features);
}
//-->
</script>
Assign the following Action to a button or a keyframe (you can copy and paste it directly in the Flash ActionScript panel):
getURL ("javascript:openWindow('your_page.html','windowName','width=640,height=480');")
Replace 'your_page.html' with the name of the popup window. The 'windowName' is similar to a frame name in HTML, so you can use it
as a target to open other popup windows in the same browser window. Use a different winName if you want to open other popup windows
in a new browser window.
hth,
Muzak
----- Original Message -----
From: "Natalia Usselman" <nusselmansmednet [dot] com>
To: <flasherchinwag [dot] com>
Sent: Sunday, January 07, 2001 6:24 AM
Subject: FLASH: pop-up javascript window is screwing up
> This line below used to work for me beautifully.
> from Flash movie there is an action
>
> getURL
> ("javascript:window.open('crybaby.html','cards','width=650,height=400,left=5
> 0,top=50',location.href='#')");
>
> Now it does pop-up the proper page, but replaces the content on the parent
> page with white background and one word - [object]
> I did not touch the page, except I am viewing it with IE 5.5 and Flash 5
> plug-in now.
> Did anyone else encounter the same thing? Any suggestions?
> Natalia.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> flasher is generously supported by...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> flashforward2000 and the Flash(tm) Film Festival
> November 27-29, 2000, LONDON, National Film Theatre
>
> Produced by United Digital Artists and lynda.com
> -Sponsored by Macromedia, Adobe Systems and Apple Computer
> -http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
> Register before November 10 and save �200
> http:// 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
November 27-29, 2000, LONDON, National Film Theatre
Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
FLASH: ITs OK, Andrew Le Sage
Replies
FLASH: pop-up javascript window is screw, Natalia Usselman
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]