Flasher Archive

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


Subject: RE: [flasher] Update: Loading variable from a text file - Javascript
From: Paul Willoughby
Date: Wed, 07 Feb 2001 14:59:04 -0000

Have you read about FS Command? There's a good explanation in Moock's
article at http://www.moock.org/webdesign/flash/fscommand/index.html . AFAIK
this is the most solid way for Flash and js to communicate.

It's also possible to call a javascript function from Flash and return
variables to Flash with swLiveConnect (MM technote 14253). If you search the
tech notes at http://www.macromedia.com/support/flash/ there's quite a few
articles on communicating with javascript.

If the problem is caching of a movie or variables, another technique is to
append a random number to the URL so the browser is tricked into thinking
it's a fresh page every time:

loadVariablesNum("blah.txt?random="+ (random(999)+getTimer()), 0)

Using a combination of random and getTimer makes it practically impossible
to generate the same URL every time.

hth

paul


Brian Kortland wrote on 07 February:
>
>
> HI All,
>
> Yesterday I posted a message about loading variables from a
> text file. I now
> realize my idea was ill fated due to caching.
>
> I did extensive digging and found some somewhat vague information on
> interacting with Flash via Javasvcript. This would be perfect
> for what I
> need to do - pass a variable to my flash movie from a link (or page or
> script). Anyone know of a good source with DETAILS!!! on how
> to handle this
> task.
>

>



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