Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Flash: popup windows
From: Helen Triolo
Date: Wed, 16 Aug 2000 19:48:32 +0100

Paul,

I found this in the Flash Q&A in my sig file, in the Javascript/FS
section (thanks Sarah L, recently returned, and Robert B, recently
vanished..?)
----
subject: open page in main window from child window
Contributed by: Sarah Lamont (slamontat2mtc [dot] com), 4/11/00

Q: How do you open a page in the main browser window from a movie in a
child window?

A: Use this javascript code in your baby window:
function updateParent(newURL) {
opener.document.location = newURL
}
and this in your flash button:
"javascript:updateParent('newpage.html')"

Followup question:
How do I set the focus back to the main window? The page is opening in
the main window but my baby window (which is actually 85% x 65% of the
screen size) stays in focus.

Answer from Robert Bleeker:
function updateParent(newURL) {
opener.document.location = newURL;
timoutID=setTimeout("focusMain()",100)
}
function focusMain(){
opener.document.focus();
clearTimeout(timeoutID)
}
I have found that you need to give the scripts a little time between
executes. Especially if you are trying to replace the current window
content.
---- end of post

Looking forward to seeing your site when it's done (or working anyway)
-- sounds like a good way to do s'th similar I've been working on...

Regards,
Helen
---------------------------------------------------
Flash Q&A archive � http://i-technica.com/flashlist

Paul Willoughby wrote:
>
> Who can help with my weak Java and HTML? I have made a little Flash
> interactive map for a site where everything else is html. When the user
> clicks on the link to the flash map in the html page, the Flash movie opens
> in a new window. In the Flash movie I have links to other URL's in the html
> site. When I click on these I want the new html page to open in the original
> browser window (i.e. the one that spawned the Flash movie). I thought this
> would be a simple matter of setting the window to _parent in the Get URL
> action. This doesn't seem to be working...anybody got any ideas why? What
> did I miss?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Flash: popup windows, Paul Willoughby

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]