This affects the output from all current and earlier applications which exported HTML/SWF files: SWiSH Lite, SWiSH2, SWiSH Max, SWiSH Video, SWiSH Presenter, SWiSH Pix, as well as all SWiSH Sites.
We are working on export changes to our applications to suit these IE changes but in the meantime we ask you to review the details below and apply appropriate changes manually. We offer background information but if you want to skip this and get to our recommended solution start reading from the section A simpler technique below.
When do these changes apply to IE?
On April 11, a new version of Internet Explorer will be distributed as a mandatory download. New computers that ship with Windows will also include the ActiveX change. Microsoft is offering a one-time "compatibility patch" that will be deployed like a hotfix to let users turn off the changes through to June 2006. During the grace period, Microsoft is recommending that the temporary hotfix not be applied to all machines because another IE update scheduled for June will override all changes.
The changes are available for download now with 'Update for Windows XP (KB912945)'.
Quote
How the change affects web pages
To avoid infringing on the EOLAS patent, either:
* The ActiveX applications must not be solely within the web page.
* The user must click on the ActiveX content to active it.
In the latter case, Internet Explorer will display a grey border around the control, and a tooltip telling you that you need to click to activate the control. The control will not respond to the mouse or the keyboard until you activate it. Once it is activated, you can use it as before. For more technical information see HERE.
How to have your ActiveX control activated automatically
If you do not want users to experience the click-to-activate behaviour described above, then you must modify your web page accordingly. Microsoft recommends several ways of rewriting your web page that replace the object and embed tags with external JavaScript. These involve fairly extensive changes to existing HTML web page tags. See the following Microsoft web page for examples of various techniques and discussion of techniques that will not work. See more information HERE.
Another technique is to use a third party JavaScript application that not only provides the automatic ActiveX activation, but also provides other potential benefits. See more information HERE. However, this technique also requires you to replace existing <object> and <embed> tags with calls to JavaScript.
A simpler technique
A simpler technique that can be used requires only a minimal addition to the existing HTML tags, and a small JavaScript file. This method was posted by Flash user 'fpproductions' in the Adobe’s Flash forum/newsgroup here.
With this method, you need to add the following three lines to the <head> tag in HTML web page calling the Flash content:
<!--[if gte IE 6]> <script src="dynActiveX.js"></script> <![endif]-->
Where 'dynActiveX.js' is the name of the JavaScript file you need to upload with your HTML file.
The dynActiveX.js JavaScript file has the following content:
// When the page loads:
window.onload = function(){
if (document.getElementsByTagName) {
// Get all the tags of type object in the page.
var objs = document.getElementsByTagName("object");
for (i=0; i<objs.length; i++) {
// Get the HTML content of each object tag
// and replace it with itself.
objs[i].outerHTML = objs[i].outerHTML;
}
}
}
// When the page unloads:
window.onunload = function() {
if (document.getElementsByTagName) {
//Get all the tags of type object in the page.
var objs = document.getElementsByTagName("object");
for (i=0; i<objs.length; i++) {
// Clear out the HTML content of each object tag
// to prevent an IE memory leak issue.
objs[i].outerHTML = "";
}
}
}
A 'dynActiveX.js' JavaScript file is attached to this post .
Step-by-Step Tutorial for SWiSH Max
As an example of the process, these are the steps to make these changes using the installed beginner sample 'ray_of_light.swi' exported from SWiSH Max. You can make similar changes to HTML exported from other SWiSHzone.com products.
1. Export the ray_of_light.swi as HTML and SWF (File | Export | HTML+SWF).
2. Edit ray_of_light.html HTML adding the lines mentioned above to the <head> tag as shown in the code displayed below.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html40/loose.dtd"> <html> <head> <title>ray_of_light</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="author" content="" /> <meta name="generator" content="SWiSHmax http://www.swishzone.com" /> <meta name="description" content="ray_of_light" /> <meta name="keywords" content="play" /> <!-- text used in the movie --> <!-- play --> <!-- Created by SWiSHmax - Flash Made Easy - www.swishzone.com --> <!--[if gte IE 6]> <script src="dynActiveX.js"></script> <![endif]--> </head> <body bgcolor="#000000"> <center> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" id="ray_of_light" width="600" height="400" > <param name="movie" value="ray_of_light.swf" /> <param name="bgcolor" value="#000000" /> <param name="quality" value="high" /> <param name="allowscriptaccess" value="samedomain" /> <embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" name="ray_of_light" width="600" height="400" src="ray_of_light.swf" bgcolor="#000000" quality="high" swliveconnect="true" allowscriptaccess="samedomain" > <noembed> </noembed> </embed> </object> </center> </body> </html>
3. Upload the edited ray_of_light.html and ray_of_light.swf with dynActiveX.js attached.
We have uploaded these files so you can test the effect of these change for yourself:
Click here to see a sample of ray_of_light WITHOUT the changes to the head tag.
Click here to see a sample of ray_of_light WITH the changes to the head tag.
If you need more information or further assistance please don't hesitate to post questions in the forum.
Sincerely,
Hugh
Attached File(s)
-
dynActiveX.js.zip (424bytes)
Number of downloads: 2146

Help
This topic is locked

















