[thelist] javascript with Flash

John Corry webshot at neoncowboy.com
Tue Dec 19 15:39:40 CST 2000


At wits end...I have to ask again...

I'm trying to use javascript to set a variable that flash can use...

here's what I've got:
<script>
var movie = window.document.movie1 // 'movie1 is the name/ID of my
object/embed tags
function set(variableName, value){
movie.SetVariable(variableName, value);
}
</script>
<body onLoad = "set('pageVar','value');">


It doesn't even come close to working...and I'm getting upset! Now, even the
variable creation doesn't work! I'm gettign an error on that line that says
'movie' is null or not an object.

I'd really appreciate some help with this. The SetVariable method I'm trying
to use comes from the MM reference at
http://macromedia.com/support/flash/publishexport/scriptingwithflash_03.html

thanks,
john





More information about the thelist mailing list