There is an issue with loading an extermal JPEGs form a remote server.
It seems to be a bug.
I am loading a JPG image to a movie clip and cloning it using
Bitmap.draw(input_mc).
(SWF is hosted on domain A, JPG hosted on domain B.)
In this case loaded JPEG behaves exactly as an SWF loaded from a remore
server %\ (cross-domain data loading)
This means that it wount permit scripting it %|
So I am getting only white screen instead of a bitmap representation of
a symbol beeing cloned using BitmapData.
Since I can't add System.security.allowDomain("*"); to a JPEG file
The question is:
- any ideas how to access BitmapData of a remotely downloaded domain
(NOT the same as where SWF hosted )

Even with the cross domain policy xml file it won't work.

The only way (that I know) is creating a server-side script (say, a simple script in PHP) on your server that reads the remote file and outputs it. That way, instead of loading the JPEG file, you load the local PHP script, but passing the remote JPEG as the parameter.

It will make your tunnel all image viewing through your server, but it works.


- 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