Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | RE: FLASH: javascript |
| From: | Rafael Faria |
| Date: | Thu, 9 Dec 1999 10:52:31 GMT |
Well...
what i did wrong?!
=================================================
<SCRIPT LANGUAGE=JavaScript>
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
var FlashObj = InternetExplorer ? window.FlashObject :
window.document.FlashObject;
var monthNumbers = new Array(
"Janeiro","Fevereiro","Mar�o","Abril","Maio","Junho","Julho","Agosto","Setem
bro","Outubro","Novembro","Dezembro");
var now = new Date();
if (now.getMinutes() < 10)
minutes = "0" + now.getMinutes()
else minutes = now.getMinutes();
var todaydate = "Goiânia, " + now.getDate() + " de " +
monthNumbers[now.getMonth()] + " de " + "19" + now.getYear();
FlashObj.SetVariable("/:todaydate", todaydate);
</SCRIPT>
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0
,0" ID="FlashObject" WIDTH=100% HEIGHT=100%>
<PARAM NAME=movie VALUE="main.swf">
<PARAM NAME=quality VALUE=high>
<EMBED src=main.swf" quality=high WIDTH=550 HEIGHT=400 swLiveConnect=true
TYPE=application/x-shockwave-flash name="FlashObject"
PLUGINSPAGE=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_V
ersion=ShockwaveFlash></EMBED></OBJECT>
=============================================
>Rafael,
>
>First, there's some prerequisites that must be met... something like the
>following:
> var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
>This global variable will tell the script if it should use IE code or
>NetScape code, as in the following:
> var FlashObj = InternetExplorer ? window.FlashObject :
>window.document.FlashObject;
>The above assumes that you have the following set:
> In your <OBJECT> tag, there must be ID="FlashObject"
> In your <EMBED> tag, there must be Name="FlashObject"
>
>Once all the above is correct, you can use the following code:
> FlashObj.SetVariable("/:VariableName", "String" );
> FlashObj.SetVariable("/:AnotherVariable", varTimeString);
>
>It's just the bare bones, have a play with it and see how you go.
>
>Hope this helps!
>
>---
>Tim Walters MVP
>Glasshouse101
>Tim [dot] Walters
>
> > -----Original Message-----
> > From: owner
> > Faria
> > Sent: Thursday, 9 December 1999 5:34 AM
> > To: flasher
> > Subject: FLASH: javascript
> >
> >
> > how can i setvariable from javascript?
> >
> > set.SetVariable("_level0/variable:name",Hours + ":" +
> > Minutes + ":" +
> > Seconds);
> >
> >
> > Please...
> > some one give me a light!
> >
> >
> > thanks
> >
> >
> > [ r a f a e l f a r i a ] _________
> > ________ rafael
> >
> >
> >
> >
> > 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 help
> >
> >
>
>
>
>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 help
---
Rafael Raynaud de Faria Cardoso - rafael
Flash World MMUG Leader - Grupo de Usu�rios Macromedia
Coordenador Geral da Flash World - Professional Resources
http://www.flashworld.com.br/
-
Estamos participando do IBEST 2000!
Vote nessa voc� tamb�m! - http://www.ibest.com.br
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 help
Replies
FLASH: javascript, Rafael Faria
RE: FLASH: javascript, Tim Walters
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

