Dear all,
I am facing a small issue while loading the image from remote server. And
the code for Image component is as follows.
import flash.display.Bitmap;
import mx.controls.Image;
public class SmoothImage extends Image
{
override protected function updateDisplayList (unscaledWidth :
Number, unscaledHeight : Number) : void
{
super.updateDisplayList (unscaledWidth,
unscaledHeight);
// checks if the image is a bitmap
if (content is Bitmap)
{
var bitmap : Bitmap = content as Bitmap;
if (bitmap != null && bitmap.smoothing == false)
{
bitmap.smoothing = true;
}
}
}
}
I have also loaded the crossdomain.xml. But still getting the securiety
sendbox error. The error is as below
SecurityError: Error #2122: Security sandbox violation
Can anyone please help on this please?
Best Regards,
Nishant
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.