开发者

How do I allow smoothing in externally loaded images?

In Flash, I can go into the properties of an image in the library and check 'allow smoothing' to enable resampling when the image is scaled or rotated.

How can I achieve the same effect for images loaded dynamically by the 开发者_运维百科SWF from an external URL?


For AS2

take a look here: http://www.giordanopiazza.com/blog/flash/allow-smoothing-for-external-images-as2/

For AS3

set bitmap.smoothing = true;

example here http://newsourcemedia.com/blog/smoothing-dynamically-loaded-images-in-as3/


Seems there is no simple answer:

At this link http://www.actionscript.org/forums/showthread.php3?t=89255 some guy called Flash Gordon posted quite good class for it, so you have to play with it probably.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜