tags:

views:

35

answers:

2

I've got a Flex application that loads without issue when offline, but once I embed it in a webpage it hangs on “Loading…”:

alt text

I've tried fiddling with the -use-network compile flag to no avail.

I've also watched the network traffic with Charles, and I see two requests for the SWF (ie, GET /foo.swf), both of which complete successfully, then nothing else.

What am I missing?

Edit: I've determined that it's not a problem with the SWF — when I run a server using python -m SimpleHTTPServer, everything loads and runs properly. It only appears to break when I'm using Django's static media server.

+1  A: 

Do you use debug version of Flash Player? If no, install it and hopefully you will see the problem.

Maxim Kachurovskiy
Yes, I am using the debug Flash player (according to [Adobe's test site](http://kb2.adobe.com/cps/155/tn_15507.html)), and unfortunately I don't get any errors.
David Wolever
A: 

After some trial and error, I've determined that the problem "was caused" by Django's gzip middleware. When I turned that off, the swf loaded properly and everything was happy. I have no idea why this might have been, though…

David Wolever