getURL, Javascript and Functions

Hello all,

is it possible to execute a function with getURL? I haven’t been able to find anything. Basically, I need to call a function in one of the SWFs on the landing page. Seems tricky, but looking around it seems like using the Flash Javascript Intergration Kit this might work.

Problem is I know next to nothing about JavaScript. So before I try and figure this out, I want to make sure it works.

So, I have an MC on a page with something like this:
[AS]
buttonMC.onPress = function(){
getURL(“javascript:goto_a_URL_and_call_myASfunction();”);
}[/AS]

There would be a Javascript in the HTML that was something like:


<script type="text/javascript">
[FONT=Arial, Helvetica][SIZE=2] 		      window.location="**http://www.mydomain.com/**";[/SIZE][/FONT]
myASfunction();
</script>

(yes, I’m making that code up, please hep me here).

So when I click the MC it takes me to www.mydomain.com and calls myASfunction found in the SWF on that page.

am I on the right track here?