0615660463
MIS
Hello!
I know I might be the 99999999991 to say that but I will say it...I'm a beginer with flash and I have a problem...
I'm building a photo gallery which loads jpg photos inside a loader component by using MovieClipLoader.
Everything works just great but my only problem is that I can't scale the content (the jpg's) to the size of the loader component.
I tried everything but the photos are loading bigger then the loader, and I want to have the photos at a bigger resolution then the loader so that I could have good quality on any screen resolution. Here's the actionscript I used, if it's necessary:
//------------------MovieClip Loader---------\\
var mcLoader:MovieClipLoader = new MovieClipLoader ();
var myListener:Object = new Object ();
mcLoader.addListener(myListener)
myListener.onLoadProgress = function (target_mc,bytesLoaded,bytesTotal) {
extLoader_mc._visible = true;
var pctLoaded = Math.round(bytesLoaded/bytesTotal*100);
extLoader_mc.extLoaderBar_mc._xscale = pctLoaded;
extLoader_mc.extLoadinBarLines_mc._xscale = pctLoaded-1;
extLoader_mc.pct_txt.text = pctLoaded;
if (bytesLoaded >= bytesTotal) {
extLoader_mc._visible = false;
}
}
mcLoader.loadClip("pics/zernike1.jpg",picViewer_mc.picLoader);
Thanks a lot!
I know I might be the 99999999991 to say that but I will say it...I'm a beginer with flash and I have a problem...
I'm building a photo gallery which loads jpg photos inside a loader component by using MovieClipLoader.
Everything works just great but my only problem is that I can't scale the content (the jpg's) to the size of the loader component.
I tried everything but the photos are loading bigger then the loader, and I want to have the photos at a bigger resolution then the loader so that I could have good quality on any screen resolution. Here's the actionscript I used, if it's necessary:
//------------------MovieClip Loader---------\\
var mcLoader:MovieClipLoader = new MovieClipLoader ();
var myListener:Object = new Object ();
mcLoader.addListener(myListener)
myListener.onLoadProgress = function (target_mc,bytesLoaded,bytesTotal) {
extLoader_mc._visible = true;
var pctLoaded = Math.round(bytesLoaded/bytesTotal*100);
extLoader_mc.extLoaderBar_mc._xscale = pctLoaded;
extLoader_mc.extLoadinBarLines_mc._xscale = pctLoaded-1;
extLoader_mc.pct_txt.text = pctLoaded;
if (bytesLoaded >= bytesTotal) {
extLoader_mc._visible = false;
}
}
mcLoader.loadClip("pics/zernike1.jpg",picViewer_mc.picLoader);
Thanks a lot!