Thanks jd.

On 22/07/06, John Dowdell <[EMAIL PROTECTED]> wrote:
If the foreign data acknowledges you (via a policy declaration on
their server), or if your own server proxies that data yourself, then
the ability to get inside that bitmap data is available.

I don't see the point of restricting access to BitmapData from another
server when all you have to do to get at it is use a proxy script on
your own server.  Here's an example:

http://www.neave.com/temp/proxy.php?proxy_url=http://www.google.com/intl/en/images/logo.gif

The image looks as though it's coming from my server but it's actually
coming from a domain I don't have server-side access to.  So from
Flash's point of view, there's no security risk.  In AS3:

var request:URLRequest = new
URLRequest("http://www.google.com/intl/en/images/logo.gif";);
var loader:Loader = new Loader();
loader.load(request);
addChild(loader);

would work fine, but I can't use BitmapData methods on the image.  If
I replace the URL with the proxied one above, I'd be able to use
BitmapData without any problem.  As far as I can see, any potential
"hacker" could use a proxy script like this so I don't see what
security benefit there is apart from just annoying developers!

I'm now left with two options: 1) either proxy the image so I can
access BitmapData (which costs me bandwidth and is much slower than
direct access, especially if you're accessing many images at once) or
2) don't use BitmapData and put up with having the images pixelated
when scaled or rotated.  Either way it doesn't make me happy :(

Paul.
_______________________________________________
[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