Solved

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

Posted on 2008-10-09
4
732 Views
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"
 
            src="https://consumer.mydomain.com/@@/0.3.5/swfobject.js"></script>
 
    <script type="text/javascript">
 
    swfobject.registerObject('Attribute Graph', '9.0.0', 
 
      'https://consumer.mydomain.com/@@/0.3.5/expressInstall.swf');
 
    swfobject.registerObject('IEAttrGraph', '9.0.0', 
 
      'https://consumer.mydomain.com/@@/0.3.5/expressInstall.swf');</script>
 
    <div>
 
    <object id="IEAttrGraph" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="600" height
 
="325" play="true" loop="false">
 
        <param name="movie"
 
               value="https://consumer.mydomain.com/@@/0.3.5/Barometer.swf" />
 
	<param name="flashvars"
 
        value="play=1&amp;dataurl=https%3A%2F%2Fconsumer.mydomain.com%2Fme%2Flabs%2Fdata.xml%3Flab%3Dlabs
 
.Chloride" />
 
	<param name="play" value="true" />
 
        <!--[if !IE]>-->
 
	<object id="Attribute Graph" width="600" height="325"
 
         align="middle" play="true" loop="false"
 
         type="application/x-shockwave-flash"
 
         data="https://consumer.mydomain.com/@@/0.3.5/Barometer.swf">
 
	  <param name="flashvars"
 
          value="play=1&amp;dataurl=https%3A%2F%2Fconsumer.mydomain.com%2Fme%2Flabs%2Fdata.xml%3Flab%3Dlabs
 
.Chloride" />
 
	  <param name="play" value="true" />
 
	<!--[endif]>-->
 
	<p> Please install Flash 9.0 or greater. </p>
 
        <!--[if !IE]>-->
 
	</object>
 
	<!--[endif]>-->
 
    </object>
 
    </div>
 
    
 
</div>

Open in new window

0
Comment
Question by:didjeridoo
  • 2
  • 2
4 Comments
 
LVL 44

Expert Comment

by:scrathcyboy
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.
0
 

Author Comment

by:didjeridoo
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 http://livedocs.adobe.com/flex/3/html/help.html?content=05B_Security_02.html) 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.
0
 
LVL 44

Accepted Solution

by:
scrathcyboy earned 500 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.
0
 

Author Closing Comment

by:didjeridoo
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.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Imagine a situation that you have installed SSL (http://en.wikipedia.org/wiki/Secure_Sockets_Layer) Certificate on your Cisco ASA (Cisco Adaptive Security Appliance) firewall. Installation of SSL certificate on ASA is an another topic for which you …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

821 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