Add

 System.security.allowDomain("www.b.com");

in swf on a.com

You'll still need a crossdomain policy file on b.com to be able to load the 
image in an swf on a.com.

regards,
Muzak

----- Original Message ----- 
From: "Zeh Fernando" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Wednesday, November 08, 2006 12:27 PM
Subject: Re: [Flashcoders] about BitmapData.draw() crossdomain


>> when crossdomain , BitmapData.draw Expiration,the swf in a.com,and the jpg 
>> in b.com,have any Solution in this?
>
> No, you can't do a BitmapData.draw from content from other domain, regardless 
> of crossdomain policy files or whatnot. Solutions 
> are:
>
> 1. Use AS3 as this issue seem to have been solved
> 2. Use a server-side 'proxy' script (PHP/ASP/etc) to load images from domain 
> B through domain A
> 3. Have another SWF in domain B. The original SWF on domain A will load this 
> SWF (with proper allowDomain settings), ask the SWF 
> on domain B to load the image unto itself, do the .draw, then send the data 
> to the original SWF from domain A.
>
>
> Zeh


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to