You have to call the _javascript_ function in the getURL action.

getURL("_javascript_:newBrowserWindow('videos2.html')");

Check the archives at chattyfig for more flash info.
http://chattyfig.figleaf.com/flashcoders-wiki/index.php?FlashCoders
<http://chattyfig.figleaf.com/flashcoders-wiki/index.php?FlashCoders>

-----Original Message-----
From: Ben Doom [mailto:[EMAIL PROTECTED]
Sent: Friday, April 02, 2004 1:34 PM
To: CF-Talk
Subject: Re: OT: Flash pop-up help

You can use the getURL() function to call _javascript_ in the enclosing
page, just like you would out of an anchor tag.

--Ben

Bryan Stevenson wrote:

> Hey All,
>
> I want to open a window from in side a Flash movie using _javascript_.  So
far
> all I've been able to do is open the window using the getURL() function
with
> a target of "_blank".  This gets me the window I want, but when I use
> "window.close();" in the pop-up window to allow users to close it, that
> annoying "The web page you are viewing is trying to close this window.  Do
> you want to close this window?" alert window.
>
> My assumption is that because the pop-up was not opened via _javascript_
that
> it whines when closed with _javascript_.  All my other pop-ups that are
popped
> from a regular web page (not from inside Flash) using _javascript_ do not
show
> this alert when being closed via _javascript_.  Of course it may also have
> something to do with the pop-up being launched from inside Flash.
>
> Any thoughts would be greatly appreciated!!
>
> Cheers
>
> Bryan Stevenson B.Comm.
> VP & Director of E-Commerce Development
> Electric Edge Systems Group Inc.
> t. 250.920.8830
> e. [EMAIL PROTECTED]
>
> ---------------------------------------------------------
> Macromedia Associate Partner
> www.macromedia.com
> ---------------------------------------------------------
> Vancouver Island ColdFusion Users Group
> Founder & Director
> www.cfug-vancouverisland.com
>
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to