Flasher Archive

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


Subject: Re: FLASH: Javascript help
From: Cheri Harder
Date: Tue, 14 Mar 2000 05:15:28 GMT

Hmmm.... looks like all sorts of ways to achieve the result... I wonder
which is more reliable? I'm doing a hybrid, of sorts, of what you (Pete)
were suggesting. I'm putting "javascript:function(args)" in the GetUrl
rather than the FSCommand, and it is finding the function in my HTML page
just fine. Howsomever, I really think I saw a post ages ago about this not
being a reliable solution due to some browser not handling things the
same....likely IE4.5 on Mac?

~~~~Cheri Harder~~~~~
charderatawsolution [dot] com
Advantage Web Solution
www.awsolution.com
----- Original Message -----
From: "Pete Benedict" <peteatbennyd [dot] com>
To: <flasheratchinwag [dot] com>
Sent: Monday, March 13, 2000 6:55 PM
Subject: Re: FLASH: Javascript help


> Cheri,
>
> The way I understand this is done through JavaScript in the HTML of a page
is
> with the FSCommand, in which case, in addition to the newWindow()
function, in
> the page you also need to add the filename_DoFSComand function, which is
used to
> route your particular command to the proper function in the page:
>
> function putNameOfYourSwfHere_DoFSCommand(command, args)
> {
> if ( command=="openWindow" ) {
> newWindow();
> }
> }
>
> and then in your button you have something like:
>
> On (Release)
> FS Command ("openWindow")
> End On
> (you could also pass the URL as in argument of the FS Command, say, if the
URL's
> going to change ...)
>
> However, you probably don't need to go to such length is you just want to
pop a
> new browser window from a button in Flash.
> Just use the pseudo-JavaScript right in the button:
>
> On (Release)
> Get URL
>
("javascript:window.open('http://members.home.com/advantagewebsolutions/sing
les/thisisit.htm","windowname",toolbar=0,scrollbars=0,resizable=0,height=350
,width=600');")
>
> End On
>
> Hope this helps,
>
> Pete Benedict



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: Javascript help, Cheri Harder

Replies
  FLASH: Javascript help, Cheri Harder
  Re: FLASH: Javascript help, Pete Benedict

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