These properties are on the VideoElement, but the changes are on the trunk, and will be formally be released at the end of this sprint.
var video:VideoElement = new VideoElement(new NetLoader(), new URLResource([my video url]));
video.smoothing = true;
Image elements don't have this property yet, but AFAIK there isn't a smoothing property for the flash.display.Loader (the flash display object behind the ImageElement). We may look into more advanced smoothing techniques using bitmap data, if the default flash scaling routines aren't producing sufficient scaling. Thanks for the suggestions, keep them coming.
good to hear, that you're working on this issue.
you're right the loader class doesn't have any smoothing property, that's obvious ... but after loading an image you can set the smoothing of the Bitmap you get out of loader.content. As a workaround for now I'm using it exactly like this, but this isn't nice at all....
(((mediaPlayer.view as Sprite).getChildAt(0) as Loader).content as Bitmap).smoothing = true;
beyond that I enjoy the framework very much, so keep up the fantastic work
1 person found this helpful
That'll work if the content being loaded is a Bitmap, but not otherwise.
To Ryan's point, we're trying to add APIs for controlling the most common config options (like video smoothing). For less common ones like this, but which are common for you, you could create a custom subclass of ImageElement (SmoothedImageElement?) which overrides the processReadyState method, and set the Bitmap's smoothing property in that method (where the Loader is accessible). This would allow you to reuse SmoothedImageElement anywhere you want Bitmap smoothing to occur.
yeah that's a good point, thanks for your quick reply
you can apply smoothing to video using the smoothing property. Along with smoothin gyou can also use the deblocking property to remove compression artifacts in the video. See this article for video smoothing
Similarly you can also apply smoothing to image in flash using the smoothing property. See this article to implement smoothing on image