|
-
Links from SWF files may not work in Flash9
I searched for this error for over 3 months until I got it. Nobody didn't know about it so I am posting it now for the help of others.
Some of the links and its targets (_self, _top, _parent) may not work from now on if you have flash 9 player installed. So that's why some of the links in your sites didn't work.
Why;
This issue may prevent some SWF files from changing a user's web browser location. It may also interfere with attempts by the SWF file to execute JavaScript style URLs within the context of the hosting page or other frames within that page.
So now, this is an example of how you can bypass this:
PHP Code:
<object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase=" http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="550" height="400" align="middle">
<param name="movie" value="http://otherdomain.com/exampleContent.swf">
<param name="allowScriptAccess" value="always">
<embed type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer"
width="550" height="400" align="middle"
src="http://otherdomain.com/exampleContent.swf"
allowScriptAccess="always"></embed>
</object>
The easiest fix is to specify AllowScriptAccess="always" in the HTML page
I hope this helps all the guys who are looking for this question, and I hope others spread the word... because that's the point of all this.
Regards.
-
supervillain
Even though this is a seriously good tip, I'm going to have to move this from Flashkit's News Forum to the more appropriate ActionScript Forum.
I will say though, that navigateToURL still has a few problems in AS3.
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
|