Flash CS5 SWF embedding issues
// May 29th, 2010 // No Comments » // Flash, awesomeness, rambling, web development
I’ve been messing around with this Flash CS5 30 day trial at work and thus far it will be a fantastic upgrade when I eventually buy it. Not because of new features or the “Adobe interface” (which honestly is just Adobe tabs wrapping old Macromedia UI elements), but because Flash CS5 is a Universal Binary for Intel powered Macs. And…wow. What a difference. CS5 launches in barely a second, the publishing of SWFs is incredibly fast, and the application UI feels much more responsive.
Anyway, on to the point of my post. Flash CS5 changes the default way the app publishes content. In addition to the HTML / SWF it has always created, it now creates a separate Javascript file that the HTML file must use in order for the SWF to appear in a browser.
Embedding with Javascript has been something most seasoned Flash developers have been doing for years, but until now its been kept away from general Flash users. CS5 changes all that. Every Flash user, from beginner on up, will be required to upload this JS file, as well as copy plenty more player embed code if they want to embed movies in a separate HTML document (and then figure out how to change the embed src link to the requisite JS file).
Was there a way around this? Not really. Macromedia/Adobe were caught between a rock and a hard place with the whole Eolas/Internet Explorer lawsuit – which forced a change to how the most popular browser on the planet (grrrr) embeds rich media content – and prevented Flash movies all over the web from auto-playing, not to mention those heinous “Click here to activate” confirmation dialogs. Including a Javascript file resolves these issues, but it’ll undoubtedly make life more difficult for Flash beginners.



