-
Hi. I'm building an interface with a series of buttons -JPGs- embedded in a table. They have JS rollover functions. In the certre of the page there is a Flash movie. I want the buttons to trigger events in the movie by sending some sort of message.... is this possible?
If not - is there another route???
thanks, RS
-
Eeya,
There's a way.. using javaScript:
-------
<SCRIPT LANGUAGE=JavaScript>
function VarPassing()
{
var targetvar = somevariable;
document.rechts.SetVariable("targetaction",targetv ar);
}
</SCRIPT>
-------
Add an action to your buttons which calls the function VarPassing and which sets "somevariable" to some value. In your swf you should loop some actions to check the state of the variable "targetaction", and with if-statments set the actions which should happen on pressing one of your buttons. Something like:
-------
if (targetaction = 1)
tell target ("/"
go to an play (1)
end tell target
end if
-------
Hope this will do.
LTrZ!
DamnGzM.
-
0ops,
=0
Forgot to tell you that "rechts" in the phrase "document.rechts. ..." is the name and ID of the swf I used in this particular example.
LTrZ,
DamnGzM.