Friday, January 18, 2008

flash bitmapdata crossdomain

This is more note to myself- I needed to load some images from another domain for use with flash bitmapdata.draw() . All went fine until the site was actually online- all of a sudden there's no images but no error messages or anything.. As it turns out, there is security sandbox limitations in flash for accessing bitmapdata across domains- but luckily you can overcome this by using crossdomain.xml AND pointing flash to get it with"http://other.domain/crossdomain.xml") for as2 and loaderContext.checkPolicyFile = true on as3 . Of course this works only if you have access to the crossdomain.xml on the other domain..

...and this seems to only work on flash players > 8.0.24