Flasher Archive

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


Subject: Re: FLASH: Child call back to parent in JavaScript? Please help.
From: Sarah Lamont
Date: Thu, 6 Apr 2000 18:10:52 +0100

hi John,

> In other words, when window A opens window B, how can I create a function so
> that window B can communicate back to window A (in this case, change the URL).
> Can the child call back to the parent in JavaScript?
>
> Or can this even be done?

Yes, this is fairly easy to do.
use this code in the button in your flash movie and it should work:
"javascript:updateParent('newpage.html')"

I've never used it in an swf, but i don't see why it wouldn't work.


> Is there a way to change the size of a flash window (opened by a JavaScript
> function) when the user clicks a button. In other words the window opens at
> height=450, width=300, but I want it to maximize when the user clicks a button.
>
> Can this be done?

I've never done this, but I think someone else already answered it for
ya. Just for future reference, some of my favorite javascript resource
sites are:
http://www.jsworld.com/
http://dynamicdrive.com/
http://developer.irt.org/faq.htm
http://javascriptsearch.com/
http://www.kimmuli.com/tips.html#top

(the last one is other scripts too)
Maybe these will help you with any other problems you encounter!
Hope I helped,

�arah

--
"When I die, I hope it can be said of me that I plucked a thistle and
planted a flower where ever I thought a flower would grow." -Abraham Lincoln

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
the new Flasher list books section, check it out
at http://www.chinwag.com/flasher/books.shtml
send suggestions for inclusions to helpatchinwag [dot] com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Child call back to parent in Java, John Prince

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