It's a security issue. From the docs: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Loader.html
"If the loaded content is an image, its data cannot be accessed by a SWF file outside of the security sandbox, unless the domain of that SWF file was included in a URL policy file at the origin domain of the image."
If you listen to the security events, you'll probably see it giving an error. Loader
works because you're just accessing the image, so it's fine, however URLLoader
in BINARY
mode won't as you're trying to access the pixel data, hence the security error. If you tried to access the pixel data through the Loader
, you'll probably get the same error.
Either just load it without accessing the BitmapData
behind (includes applying filters etc), or use a cross domain file