Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | RE: FLASH: Open New Browser Window... |
| From: | waldo |
| Date: | Fri, 16 Jul 1999 08:47:35 +0100 |
You're just too late.... or just in time.
Last week i have been trying to do that to.
You've got to use a FS Command that calls a javascript code in your HTML
document.
There are some recourses on the net where you can find how to do it.
My code is at http://intensive.care.nl:81/flash_nl
You've can use that code if you want to. Te settimeout is the make sure
that NS will open the new window to. It's a workaround, but else NS
won't work.
The javascript code (make sure that you give your movie the name and id
"movie");
<SCRIPT LANGUAGE=JavaScript>
<!--
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function care_DoFSCommand(command, args) {
var careObj = InternetExplorer ? parent.care :
parent.document.embeds[0];
if(command=="newWindow"){
openNewWindow(args)
}
}
function openNewWindow(page){
setTimeout("window.open(page, 'NewWindow',
'height=440,width=640,location=no,menubar=no,resizable=yes,scrollbars=ye
s,status=yes,toolbar=no')", 1);
}
// Hook for Internet Explorer
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 &&
navigator.userAgent.indexOf("Windows") != -1 &&
navigator.userAgent.indexOf("Windows 3.1") == -1) {
document.write('<SCRIPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('Sub care_FSCommand(ByVal command, ByVal
args)\n');
document.write(' call care_DoFSCommand(command, args)\n');
document.write('end sub\n');
document.write('</SCRIPT\> \n');
}
//-->
</SCRIPT>
In the Flash movie you've got to do the following:
- Double Click on your button
- In the action tab choose "On MouseEvent"
- Choose "release" as event
- Click on the + top add a new action, FS Command
- In the command field, type "newWindow" (without the ")
- In the args field, type the url
You've got to define the size off the new window in the javascript.
If you've got questions, just ask them. There are more people in this
group who know about this. (John Croteau, Colin Moock).
Tips:
- http://www.moock.org/webdesign/flash/fscommand/index.html
-
http://www.moock.org/webdesign/flash/launchwindow/launchwindow-nourl.htm
l
- http://www.moock.org/webdesign/flash/launchwindow/launchwindow.html
- http://www.erols.com/dlivesay/FSCommand.html
Waldo
-----Original Message-----
From: owner
Cleatus3
Sent: donderdag 15 juli 1999 23:04
To: flasher
Subject: FLASH: Open New Browser Window...
I have created a series of buttons that when clicked should open up a
new
browser window, specifically a window that is 205 pixels wide and 350
pixels
in height that has no scrollbars or any other navigation buttons from
the
browser, I am going to use them as navigation palettes. The palettes are
going to be used for links to recipe listings and will be done in just
regular HTML so it can easily be updated by the client. I know I need to
use
a javascript in HTML to open a new window but I am not sure exactly how
I
call it out in flash to do that type of action, any help would be
greatly
appreciated.
Thanks in advance.
Cleatus
------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manager
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-manager
------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manager
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-manager
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

