Solved

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

Posted on 2008-10-09
4
744 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
[X]
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
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

752 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