PDA

View Full Version : controling SWF from HTML


Tibor
09-07-2001, 11:01 AM
Hi all...

i need to send command to SWF from HTML site using hyperlink.
The command is _root.menu.Xpos = -1213;

I was trying

..<a href="flmenu.html?_root.menu.Xpos = -1213;">Snímek 1</a>

but it does not work.

can someone help me?

mpol777
09-10-2001, 04:51 PM
best way i know of is with javascript. to make the transfer you need to target the flash movie. say you have a mkvie embedded with an id of "chopper". your javacript would look something like this


----------------------------------------

document["chopper"].SetVariable("_root.menu.Xpos",-1213);

----------------------------------------

and away you go.