You need to sign in to do that
Don't have an account?
JBall
SWFObject for Flex
Has anyone successfully set up SWFObject in sfdc? I'm attempting to, in order to get around the ActiveX issues with IE, but in the process of solving the IE problem, I broke my firefox display. Any clues as to how I'm boning up my Flash in FF would be much appreciated.
It'd be great if sfdc adopted and included SWFObject.js as part of their js library. In the meantime, I've created a Snippet S-Control containing the full text of SWFObject.js, and adapted the FlexSalesforce demo html boilerplate (the part that goes in an HTML S-Control) as follows:
Code:
It'd be great if sfdc adopted and included SWFObject.js as part of their js library. In the meantime, I've created a Snippet S-Control containing the full text of SWFObject.js, and adapted the FlexSalesforce demo html boilerplate (the part that goes in an HTML S-Control) as follows:
Code:
<body scroll="no" > {!INCLUDE($SControl.SWFObject)} <div id="flashcontent"> This text is replaced by the Flash movie. </div> <script type="text/javascript"> var so = new SWFObject("{!Scontrol.JavaArchive}", "FlexSalesforce", "100%", "700", "9", "#f3f3ec"); so.addParam("classid", "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"); so.addParam("codebase", "https://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"); so.addParam("classid", "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"); so.addParam("loop", "false"); so.addParam("type", "application/x-shockwave-flash"); so.addParam("pluginspage", "http://www.adobe.com/go/getflashplayer"); so.addParam("play", "true"); so.addVariable("session_id", "{!API.Session_ID}"); so.addVariable("server_url", "{!API.Partner_Server_URL_90}"); so.write("flashcontent"); </script> </body>
I've had this resolved on the SWFObject forum. I was too explicit in my porting of the boilerplate, apparently. Works just fine in both IE and FF when whittled down to Code:
thanks, i could not figure out how to make it work properly, therefore left it out of the toolkit.
I'll look at putting this back in , along with version detection.
Hi
In Ie I am having to click to activate the flash player is there a way around this?
visit http://blog.deconcept.com/swfobject/ and download swfobject.js. then follow the description above, this will work in FF and IE. haven't tested in any other browsers.