Simple enough. In PHP:
http://chattyfig.figleaf.com/mailman/htdig/flashcoders/2004-November/125057.html
While the above example seem to be focused on SendAndLoad, but the process
would be just the same for file/image loading.
Or in ASP:
http://chattyfig.figleaf.com/mailman/htdig/flashcoders/2005-March/132835.html
(you might have to make the target url a parameter, and change the
contentType)
Zeh
i want to know the second method how to do,have any Data in this?
赵洪日
2006-11-09
发件人: Zeh Fernando
发送时间: 2006-11-08 19:44:33
收件人: Flashcoders mailing list
抄送:
主题: 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
.
--------------------------------------------------------------------------------
_______________________________________________
[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
_______________________________________________
[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