Hello everybody,
I can’t get working the ■■■■■■ forcesmoothing…
The case is this: i have a slideshow (AS2) which dynamically loads images from an XML file…all of them anyway are loaded with a really bad quality (jagged edges and so on). I want to enable the forcesmoothing propoerty in the code but i can’t get it working, they still are loading non anti-aliased. I am novice so i think it’s possible that i am doing something wrong in the code…i will really appreciate any opinion about it.
I am posting the function that refers on loading images :
function callFullImage(myNumber) {
myURL = myImages[myNumber].attributes.full_url;
myTitle = myImages[myNumber].attributes.title;
_root.createEmptyMovieClip("fullImage_mc",_root.getNextHighestDepth());
fullImage_mc._x = _root.full_x;
fullImage_mc._y = _root.full_y;
var fullClipLoader = new MovieClipLoader();
var fullPreloader = new Object();
fullClipLoader.addListener(fullPreloader);
fullPreloader.onLoadInit = function(mc:MovieClip) {
mc.forceSmoothing = true;
};
fullPreloader.onLoadStart = function(target) {
target.createTextField("my_txt",fullImage_mc.getNextHighestDepth(),0,0,200,20);
target.my_txt.selectable = false;
};
fullPreloader.onLoadProgress = function(target, loadedBytes, totalBytes) {
target.my_txt.text = Math.floor((loadedBytes/totalBytes)*100) + "%";
var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0xC0C0C0;
my_fmt.font = "LTErgo"
my_fmt.size = 13
target.my_txt.embedFonts = true;
target.my_txt.setTextFormat(my_fmt);
};
fullPreloader.onLoadComplete = function(target) {
new Tween(target, "_alpha", Strong.easeOut, 0, 100, .5, true);
target.my_txt.removeTextField();
target.createTextField("my_txt1",fullImage_mc.getNextHighestDepth(),660,751,1000,400);
target.my_txt1.selectable = false;
target.my_txt1.text = myTitle;
var my_fmt1:TextFormat = new TextFormat();
my_fmt1.color = 0xB8B8B8;
my_fmt1.font = "LTErgo"
my_fmt1.size = 15
my_fmt1.letterSpacing = 2.2;
my_fmt1.leading = -7;
target.my_txt1.embedFonts = true;
target.my_txt1.antiAliasType = "advanced";
target.my_txt1.sharpness = 50;
target.my_txt1.setTextFormat(my_fmt1);
};
fullClipLoader.loadClip("full_images/"+myURL,fullImage_mc);
}