|
-
Product Designer
Image smoothing w/o data access?
Loader.content.smoothing = true;
The line above triggers the so called pixel-level access to an image. Basically it's like using the BitmapData.draw() method. Images that don't reside in the same sandbox will through an exception when being loaded.
Is there a way to enable image smoothing on a static/global level?
This thing sucks big time. Image smoothing is nothing like data access... I can't understand why Adobe did this..
Altruism does not exist. Sustainability must be made profitable.
-
Senior Member
shot in the dark -- what would happen if you took the loader.content and forced a new BitmapData to draw() it with the smooth parameter set true?
-
Product Designer
The problem is that any access (either direct or indirect) to the Bitmap object representing a remotelly loaded image will trigger the security lock.
I foolishly tried to add the loader as a child of a new sprite and using the BitmapData.draw() method on the sprite, but obviously the method is called recursively within the children of a drawn object.
This is so bad. It's a logical pit.
And I am stuck on an application I can't finish building because of this very lame issue with the Flash Player. Obviously I can't get the other part to place crossdomain policies specifically for me, otherwise I would have already solved the problem.
What a shame.
Altruism does not exist. Sustainability must be made profitable.
-
Senior Member
Could you write a PHP script to copy the image to your server on request?
You don't even need GD, you can just do something like:
$img = implode("",file($webaddress));
$handle = fopen("localImage.jpg","w");
fwrite($handle,$img);
fclose($handle);
-
Product Designer
I've thought about that. Unfortunatelly this is not feasible: it could generate hundreds of dollars in hosting expenses when the app gets a broad audience...
uhmmm
Altruism does not exist. Sustainability must be made profitable.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|