|
-
You can call a JavaScript function from within flash directly using the getURL command as follows:
getURL("JavaScript:myFunction(myParam);");
As far as I know there is no way to call a Flash 5 function from JavaScript. However you can use TCallLabel to call the frame of a flash movie clip from JavaScript, and use code on this frame to pass the call on to your target function.
This can be done as follows where "myMovie" is the name of your embedded flash movie.
<SCRIPT LANGUAGE="JavaScript>;
<!--
function Call2Flash() {
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
var obj = InternetExplorer ? window.myMovie : window.document.myMovie;
obj.TCallLabel ("/", "myLabel");
}
//-->
</SCRIPT>
Hope that helps.
Mike Carlisle
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|