header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Mitch
Points:30
Posts:0

12/1/2010 7:25:58 AM

Title: Question about embedding Flash: swfObject vs < Object >


I noticed that the Flash CS5 IDE publishes a very lean html code (see below) which appears to utilise the < object > tag. This seems to work very well - although I have this nagging feeling that I should be using swfObject .. how is swfObject different to the < object > tag? I've tested the code on all the browsers (IE6 included) with no problems.

Is it time to ditch swfObject? Or are there features in swfObject I'm overlooking?

If swfObject is the "standard" why doesn't the latest Flash IDE utilise it?

Thanks!




<object id='mySWF' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='100%' height='100%'>
			<param name='movie' value='index.swf'>
			<param name='allowfullscreen' value='true'>
			<param name='bgcolor' value='#919191'>

			<!--[if !IE]>-->
			<object type='application/x-shockwave-flash' data='index.swf' width='100%' height='100%'>
			<param name='allowfullscreen' value='true'>
			<param name='bgcolor' value='#919191'>
			<!--<![endif]-->

			<a href="http://www.adobe.com/go/getflashplayer">Get Flash</a>

			<!--[if !IE]>-->
			</object>
			<!--<![endif]-->
	</object>





Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 0+7 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions