Hey David, Guy, On Mon, Sep 8, 2008 at 7:59 PM, David Pariente <[EMAIL PROTECTED]> wrote: >> ----- Mensaje original ---- >> De: Guy Morton <[EMAIL PROTECTED]> >> >> You need to turn on bitmap smoothing. Look at the BitMap class in the help >> docs. eg
Keep in mind that to be able to smoothen your images you need to access the bitmap data of your loaded image, this has some security implications as you can only read that for images inside your security sandbox. This also implies that your player will have to try to download the crossdomain.xml file for the image you want to make smooth before you actually smooth it. Afterwards, it'll be too late. Also, if you are not careful and you try to access the bitmap data but you were not allowed to do so, you'll get an ugly security violation runtime error. Check out this example: http://rojored.googlecode.com/svn/trunk/docs/examples/image/i01/bin/Main.swf The first image is allowed to be loaded as data by the crossdomain.xml in my site. But if you change the URL to the other image for which bitmap data access is forbidden without turning off smoothing, you'll see the error I'm talking about. Here's the smoothing part of the component: http://code.google.com/p/rojored/source/browse/trunk/src/com/rojored/view/controls/Image.as#410 Feel free to grab it if it works for you! Cheers, G. -- gabriel montagné láscaris comneno http://rojored.com t/506.8392.2040