hi ppl...
i just need sum actionscript/javascript help ere =)
at the moment i have a *.js file which i control (a button i press) in a *.html file, to display an image (4 egsample).
now i want to combine it with flash; what i want to say is:
as soon as the flash mc reaches a certain frame, it should call up the function.
the result of this function must then be displayed on the html page.
can any one help me with sum syntax?
the button code in the *.html file:
<a href="javascript:function(2)">BUTTON</a>
and the code in the *.js file consists of:
function function(whichOne){
var thingy = new Array();
thingy[1] = "hello.jpg";
thingy[2] = "bye.jpg";
if (document.body){
document.body.background = thingy[whichOne];
}
}