Controlling Flash Movies Using JavaScript
- Started
- Last post
- 11 Responses
- Dcsign
Can any one tell me what is the javascript for loading a .swf layer from a normal text link in html.
"In English = I have some html text links and a movie, and when the user roles over the text links on the page it loads a new .swf layer into the movie."
Ohh i forgot to add that i want it as a rollover action so that roll on text link = show layer, roll off text link = hide layer."
All help much appreciated!!
Thanks guys, gals
- Mimio0
Since when does javascript communicate with the Flash player?
- ********0
wha?
- Mimio0
You learn something everyday.
Good thing to know.Thanks Unfittoprint
- unknown0
guys keep in mind that Javascript communicates with Flash only if swLiveConnect is turned on. Another thing swLiveConnect is an activeX feature meaning that it only works on Windows :( I've tried this a long time ago and found that JS communicates perfectly with Flash player but being able to use it on Windows only is a shite.
- frankbb0
There is a work around for this.. can't remember the URL, but involves the flash local connection
very easy, used it a could of times to get around the mac problem
ask on actionscript.org or were-here.com they tell you
- Dcsign0
I am sure there is a simpler way of doing this.
Have seen on sites just simple html (javascript) links on a page controlling play, stop etc of a movie.
Check out:
http://www.moock.org/webdesign/f…someone must know a simple javascript to call up a load movie...
anyone please...
- unfittoprint0
check the source...
and remember to put in the flash movie parameters:
swLiveConnect="true"
- frankbb0
the swLiveConnect does NOT, thats does NOT work on a mac or any other os than windows.
also may not work in some Mozilla browsers..
- unfittoprint0
Mozilla solution:
http://www.webmasterworld.com/fo…For Mac:
http://www.xs4all.nl/~ppk/js/fla… with a link to this http://www.darkbackward.com/
(with FlashVars and LocalConnections)
- unfittoprint0
here's the MAC example:
http://www.darkbackward.com/flas…
here's the source:
http://www.darkbackward.com/flas…