How can I initialize Flash variables from the HTML page that contains it? For example, I have two variables _root.preloadalbum and _root.preloadsong, to which I would like to assign values, by means of JavaScript.
In the first frame of the flash file, I stop playback and send an FSCommand.
My FSCommand function looks like this:
The "Blah" pops up, the animation plays, but the variables don't get changed.
Is there something I'm doing wrong?
Thanks in advance
Will
In the first frame of the flash file, I stop playback and send an FSCommand.
My FSCommand function looks like this:
Code:
function listen_DoFSCommand(command, args) {
window.alert("Blah");
document.listen.SetVariable("_root.preloadalbum", "ddfa");
document.listen.SetVariable("_root.preloadsong", "ddfa-447e");
document.listen.Play();
}
The "Blah" pops up, the animation plays, but the variables don't get changed.
Is there something I'm doing wrong?
Thanks in advance
Will