A Flash SWF can send a command to an HTML File with
getURL("javascript:function()")
or
fscommand("foo", "bar")
My Question:
Can HTML send something to a Flash AFTER it has been loaded (by Javascript or something)? If so, how?
A Flash SWF can send a command to an HTML File with
getURL("javascript:function()")
or
fscommand("foo", "bar")
My Question:
Can HTML send something to a Flash AFTER it has been loaded (by Javascript or something)? If so, how?
no, (or atleast not to my knowledge) the only way things can be changed once its loaded is by using actionscript
ok, i know i can give parameters on load, but this wasn’t the question.
i cannot think of a solution too, but that’s why i ask the kirupa masters
I think you can use javascript and setvariable.
Check out this page, it might be of help:
http://www.mustardlab.com/developer/flash/jscommunication/
So long as you name and ID your object and embed tags, you can use JavaScript to set a variable (and there are other JS methods as well).
I create a MovieClip, set it’s onEnterFrame to check the value of a variable, and then use JavaScript’s setVariable method to change the value. When the onEnterFrame finds the value of the variable changed, it calls the appropriate function to deal with the variable changes.
The main issue with this is cross-browser compatibility with the JavaScript methods.
have a look at the source code on:
http://www.qldcricket.com.au/
It shows how I’ve used an onload command to change the text within the flash movie. It’s a basic javascript push, so yes, it can be done and you can do quite a lot with it.
:: Copyright KIRUPA 2024 //--