Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: javascript and flash |
From: | John Brzys |
Date: | Fri, 1 Oct 1999 19:10:27 +0100 |
> hello everyone!
> I was just wondering if there is a way to combine javascript with flash.
In
> particular, what I am trying to do is use the javascript code to open a
> specifically sized new page when you click a button. Is there any way to
make a
> button in the .swf file contain this code
You are going to receive several different answers to this question
all of them will accomplish what you ask.
I like to code the JavaScript function on the html page where the swf is
embedded. this is where all of the window properties can be defined.
I then call the function within the embedded swf file using a button and the
get URL action
put the below script in the head of your html doc.
(you need to point to the htm doc you plan on using):
<SCRIPT LANGUAGE="JavaScript">
<!--
function openwindow() {
window.open("yourHTMLdocument_here.htm","thewindow","width=320,height=240");
}
//-->
</script>
then in you button get URL action use the following:
javascript: openwindow()
jb
------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-managerchinwag [dot] com. Problems to: helpchinwag [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-managerchinwag [dot] com
Replies
Re: FLASH: FLASH (OT) giff's and the Law, krow
FLASH: javascript and flash, Sarah Lamont
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]