[SWFObject] Express Install and Flex2

Geoff Stearns geoff at deconcept.com
Thu Jun 29 10:35:30 PDT 2006


i'll be releasing an update soon that supports fp9 content...

it will use a separate swf to do the express install.



On Jun 29, 2006, at 12:27 PM, Andrew Wason wrote:

> Does anyone have any suggestions on the best way to use Express  
> Install
> with Flex2 and SWFObject?
>
> The issues are I can't put the ExpressInstall code on frame 1 since  
> Flex
> doesn't give you frame level access. Also Flex compiles  
> ActionScript to
> ASVM3 which won't execute in earlier Flash players.
> http://blog.deconcept.com/swfobject/#expressinstall
>
> I was thinking an approach like below might be best. Setup SWFObject
> with the Flex app swf, then check the player version and if it is not
> correct swap out the swf with the playerProductInstall.swf
> (ExpressInstall swf that comes with Flex Builder) before writing the
> SWFObject into the page.
>
>
> <div id="flashcontent">
> 	<a href="http://www.adobe.com/go/getflashplayer">Upgrade</a>.
> </div>
>
> <script type="text/javascript">
> 	// <![CDATA[
> 	var so = new SWFObject("flexApp.swf", "flex", "300", "200", "9.0.15",
> "#FF6600", true);
> 	if (!so.installedVer.versionIsValid(so.getAttribute('version'))) {
> 		so.setAttribute("swf", "playerProductInstall.swf");
> 	}
>
> 	so.write("flashcontent"))
> 	// ]]>
> </script>
>
>
> _______________________________________________
> SWFObject mailing list
> SWFObject at lists.deconcept.com
> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com




More information about the Swfobject mailing list