Flasher Archive

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


Subject: Re: Browser Window Size
From: Colin Moock
Date: Mon, 13 Apr 1998 22:45:14 +0100

John,
I was looking for the best method of launching a new window a while
ago. Your summary of what is supported (browsers, platforms) is the
central issue. After trying a few different approaches, I finally came
to these conclusions:

1) Using FSCommand, we exclude Win3.1 and Mac 68K. Too many exclusions
to be practical. Also, I encountered a bug using FSCommand where the
window wouldn't open.
2) Using the JavaScript protocol, we exclude IE 3.0 & IE 2.0. Still a
drag.

So,
3) Using a hidden frame, we can call normal HTML URLs from Flash and
let "onload" do the work of calling the function that launches the
window.

Seemed to me that a hidden frame was the lesser of three evils.

Chris (and anyone working on opening windows...), if you want to see
all my tests and documentation for window launching, visit:
http://colinmoock.iceinc.com/web/flash/
The pages at that URL demonstrate the three methods with real movies
and contain all the code you'd need to do it. Feel free to "borrow".
(Technique #3 could also be used to set different window sizes on each
page without having to do the extra bit of code to make the height and
width dynamic variables.)

John, if others are asking for window opening information, feel free to
add the above URL to the FAQ. (And hey jd...maybe you could check out
the bug that's demonstrated at the same URL).

Cheers,
Colin



flasheratshocker [dot] com,Internet writes:
>Hi Chris,

>> The movie has 12 button options, and each option needs to open a new
>> window that contains a particular web page from my companies Internet
>> site. Oh, and of course I need to be able to control the size of the
>> new window.

>There is no easy solution for your problem.
>It combines Flash techniques to send commands from Flash, with
>JavaScript programming techniques such as creating and calling
>functions. Dreamweaver might be helpful for solving part of this
>construction.

>> If so, again I hate to be dense,
>> but what is the syntax for the Flash movie?
>First you must decide how to communicate from Flash to the outside
>environment. You have three choices JavaScript: protocol, FSCommand and
>standard HTML page opening. You must evaluate the limitations of each
>system as it relates to your particular needs to dtermine what is the
>best course. I and others have posted several things on both the
>JavaScript: protocol and FSCommand. It sounds like you need to reduce
>your requirements or get outside (paid) help.

>See http://www.macromedia.com/support/flash/ts/documents/tn4160.html
>~~~~~~~~~~~~~~~~~~~~~~~

>FSCommand is one of two ways that a Flash 2 movie can send commands
>outside of the Flash movie (other than loading a URL page in a window).
> 1) FSCommand works with Netscape's LiveConnect and ActiveX enabled
>browsers.
> 2) JavaScript: (The JavaScript Protocool) works for Netscape and MSIE4
>using Win 95/NT. It doesn't workk with MSIE 3 Win95/NT.

>Neither of these work for all Flash capable browsers.

>Both FSCommand and Javascript commands are placed on the Network URL
>line of a Frame or Button 'Get URL' Action.
>Using FSCommand and Javascript Protocool you can communicate from Flash
>to JavaScript/VBScript.





------------------------------------------------------------------------
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: Browser Window Size, Chris_Pickett
  Re: Browser Window Size, John Croteau

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