Are you having this problem in Netscape, by any chance? You might try
embedding the function in the void() function, like this:
I seem to recall that this fixes that problem. I could be wrong, but I
think it is something on this track. You might look up void() on some JS
reference page if that ain't right.
In article <bjmuna$98n$1news.netpower.no>,
"Jan Petter Skarbovik" <janpetternetpower.no> wrote:
>I need to call a JS function from a Flash animation. The JS function resides
>on the same page as the Flash. I've searched the Internet for a solution,
>and the answer I found was the "getUrl" function in Flash. So I wrote:
>I also tried:
>in Flash, and made a JS function on the html page named PageFunction (it is
>just a test function which returns the number 5). And now the good part;
>When the getUrl is executed, it unloads the whole page, and loads a blank
>page with the number 5 on it..... What is this??
>I need to call a JS function WITHOUT refreshing the page. How can I do that?
>Is it possible to do it the other way around; call an ActionScript function
>in a Flash animation from a JS function on the html page?
>Any help appreciated
>Jan Petter Skarbovik
S t e v e n P o s t
s . p o s t n u m b e r - 1 0 . g o v . u k