Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1


Ratings: (0)|Views: 2|Likes:
Published by califun

More info:

Published by: califun on Sep 26, 2008
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, PDF, TXT or read online from Scribd
See more
See less





SWFObject Readmehttp://blog.deconcept.com/swfobject/v1.5SWFObject is a smallJavascript file used for embedding Macromedia Flash content. The script can detectthe Flash plug-in in all major web browsers (on Mac and PC) and is designed tomake embedding Flash movies as easy as possible. It is also very search enginefriendly, degrades gracefully, can be used in valid HTML and XHTML 1.0 documents,and is forward compatible, so it should work for years to come.* SWFObject is theFlash embed script formerly known as FlashObject. The name was changed after arequest from Adobe for legal / trademark reasons.Created: 10-14-2004Last Updated:02-28-2007By: Geoff Stearnsgeoff@deconcept.comhttp://blog.deconcept.com/--------------------------Copyright (c) 2007 Geoff StearnsPermission is herebygranted, free of charge, to any person obtaining a copy of this software andassociated documentation files (the "Software"), to deal in the Software withoutrestriction, including without limitation the rights to use, copy, modify, merge,publish, distribute, sublicense, and/or sell copies of the Software, and to permitpersons to whom the Software is furnished to do so, subject to the followingconditions:The above copyright notice and this permission notice shall be includedin all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "ASIS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITEDTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE ANDNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FORANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OROTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OROTHER DEALINGS IN THE SOFTWARE.--------------------Files:readme.txt- this fileswfobject.js - SWFObject javascript file - this will needto be included in any html file that uses the SWFObjectembed. This file is compressed with dojo shrinksafe(http://alex.dojotoolkit.org/shrinksafe/) to save bandwidth. To view theuncompressed version, look at source/swfobject_source.jsswfobject.html - sample html file showing how to use the SWFObjectembedexpressinstall.html - sample html file showing how to use SWFObjectwith the ExpressInstall featurefullpage.html - sample html fileshowing a full page (100% by 100% flash embed)flashversion.html - samplepage showing how to use SWFObject to determine the installed player versionso_tester.swf - sample swf used to test basic SWFObject functionalityexpressinstall.swf - swf used to invoke the Express Install feature forusers that have Flash Player 6.0.65 or higher already installedsource/so_tester.fla - sample fla for SWFObject testing. Open this to see howto use the ExpressInstall featuressource/swfobject_source.as - uncompressed swfobject.js file - only provided forviewing, you should use the production version(swfobject.js) on your website These files areprovided 'as is,' with no technical support provided, but if you find a problem,please e-mail me at geoff@deconcept.com or send an e-mail to the SWFObject mailinglist (http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com) so I canupdate/correct the problem and provide an updated version.----------Changelog:03-05-2007 (v1.5)[fixed] updated expressinstall.swf to fix a scaling issue after theupdate was finished.02-28-2007 (v1.5)[changed] Express Install functionality wasupdated to support projects that use AS3 (or Flex 2 projects). This means newsyntax when using Express Install (see expressinstall.html for an example)[fixed/changed] adjusted cleanup code to only call cleanUpSWFs() if the user isusing IE and has Flash Player 8 or higher (because the streaming audio + out ofmemory error only affects these systems)[fixed/changed] adjusted cleanup code toonly be called once - this fixes issues people had when accidentally including thejs file more than once[changed] added support for IE Mobile devices with FlashPlayer installed[changed] added support for style attributes on the object/embedtags - mainly for compatibility with swfIR (http://www.swfir.com)8-2-206 (v1.4.4)[fixed] The v1.4.3 introduced a new issue: When clicking links withhref="javascript:..." it would cause all the swf files on the page to disappear
(it was triggering the cleanUpSWFs function prematurely). This is now fixed, andall users should upgrade immediately to v1.4.4.7-25-2006 (v1.4.3)[updated] addedin a fix for a bug introduced in Flash Player 9 that would cause an error in IE"Line 56: Out of memory". This was caused by new code inserted by Flash Player 9,and SWFObject 'fixes' this by removing the 'bad' code that fp9 inserts andreplacing it with code that does not cause the 'Out of memory' error.6-2-2006(v1.4.2)[updated] added one more fix for a related issue to the audio streamingbug listed below, thanks to Ben Longoria for the fix[updated] updated thedetection code for IE/ActiveX browsers to fix a crash that could occur when theuser had Flash Player 6.0.21 or 6.0.23 installed (Thanks to Michael Williams atAdobe for the code to fix this (and the Adobe detection kit))[fixed] updated thegetQueryParamValue method to fix a bug that would return the wrong value if youhad two variables that ended with the same string (Thanks to Aran Rhee fordiscovering the issue and providing a fix)[fixed] fixed a couple of strict jswarnings that crept back in sometime after the 1.4 update5-17-2006 (v1.4.1)[updated] added code to 'clean up' Flash Player instances on window unload becauseof a bug when using innerHTML and streaming media.4-21-2006 (v1.4)[changed]FlashObject is now known as SWFObject because of legal reasons. For more info,read:http://blog.deconcept.com/2006/04/21/flashobject-to-become-swfobject/Notethat using the code 'new FlashObject()' will still work because I've added a linkfrom FlashObject to deconcept.SWFObject, but you should update your code toreflect the new name as soon as possible to avoid future complications[updated]SWFObject.write() now returns true or false depending on whether the SWF contentwas written to the page or not (true if it is, false if it is not)[changed] the'com' namespace has been removed, now everything lives in the 'deconcept'namespace only, instead of 'com.deconcept' namespace.[updated] made a couple verysmall changes to get rid of warnings in the mozilla script debugger when thedebugger was in strict mode[updated] added 'the mark of the web' to the examplespages to (hopefully) prevent the ActiveX bar from appearing at the top of the pagewhen viewing these files locally in IE on Windows.3-26-06[fixed] bug found in thelocation.hash handling in the getQueryParamValue() call. Changeddocument.location.href.hash to document.location.hash.2-14-06[fixed] bug found inthe custom ExpressInstall message. When publishing the fla as a Flash 8 swf, theupgrade message would not show up. This is due to the way the Flash 7 playerdisplays text and outlines (among other things). To avoid issues with customupgrade messages, you should use device fonts, and either remove outlines fromobjects, or set them to 'hairline'. There may be other issues to avoid, so if youhave issues with items not showing up in older Flash player versions, trysimplifying the objects.2-09-2006[fixed] bug in the getHTML method - the closing<object> tag wasn't being appended unless you passed in at least 1 flashvar, andfixed some closing slashes on the param tags.1-25-2006[fixed] Found a small bug inthis latest version that caused the Flash movie to not load on IE 5.01 on PC. Thebug has been fixed and the zip/source has been updated. Please update to thelatest version if you are using 1.3 and have a lot of users using IE 5.01 (doesanyone have a high number of those anymore?). The new version number is 1.3b.1-18-2006[fixed] Bug that would keep users with Flash Player 6 installed from usingExpressInstall1-12-2006[Changed] When calling FlashObject.write() you can now passan HTMLElement reference. Previously you needed to pass a string (the Id of theelement to write the Flash content to)[Changed] Made changes to the plugindetection routine that would cause a crash in browsers running certain versions ofthe Flash plugin. Read a comprehensive description of the issue and the fix.[New]You may now specify a specific URL to redirect the user to after they complete anExpressInstall process. Previously the script would always redirect them to thepage the Flash movie was embedded in, but when using a popup window this is notalways the best solution. See the ExpressInstall section of the FlashObject pagefor more information.[New] FlashObject now integrates seamlessly with theJavascript Integration Kit. More information on this is forthcoming in a new blogpost.[New] I’ve used Dojo Shrinksafe to strip out the extra space in the

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->