Using image's bitmaps that was loaded from another domain

Hi everyone,
I have following problem. I’m loading image from another domain and all is before i try to use it for pattern:

var pattern = new flash.display.BitmapData(loaded_mc._width, loaded_mc._height,true,0);

i’ve add this line to my code:"*");

and on the specified domain i have crossdomain.xml

<?xml version="1.0"?>
     <allow-access-from domain="*" />

BTW, i don’t know why but if i’m load XML from the same domain as image before i load image all works fine. i don’t know why.

Thank you for advance