Flasher Archive

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


Subject: RE: FLASH: Multiple FSCommand parameters
From: Matthew Doyle
Date: Wed, 1 Sep 1999 20:30:15 +0100

Brian:

Here is an email I posted earlier this week to help you out:

I was able to figure out a way to get it working. For those of you that are
having the same types of problem (trying to open customized windows with
both IE & Netscape), here is how I opened new windows (with customized
settings like no scrollbars, set to a certain size, etc...):



FS Command to use in your Flash doc:

On (Release)
Get URL
("javasript:launchwin('YOUR_URL/FILE.HTML','height=600,width=800,scrollbars=
yes,and_any_other_customized_settings_you_want_seperated_by_commas')")
End On




Now for the actual Javascript, which must be placed in the html document at
level 0 of your movie. DO NOT REPLACE ANYTHING. Copy exactly as typed
below:



<!--

<SCRIPT LANGUAGE="JavaScript"> var javascript_version = 1.0;</SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.1"> javascript_version = 1.1;</SCRIPT>


<SCRIPT LANGUAGE="JavaScript">

var newwin;

function launchwin(winurl,winname,winfeatures)
{
//This launches a new window and then
//focuses it if window.focus() is supported.
newwin = window.open(winurl,winname,winfeatures);
if(javascript_version > 1.0)
{
//delay a bit here because IE4 encounters errors
//when trying to focus a recently opened window
setTimeout('newwin.focus();',250);
}
}
</SCRIPT>

Voila! You have as many buttons as you want using the FS Command that will
open new windows. AND...you can define each new window in the FS Command so
you don't have to make any changes to the Javascript. Works great in both
Netscape & Internet Explorer!

Matthew Doyle
3d animator, illustrator,
& flash web designer
http://www.starwars-rpg.org
lucidatwt [dot] net


------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


Replies
  Re: FLASH: Multiple FSCommand parameters, John Croteau
  RE: FLASH: Multiple FSCommand parameters, Matthew Doyle

Replies
  FLASH: Multiple FSCommand parameters, Brian McHarg

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