Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Javascript variable setting |
From: | Marc Pidoux |
Date: | Fri, 12 May 2000 02:07:23 +0100 |
4 ways at least:
1. Generator (or SwiftGenerator) is the best way because it doesn't have the
javascript problems...but i don't think it is your question!
2. FSCommand is the official way to do it, see page 182 of the book.
Basicly, you have to call the jscript function
theMovie_DoFSCommand(command,arg), where "theMovie" is the name of your movie.
I don't like this way to much because then you have, in your Flash film, to
place an FSCommand.
3. Use the Load variable action to load it from a text file.
4. Finally, the easiest assuming your movie is called "university" and your
flash variable "access",
just write: window.document.university.SetVariable("access", "Scott");
You can change "Scott" by "url" without the "" and set a javascript variable
called "url" as well.
Just ask me if it's not clear enough.
Cheers
Marc
Scott Jeppesen wrote:
> If I want to set a flash variable in a Javascript function how would I do
> it? For example: I want to have different html files with the same .swf
> embedded into them. However.....the variable I set in the Javascript tells
> the .swf which text file it should load(all info in the swf is coming from a
> text file). I just want to have 1 swf file. What is the Javascript code to
> send that variable to the swf?
>
> SJ
>
> flasher is generously supported by...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Get the last 100 messages from the flasher list NOW
> http://www.chinwag.com/flasher/last100.shtml
>
> Flash books http://www.chinwag.com/flasher/books.shtml
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email helpchinwag [dot] com
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml
Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
RE: FLASH: Javascript variable setting, Scott Jeppesen
Replies
FLASH: Javascript variable setting, Scott Jeppesen
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]