Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | FLASH: FLASH3 - FSCommand - Navigator 4.5 |
| From: | Andrew Ayres |
| Date: | Fri, 16 Jul 1999 20:54:38 +0100 |
Hi Flashers,
I need to open a popup HTML window from a Flash3 button's FSCommand action.
It works in IE4, but not fully in Navigator 4.5.
Is there a bright spark out there who can tell me why the Flash scripting,
below, will work in Internet Explorer 4+ but only partly in Netscape
Navigator 4.5 ?
The "AFlashMovie.swt" Flash3 button action is an FSCommand, with cmd=OpenWin
(the arg string is blank)
I can get Netscape 4.5 Flash3 buttons to call Javascript functions. In fact,
Navigator 4.5 will popup the alert box
alert("openwin activated") in the example below - but it won't do the
"window.open" method.
The HTML below is a frame in a nested frameset. But I've got Netscape 4.5 to
call up an alert box in another frame's function, so I know I'm getting the
windows and parents named properly.
I know it's not a fundamental error in my Javascript function, because it
works when called from a test html button - <input type="button" id="button"
name="button" value="test button" language="javascript"
onclick="openWin('index.html','new');">
Any help appreciated.
regards, Andrew
--------------------------------------------
<HTML>
<HEAD>
<script language="JavaScript" >
function openWin(url, name) {
alert("openwin activated")
popupWin = window.open(url, name,
"scrollbars,resizable,width=320,height=300");
}
</script>
<%if Session("BROWSERTYPE") = "IE" then %>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub movie_FSCommand(ByVal cmd, ByVal arg)
call movie_DoFSCommand(cmd, arg)
end sub
-->
</SCRIPT>
<%end if%>
<script language="Javascript">
<!--
function movie_DoFSCommand(cmd, arg)
{ if (cmd=="OpenWin") openWin('index.html', 'new');}
</SCRIPT>
</HEAD>
<BODY>
<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
CODEBASE="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0
,0"
HEIGHT="110" WIDTH="490" ID="movie">
<PARAM NAME="Movie" VALUE="../assets/flash/AFlashMovie.swt">
<PARAM NAME="Quality" VALUE="High">
<PARAM NAME="Loop" VALUE="0">
<PARAM NAME="Play" VALUE="1">
<PARAM NAME="Scale" VALUE="ExactFit">
<PARAM NAME="SAlign" VALUE="L">
<EMBED name="movie" SRC="../assets/Flash/AFlashMovie.swt" SWLiveConnect=true
BORDER=0 HEIGHT=110 WIDTH=490>
</OBJECT>
</BODY>
</HTML>
--------------------------------------------
------------------------
Andrew Ayres - andy
Web Developer
The Pool.Net Agency
Bridge House, St. Pegas Road, Peakirk
Peterborough PE6 9BW, UK
Tel: +44 (0)1733 253723
Fax: +44 (0)1733 253724
------------------------------------------------------------------------
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]

