Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Getting Variables from JavaScript to Flash |
From: | 2Nerotik |
Date: | Thu, 18 Nov 1999 23:05:05 GMT |
Ok, I got it working so that I can not put the variables into Flash,
took at look a Colin Moocks site and figured it out mostly.
Problem now is that I'm getting an error "Cannot use parentheses when
calling a sub."
Does anybody know what the heck that means ?
This is the script so far:
<SCRIPT LANGUAGE="VBScript">
<!--
// Catch FS Commands in IE, and pass them to the corresponding JavaScript
function.
Sub FlashCount_FSCommand(ByVal command, ByVal args)
call FlashCount_DoFSCommand(command, args)
end sub
//-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
function FlashCount_DoFSCommand(command, args)
{
if ( command == "call_alert" )
{
parent.window.document.FlashCount.SetVariable('Day', dday);
parent.window.document.FlashCount.SetVariable('Hour', dhour);
parent.window.document.FlashCount.SetVariable('Min', dmin);
parent.window.document.FlashCount.SetVariable('Sec', dsec);
}
}
//-->
</SCRIPT>
I'd also post the JavaScript but it's pretty big... would the error I'm getting
be caused by the JavaScript ?
At 02:32 PM 11/18/99 -0800, 2Nerotik wrote:
>There was a post on how to do this with a JavaScript function and
>SetVariable('VName', Value);
>
>I tried several varied versions and some versions of the FSCommand
>but for the life of me can not get it to work.
>
>Can somebody help with a more detailed way of doing this... John C ?
>
>I looked at the Flash Bible site and saw the reference to this in the
>list of commands but still not sure how to implement it properly so
>that both IE and NN can use it properly.
>
>Thanks.
.oOo.
|| A man who says marriage is a 50-50 proposition
|| doesn't understand two things:
|| 1. Women
|| 2. Fractions
||
|| Addicted 2 Swing ---> http://www.nisa.net/~2nerotik/
|| Fontaholic ? ---> http://www.fontsanon.com
|| HTML Writers Guild ---> http://www.hwg.org
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California
Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
Re: FLASH: Getting Variables from JavaSc, John
Replies
FLASH: Getting Variables from JavaScript, 2Nerotik
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]