Hi
Further to my previous post ...and thanks so much for the responses ....
This is the real situation I'm trying to resolve.
Just need to call a swf from javascript to move the swf on to another time frame.
AS3
Import flash.external.ExternalInterface;
function moveOn (frame:int ) : void
{
gotoAndPlay (frame);
}
ExternalInterface.addCallback("myjsFunction", moveOn);
JS
<script language="JavaScript">
function sendtoSwf (frame){
MyMovie.myjsFunction(frame);
}
</script>
...
<object id="MyMovie"...>
...
<param name="allowScriptAccess" value="always" />
....
<embed name="MyMovie".../>
</object>
HTML JS trigger
<a href onclick=”javascript : sendtoSwf(25);”> click here </a>
If someone could please clarify, since I only want to trigger swf from js, do I maybe not need the ...addCallback(...) line ? Should it actually be just a ...Call(...)? I havent quite grassped the Internal Interface idea yet. In my html click trigger Im trying to pass an integer value which is the actual frame I want the swf to move to, I'm not sure if the trigger should link to the "sendtoSwf" function or the "myjsFunction" ...do I not need a reference in js to the actual name of the as3 function that moves the frame?(i.e. moveOn) Any clarifacation would be GREATLY appreciated. Thanks in anticipation. Ed