0
getURL --javascript stops working under Flash 8
New Here
,
/t5/animate-discussions/geturl-javascript-stops-working-under-flash-8/td-p/677171
Dec 09, 2006
Dec 09, 2006
Copy link to clipboard
Copied
I have ran into a strange problem that I hope is simple to
diagnose. I have done many projects where the Flash object calls a
Javascript in the parent web page using a simple getURL method,
like this:
getURL("javascript:resizeSWF("+40+")");
That has worked fine for years. But I have noted when publishing these projects as Flash 8, that call no longer reaches the Javascript function (the Javascript does not execute). Publishing as ver 7 or earlier is fine. Am I missing something obvious here, or is there a new security restriction in Flash 8 that prevents directly communicating with Javascript functions? Thanks
getURL("javascript:resizeSWF("+40+")");
That has worked fine for years. But I have noted when publishing these projects as Flash 8, that call no longer reaches the Javascript function (the Javascript does not execute). Publishing as ver 7 or earlier is fine. Am I missing something obvious here, or is there a new security restriction in Flash 8 that prevents directly communicating with Javascript functions? Thanks
TOPICS
ActionScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/animate-discussions/geturl-javascript-stops-working-under-flash-8/m-p/677172#M303995
Dec 09, 2006
Dec 09, 2006
Copy link to clipboard
Copied
HitParader wrote:
> I have ran into a strange problem that I hope is simple to diagnose. I have
> done many projects where the Flash object calls a Javascript in the parent web
> page using a simple getURL method, like this:
>
> getURL("javascript:resizeSWF("+40+")");
>
> That has worked fine for years. But I have noted when publishing these
> projects as Flash 8, that call no longer reaches the Javascript function (the
> Javascript does not execute). Publishing as ver 7 or earlier is fine. Am I
> missing something obvious here, or is there a new security restriction in Flash
> 8 that prevents directly communicating with Javascript functions? Thanks
You need to test it online. Change in flash player as well as IE and FF security
no longer allow Flash - JS - HTML on desktop. You need to upload it to server and
test in real time. Should work just fine.
--
Best Regards
Urami
--
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
HitParader
AUTHOR
New Here
,
/t5/animate-discussions/geturl-javascript-stops-working-under-flash-8/m-p/677173#M303996
Dec 09, 2006
Dec 09, 2006
Copy link to clipboard
Copied
Thanks!
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
New Here
,
LATEST
/t5/animate-discussions/geturl-javascript-stops-working-under-flash-8/m-p/677174#M303997
Dec 14, 2006
Dec 14, 2006
Copy link to clipboard
Copied
I'm having a similar issue, but the javascript I'm calling
within Flash is the show/hide layer js from Dreamweaver. It works
fine inside FF, but the same behavior has no effect in IE6/7. And I
couldn't get my swf/js to integrate exporting as a Flash 8 movie on
either the desktop or the server. I had to downgrade to Flash 7 to
get it working at all inside FF and Safari.
Here's a link to see it in action (only Carroll and Troup counties are active);
http://pixegen.com/sandbox/map.html
Any ideas on why IE isn't working?
Here's a link to see it in action (only Carroll and Troup counties are active);
http://pixegen.com/sandbox/map.html
Any ideas on why IE isn't working?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

