Control Flash SWF from HTML (and/or ASP) menu (providing vars)
Posted on 2004-10-08
I am making a flash movie that has most the content (text, imgs, etc..) in the site I am building. This swf is included in a CSS based page, that has a menu (<a> tags, basically).
As the content in the flash movie mentioned earlier is created "on the fly", using actionscript, I want to know how to control the SWF movie using the html menu. I can tell you that I know how to make the html menu play/stop/gotoframe in the flash movie, so what I needed is something a bit different.
What I want is to flash to pick up a click in the menu bar, and receive the click with a variable, so that flash can redirect that instruction to the specific funtion it'll have to make in the movie. So basically, here's an a example of one of the functions I'll need to implement:
> click LINK1
> send variable LINK1
> flash receives LINK1
> flash loads an SWF file named LINK1.swf onto a scrollpane.
I would very much appreciate *code* for this, all ASP/JS coding (this is very important, as I dunno almost nothing about those), and regarding the linkage of the variable to the import of the SWF file.
Important bit: the page couldn't refresh (mainly because I have other animations running that I don't want to break the animation at mid-play), hence the ASP...
also, this is kinda urgent.:S
thank you very much in advance ;)