Flasher Archive

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


Subject: FLASH: FS Command Browser talk
From: Joe Dames
Date: Tue, 17 Oct 2000 21:08:38 +0100

I want to make one browser pop a new window. The new window will have a text submittal field.
When it is submitted, it passes the text to the original window. Works great! (code below for html w/ JS)

Here's the catch:
**I now want the second window to be done in flash.**

My problem is that I'm not sure how to handle the FS command structure in F5 to enable the .swf
command the browser to pass the data back from the .swf to the original window.




Here is the actual HTML with the JS.

(original window)
--------------------------------------------------------------------
<HTML>
<HEAD>
<TITLE>Master of all windows
</TITLE>
<SCRIPT LANGUAGE="JavaScript1.1">
var myWind
function doNew() {
if (!myWind || myWind.closed) {
myWind = window.open("opened.html","subWindow","HEIGHT=200,WIDTH=350")
} else{
myWind.focus()
}
}
</SCRIPT>
</HEAD>
<BODY>
<FORM NAME="input">
This field will be filled from an entry in another window:<br>
<INPUT TYPE="text" NAME="entry" SIZE=25>
<hr>
<INPUT TYPE="button" NAME="Storage" VALUE="hit me!"
onClick="doNew()">
</FORM>
</BODY>
</HTML>
------------------------------------------------------------------------------



(the browser that will pass the text back to the parent browser)
-------------------------------------------------------------------------------
<html>
<head>
<title>New Window on the Block</title>
</head>
<body>
<form>
<input type="button" value="Get back in the main window!-->>">
<input type="text" size="39" onchange="self.opener.document.forms[0].entry.value = this.value">
</form>
</body>
</html>
--------------------------------------------------------------------------------



Here is my primary failing attempt at making the .swf pass the data:

I make a button in flash5 that has these actions:
-------------------------
on (release) {
fscommand ("self.opener.document.forms[0].entry.value =", "&foovar");
}
-------------------------

and then I'll publish the .fla to html with FS Command.

The problem being that it's not passing the data back to the parent window and I cant figure out why.


Any help will be awarded with my eternal respect,(yeah, I know- line forms to the left)

Thanks,

Joe

PS: Sorry if I hit you with a cross post.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


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