0

I'm trying to load an image from another server into my Flash file and then turn it into a bitmap, so I can use it more than once. I used the code here. It works within the Flash program, but when I run the .swf in a browser, the bitmap comes out blank (white).

The same problem was described here, but I've already used System.security.loadPolicyFile to load a crossdomain.xml file. That file is set to allow access from all domains. However, the image is still coming out blank.

Using the browser's developer tools, I can see that the both the crossdomain.xml file and the original image file are being downloaded.

Any ideas why it's not working?

You can see the .swf file here.

Community
  • 1
  • 1
  • the swf is loading the image for me - i'm using FF39 – Rich Aug 16 '15 at 16:25
  • hmm...I've checked it on FF39 (as well as Chrome and Safari) on two Macs running 10.9, and it's not working. To clarify, a few images that I'm not using `draw` on are showing up. But for me, it's showing white under the copy "stars in Woody Allen's Gianni Schicchi". There should be an image there. – notGettingStabbed Aug 16 '15 at 20:02
  • ah you're right it's not displaying for me either. But I also can't see any requests for that other file or any crossdomain reqeusts. just requests for the 2 images that are loading. – Rich Aug 16 '15 at 20:08
  • Interesting. You're right; neither FF nor Vivaldi show the images or crossdomain.xml file in Network—but Chrome does. Anyway, the clown image under "Pagliacci" is also crossdomain (which is showing in FF), but I'm just using the JPEG as-is. Anyway, thanks for looking into it. But unless you're still interested in solving the problem, don't worry about it—I've reworked the .swf so a bunch of smaller images are hosted and the "bed" image is included in the file. – notGettingStabbed Aug 16 '15 at 21:04
  • no problem, I'm happy to leave it if you've changed tack. – Rich Aug 16 '15 at 21:39

0 Answers0