Flash 10 and HttpHandler serving swf file issues

I show Flash objects by specifying Movie and Src parameters, as well as an src attribute to embed in an HttpHandler with a file name as QueryString.

<OBJECT codeBase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7.0.19.0" classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 width="468" height="60">
  <PARAM NAME="Movie" VALUE="/image.ashx?serverencoded=true&amp;path=%2fapp_data%2fconfiguration%2faccount%2f21658260-9a62-425b-abb7-496ffde599a5%2fcreatives%2fswf_test_bannerA(4).swf">
  <PARAM NAME="Src" VALUE="/image.ashx?serverencoded=true&amp;path=%2fapp_data%2fconfiguration%2faccount%2f21658260-9a62-425b-abb7-496ffde599a5%2fcreatives%2fswf_test_bannerA(4).swf">
  <embed src="/image.ashx?serverencoded=true&path=%2fapp_data%2fconfiguration%2faccount%2f21658260-9a62-425b-abb7-496ffde599a5%2fcreatives%2fswf_test_bannerA(4).swf&rnd=34d5" quality="high" wmode="opaque" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="468" height="60">
  </embed>
</OBJECT>

It works fine with the installed Falsh 9 player. After installing Flash 10, a white background is displayed, and when I right-click an object, "Movie not loaded" appears as a disabled menu item in the Flash context menu.

If I specify the Movie and Src parameters in the actual swf file, it will work!

Remember: Running the code works with Flash 9, but not 10. There were no changes to the code at all ...

+3
source share
1 answer

Answering my own question:

I configured the HTTP header to host the content as follows:

HTTP/1.1 200 OK
Content-Disposition: ; _ = checkimage.jpg
-: 76127
Content-Type: image/JPEG

Flash 10, SWF, , :

HTTP/1.1 200 OK
Content-Disposition: filename = checkimage.jpg
-: 76127
Content-Type: image/JPEG

. : http://www.adobe.com/devnet/flashplayer/articles/fplayer10_security_changes_02.html#head32

+3

Source: https://habr.com/ru/post/1699050/


All Articles