Hi,
I have a tutorial for applying smoothing to bitmap data so my images will scale smoothly. Can someone help me to understand how I can apply it to my existing code?
Code:_global.smoothImageLoad = function(imgURL, targetMovie) { var i=0 do { i++ } while (eval("_root.smoothImageLoadTemp"+i) != undefined) tmc = _root.createEmptyMovieClip("smoothImageLoadTemp"+i, _root.getNextHighestDepth()) tmc.createEmptyMovieClip("ti", tmc.getNextHighestDepth()) tmc.tm = targetMovie with(tmc) { tmcl = new MovieClipLoader() tmcl.onLoadComplete = function() { ti.onEnterFrame = function() { pixelData = new flash.display.BitmapData(ti._width, ti._height); pixelData.draw(ti); tm.attachBitmap(pixelData, 1, true, true); tm.smoothImageLoadComplete() removeMovieClip(ti._parent) } } tmcl.loadClip(imgURL, tmc.ti) } }Firstly, I have the mainMenu .swf then I have gallery sub .swfs loaded into the main. Should the actionscript go into the mainMenu or the Gallery?Code:smoothImageLoad("image.jpg", mytargetmc)


Reply With Quote
. Thanks Gparis
