Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Why won't flash 9 play when served in SSL (HTTPS)?

Posted on 2008-10-09
Medium Priority
Last Modified: 2012-05-06
Trying to develop an app to serve flash content over SSL.  Works fine in the non-SSL dev environment, but requires the user to click "Play" when served in SSL.  Tried setting the "play" variable, allowScriptAccess, and using SWFObject.  Have not tried cross-domain scripting file because all content is served from the same domain.  Any idas would be ___really___.  Need to have answer implemented tomorrow!!

BTW - usng ajax to load data into a content element - see content element below
<div class="ajax">    
    <script type="text/javascript"
    <script type="text/javascript">
    swfobject.registerObject('Attribute Graph', '9.0.0', 
    swfobject.registerObject('IEAttrGraph', '9.0.0', 
    <object id="IEAttrGraph" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="600" height
="325" play="true" loop="false">
        <param name="movie"
               value="" />
	<param name="flashvars"
.Chloride" />
	<param name="play" value="true" />
        <!--[if !IE]>-->
	<object id="Attribute Graph" width="600" height="325"
         align="middle" play="true" loop="false"
	  <param name="flashvars"
.Chloride" />
	  <param name="play" value="true" />
	<p> Please install Flash 9.0 or greater. </p>
        <!--[if !IE]>-->

Open in new window

Question by:didjeridoo
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 44

Expert Comment

ID: 22747092
well, basically secure means secure.  A secure HTTPS page is not going to automatically cause an insecure function to play on the page, which flash is.  It will require user authorization to do this -- if it did not require that, the page would not be secure -- which technically means re-entrable via a back door, and flash is.

Author Comment

ID: 22753583
Thanks for the response.  I believe you are right that there is some issue with security.  However, flash does have a security model (see which includes the ability to play securely delivered swf files.  I would think the problem of playing flash movies/charts over https has been solved before.  Does anyone know how this is done?

I have provisionally solved the problem using a javascript function to call the document.getElement(flashMovieID).Play() method once the page is loaded.

This solution is brittle, however, since it requires a setTimeout javascript call and may not work with slower connections.  Any new information would be greatly appreciated.  Thanks again for taking the time to address this question.
LVL 44

Accepted Solution

scrathcyboy earned 1500 total points
ID: 22753948
setTimeOut() is irrespective of connection speed.  If you put the javascript at the end of the document, the seconds "time out" will start ticking from the end of the page load, regardless of the connection speed.  I  see nothing "brittle" about it, almost all rollovers, image animations and page timers use it or setInterval.

Author Closing Comment

ID: 31531502
Unfortunately, extjs asynchronously loads objects, particularly flash objects using swf.  Because of the asynchronous load and the variable speed with which the operations are completed on different platforms, setTimeOut turns out to be brittle.  But I haven't found a better solution.  Thanks.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question