Peter Elst

Flash Platform Consultant
  • Home
  • About me
  • Articles
  • Downloads
  • Contact me

IE changes, what to do next?

8 10 2003

I’m sure you’ve all heard and read a great deal about the changes that Microsoft will implement in its next browser release and the way in which it will influence the embedding of “Active Content” (Flash, Shockwave, Real, Windows Media, PDF, …).

For those that didn’t, I’ll give you a quick runthrough of what exactly is going on. Eolas sued Microsoft concerning a patent that involves the automatic launching of embedded Active Content in an HTML document. The court ruled in favour of Eolas and ordered Microsoft to pay for damages of the patent infringement. Needless to say Microsoft is appealing this judgement, the legal process for does however take considerable time and to limit its liability the company is working on a system that does not infringe the Eolas patent.

What Microsoft will be doing is displaying a message every time active content is loaded on your page, so for every embedded element you’ll get a prompt. There is currently a beta version of this IE6 browser update available on the MSDN site that will show you this behaviour.

Macromedia has actively been following this case ever since the ruling against Microsoft and is working on developing some open-source tools that help automate content updates for getting around this prompt for the upcoming IE browser release (expected early next year). It has even set up a Active Content Developer Center dedicated to the issue where they’ll be posting all information on solutions that are available to us.

The solution that up to know looks the most promising one for the average Flash developer is using external JavaScript to write the OBJECT and EMBED tag dynamically out to the browser.

Many people where complaining that with this solution they would have to create seperate .js file for every instance of active content on their site. Luckily that need not be the case!

I started working on a generic JavaScript function that you can call for all Flash content. The “insertFlash” function takes four arguments: swf, width, height, bgcolor and params. The first three arguments are required, the bgcolor argument simply reverts to a default color if it is not set. The final “params” argument takes an object and parses that to both PARAM child-tags for the OBJECT tag and attributes for the EMBED tag.

Here is a simple example of how you would use the insertFlash function:

insertFlash(”mySWF.swf”,550,400,”#FFFFFF”,{menu:false,wmode:”transparent”});

You can download the JavaScript function and an example HTML file here (2Kb). Please note that this is the first release, if you’re experiencing any problems with it please drop me a line!

« WebServiceConnector examples Publish template for JavaScript solution »



Actions

Informations

  • Date : 8 October 2003
  • Categories : Flash

5 responses to “IE changes, what to do next?”

8 10 2003
Shock (17:07:58) :

http://www.quasimondo.com/eolator.php

8 10 2003
Peter (17:11:40) :

Thanks for the link! Mario’s solution is a very good one but I personally prefer this method as it keeps things more readable.

If I remember correctly he was having some problems setting the width and height with the escaped characters (his site seems to be down at the moment). I’m also a bit apprehensive if those escaped characters might be filtered out by Microsoft in a next beta update. Very interesting approach though!

8 10 2003
Simon (19:22:09) :

What about the version number: #version=7,0,0,0 — does that matter? Does that determine minimum required plug-in version? If so, maybe that should be a parameter too.

8 10 2003
Peter (19:33:45) :

Good find, thanks Simon! I think I’ll add the version number to the params argument.

10 10 2003
Mario (12:23:59) :

Hi Peter,

the reason why I’m urlencoding the whole block is to avoid any conflicts with quotation marks or linebreaks. As I’m putting the whole OBJECT block into one string this makes any further checks obsolete. The reason is not to obfuscate the code - I only want to avoid introducing any errors into the existing OBJECT.





Conferences

Flash on the Beach Speaker

Training Partners

multimediacollege

SkillsMatter

  • Categories

    • AIR RSS category feed
    • Ajax RSS category feed
    • CSS RSS category feed
    • Eclipse RSS category feed
    • Events RSS category feed
    • Flash RSS category feed
    • Flash Lite RSS category feed
    • Flex RSS category feed
    • Gadgets RSS category feed
    • General RSS category feed
    • JSFL RSS category feed
    • Mac RSS category feed
    • Open Source RSS category feed
    • PHP RSS category feed
    • Podcasts RSS category feed
    • Publications RSS category feed
    • Rants RSS category feed
    • Reviews RSS category feed
    • Thought of the Day RSS category feed
    • Training RSS category feed
    • Twitter RSS category feed
    • Video RSS category feed
  • Resources

    • Jesse Warden
    • Matthew David
    • Guy Watson
    • Serge Jespers
    • Darron Schall
    • Sam Robbins
    • Mario Klingemann
    • Rich Tretola
    • Stephen Downs
    • Aral Balkan
    • Jonathan Kaye
    • Branden Hall
    • Ted Patrick
    • Brajeshwar Oinam
    • AndrĂ© Michelle
    • Peldi Guilizzoni
    • Sas Jacobs
    • Marco Casario
    • Veronique Brossier
    • Lee Brimelow

     
     

    Adobe Community Expert

    See my profile on LinkedIn



    Harz Ferienwohnung Suchmaschinenoptimierung Geschenkideen Harz Ferienwohnung Pagerank Webkatalog Webhosting