I'm trying to send a call from within Director 8.5 to a JavaScript function in the HTML of the published Shockwave movie. This is the JavaScript in the head of the HTML:
This is the behavior script located in the Director file:
What am I missing?
Thanks in advance,
Kosta
Code:
<SCRIPT FOR="project2"
EVENT="externalEvent(selfcall)"
LANGUAGE="JavaScript1.2">
<!-- Begin
function shake(selfcall)
{
if (self.moveBy)
{
for (i = 10; i > 0; i--)
{
for (j = selfcall; j > 0; j--)
{
self.moveBy(0,i);
self.moveBy(i,0);
self.moveBy(0,-i);
self.moveBy(-i,0);
}
}
}
}
// End -->
</script>
This is the behavior script located in the Director file:
Code:
on exitFrame me
externalEvent ("shake('2')")
end
What am I missing?
Thanks in advance,
Kosta