A security enhancement was added to Flash Player sometime ago that disables getURL to function properly in Actionscript 2.0 of Adobe Flash. This could be an issue for some as in my situation when I created a banner for MET to celebrate the independence & liberation day of Kuwait.
The issue occurs if you are targeting a different domain than the current domain where the SWF/HTML file is hosted. I’ve also heard reports that it can occur if the SWF and HTML file are located at different location even if at the same domain host. I haven’t tested the latter so I can’t confirm or deny it.
Anyhow, to resolve this issue, all you have to do is change the allowScriptAccess attribute on the <object> tag to have the value “always”. You also have to add <param name="allowScriptAccess" value="always" /> or edit it to match it if it’s already there.
So at the end, your code has to look like this:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="955" height="88" id="SWFID" align="middle">
<param name="allowScriptAccess" value="always" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="FILE.SWF" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="FILE.SWF" quality="high" bgcolor="#ffffff" width="955" height="88" name="SWFID" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
This issue is explained in more detail at the official knowledge base of Adobe here and here.
I’ve been trying to install Silverlight 3 Tools for Visual Studio 2008 but I keep getting a message saying that I don’t have SP1 installed even though I do have it installed, and it won’t allow me to install it. I tried to uninstall everything and reinstalled Visual Studio 2008 and updated it to Service Pack 1 but the same error keeps showing up whenever I executing the Silverlight 3 Tools installation. Here’s the error message I keep receiving:
Build 9.0.30729.XX of Visual Studio 2008 SP1 or Visual Web Developer 2008 SP1 must be installed before installation can continue. See <A HREF=”http://go.microsoft.com/fwlink/?LinkID=122094″>http://go.microsoft.com/fwlink/?LinkID=122094</A> for download information.
I’ve done much research to resolve this problem but I couldn’t find any helpful information. However, I’ve been able to find some hints here and there and I’ve came up with the solution after playing around with it for awhile. But first I should clarify few things before I continue with the solution:
- I’m using an early version of Windows 7 Professional since it was released 3 weeks ago by the time I’m writing this post.
- I have Visual Studio 2008 SP1 Professional Edition and .NET Framework 3.5 SP1 installed.
- The VS2008 build is: 9.0.21022.8 RTM which is the latest update I can get from Windows Update and it cannot detect any more updates for the VS2008.
- I have Expression Studio 3 already installed.
Okay, so now to overcome the installation error of Silverlight 3 Tools follow up these few steps:
- Download Silverlight 3 Tools for Visual Studio 2008 from here. The download file name should be: Silverlight3_Tools.exe by default.
- Download WinRar from here. Winrar will be used to extract Silverlight3_Tools.exe since it is an archived file. The reason I mentioned Winrar here is because I’m not sure if there is any other application that supports extracting EXE files. Feel free to use any other app that could do the job.
- After installing Winrar or any equivalent application, right click on Silverlight3_Tools.exe and extract the archive file.
- Finally, go to the location where you have extracted the file and execute the file VS_SilverlightTools_Setup.exe to install the Silverlight 3 Tools.