RE: [Flashcoders] BitmapData and security.allowDomain

2006-07-06 Thread INK .

Yes. This is what we done so far.
Fopen(get.image.php?url_to_image=image)
BTW.  xml and images is loading ok arcoss all domains.
I am talking about a cross-domain scripting. The loaded JPEG acts
exactly as SWF file. 
When I am loading SWF from a remote domain with
System.security.allowDomain(*) inside it
It creates a bitmap clone of what I see. All JPEG fails.
I am unable to access bitmapData of remotely loaded JPG image.
The reason why it happening described here
ActionScript classes  security (System.security)  allowDomain
(security.allowDomain method)  

Take a look at the table.
JPEG acts the same way. I think it should not. 




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zeh
Fernando
Sent: Wednesday, July 05, 2006 4:20 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] BitmapData and security.allowDomain


 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 

___
Flashcoders@chattyfig.figleaf.com
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


___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] BitmapData and security.allowDomain

2006-07-04 Thread Zeh Fernando

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 


___
Flashcoders@chattyfig.figleaf.com
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