Refresh Events

Refresh Events encourages collaborative partnerships, fosters education at all skill levels and creates networking opportunities within the Toronto interactive community.

Archive for the “Flash” Category

Implementing Flash with JavaScript

Tuesday, February 24th, 2009 | By: Justin Kozuch

If you’ve ever worked with Flash and HTML (and who hasn’t?), we’ve all come to a point where we need to embed a Flash movie into an HTML page. This is usually the same point where you cringe, especially if you need to validate your HTML/XHTML (and you should!). Embedding Flash can result in an ugly mess of code like this one:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
   codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
   width="550" height="400" id="Untitled-1" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="mymovie.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="mymovie.swf" quality="high" bgcolor="#ffffff" width="550"
   height="400" name="mymovie" align="middle" allowScriptAccess="sameDomain"
   type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>

(more…)

Possibly Related Posts: