my function is
function handleThumbRelease():Void {
var which:String = this._parent._name;
var num:Number = Number(which.substr(6));
thumbSelected = num;
//Create a reference to the root - **
var home:Object = this;
if (!mainTL.large_mc) {
//Create a temp holder to load the image into (modify the depth as necessary, but don't use getNextHighestDepth) - **
home.createEmptyMovieClip("tempHolder",1, {_alpha:0});
mainTL.attachMovie("large.box", "bgroundBox_mc", mainTL.getNextHighestDepth(), {_alpha:0, _x:Stage.width/2, _y:Stage.height/2, _width:Stage.width, _height:Stage.height});
mainTL.attachMovie("mc.large_image", "large_mc", mainTL.getNextHighestDepth(), {_visible:false, _x:Stage.width/2, _y:Stage.height/2});
mainTL.bgroundBox_mc.colorTo(0x000000, 0);
mainTL.bgroundBox_mc.alphaTo(80, 1, 'easeInOutSine');
//Modify this to load the image into a temp holder - **
mcl2.loadClip(dirPath + gallery_obj.imagePath + "/" + library_obj.image[num].path,tempHolder);
enableThumbs(false);
enableButtons(false);
enableMainNav(false);
// mark as viewed
this.viewed = true;
this.alphaTo(35, 1, 'easeInOutSine');
this._parent.highlight.alphaTo(0, 1, 'easeOutExpo');
}
};
var mcl2_listener:Object = new Object();
mcl2_listener.onLoadInit(target:Object) {
var bmd:BitmapData = new BitmapData(target._width,target._height);
//When invoking the 'draw' method, you can set the smoothing to true - **
bmd.draw(target,null,null,null,null,true);
home.tempHolder.removeMovieClip();
//Now attach your nice and smooth bitmap to your movieclip - **
mainTL.large_mc.holder.attachBitmap(bmd,this.getNextHighestDepth(),null,true);
}
//Register the listener
mcl2.addListener(mcl2_listener);
and it gives me this error
')' or ',' expected
for this line
mcl2_listener.onLoadInit(target:Object) {
?