 <p>For flash you could use the <a href="http://blog.deconcept.com/swfobject/" rel="nofollow">SWFObject script</a> and for Silverlight <a href="http://msdn.microsoft.com/en-us/library/cc189089%28v=vs.95%29.aspx" rel="nofollow">use the following</a>.</p>