transparent movie clip

  • ecu33
  • Novice
  • Novice
  • ecu33
  • Posts: 28
  • Loc: Eastern US

Post 3+ Months Ago

I have a flash gallery that has thumbnails on the bottom and a 300x300 image box in the middle, so that when the thumbnail is selected the appropriate image is loaded. My question is there any way that the gray box or movieclip that holds the images be transparent to that my intro tweening can be seen? Thanks in advance. Here is the code.

Code: [ Select ]
MovieClip.prototype.photoGallery = function(path, trgt, seed, maxSeed, format, fIn, thumbX, thumbY, thumbOutline, maskHeight, arrowSize, scrollSpeed, w, h, lbH, dist, jpgLoadTxt, txtXPos, txtYPos, txtStyle, fontName, txtSize, txtClr, html, bold, Italic, boxWidth, boxHeight, imageX, imageY, boxCentred, imageCentred, trgtImage) {
    _global.maxSeed = maxSeed;
    _global.seed = seed;
    _global.path = path;
    _global.thumbX = thumbX;
    _global.thumbY = thumbY;
    _global.format = format;
    _global.trgtImage = trgtImage;
    _global.imageCentred = imageCentred;
    _global.dist = dist;
    _global.boxWidth = boxWidth;
    _global.imageX = imageX;
    _global.imageY = imageY;
    _global.fIn = fIn;
    _global.scrollSpeed = scrollSpeed;
    seedOrig = seed;
    path._x = thumbX;
    path._y = thumbY;
    imageBox(boxHeight, imageY, boxCentred);
    thumbBox(thumbOutline, maskHeight);
    howManyNails(txtStyle, jpgLoadTxt, txtXPos, txtYPos, fontName, txtSize, txtClr, bdr, bdrClr, html, bold, italic);
    path.createEmptyMovieClip("thumbs", 1);
    path.thumbs._x = -dist;
    scrollMask(maskHeight, thumbX, thumbY);
    loadThumbnails(trgt, format, dist, prev_x, prev_w);
    drawBar(w, h, lbH, dist);
    onEnterFrame = function () {
        imageProgressBarRun();
        removeImageBar();
        imageSquash();
        imageCentre();
        loadIn(path.imageStuff.image);
        needArrows(arrowSize, dist, h);
        path.thumbs["thumb"+seed].onPress = Press;
        path.thumbs["thumb"+seed].onRelease = Release;
        path.thumbs["thumb"+seed].onEnterFrame = EnterFrame;
        if (allFadedIn != true) {
            loadingBarRun(txtStyle);
            if (seed<maxSeed) {
                prev_x = path.thumbs["thumb"+seed]._x;
                prev_w = path.thumbs["thumb"+seed]._width;
                if (path.thumbs["thumb"+seed]._width>0) {
                removeBars();
                    if (path.thumbs["thumb"+seed]._alpha>=100) {
                        _global.seed = seed += 1;
                        drawBar(w, h, lbH, dist, prev_x, prev_w);
                        loadThumbnails(trgt, format, dist, prev_x, prev_w);
                    } else {
                        loadIn(path.thumbs["thumb"+seed]);
                    }
                }
            } else if (seed == maxSeed && path.thumbs["thumb"+seed]._width>0) {
                loadOut(path.totalLB);
                loadOut(path.totalLBB);
                path[jpgLoadTxt].removeTextField();
                removeBars();
                loadIn(path.thumbs["thumb"+maxSeed]);
                if (path.thumbs["thumb"+seed]._alpha>100) {
                    allFadedIn = true;
                }
            }
        }
    };
};
//
// Fading functions
//
function loadIn(mc) {
    if (mc.getBytesLoaded() == mc.getBytesTotal() && mc._alpha<100 && mc._width>0) {
        if (mc._alpha<100) {
            mc._alpha += fIn;
        }
    }
}
function loadOut(mc) {
    mc._alpha -= fIn;
}
//
// Thumbnail loading, masking and scrolling functions
//
function thumbAlign() {
    if (alignThumbs == true) {
        _global.thumbX = thumbX=boxWidth-2*thumbX;
    }
}
function loadThumbnails(trgt, format, dist, prev_x, prev_w) {
    path.thumbs.createEmptyMovieClip("thumb"+seed, seed).loadMovie(trgt+seed+format+"?nocache="+getDate(), path.thumbs["thumb"+seed]);
    path.thumbs["thumb"+seed]._alpha = 0;
    path.thumbs["thumb"+seed]._x = prev_x+prev_w+dist;
}
function scrollMask(maskHeight, thumbX, thumbY) {
    path.createEmptyMovieClip("scrollMask", maxSeed+5);
    path.thumbs.setMask(path.scrollMask);
    path.scrollMask.lineStyle(.25, 0x999999, 100);
    path.scrollMask.beginFill(0xFF0000, 40);
    path.scrollMask.moveTo(0, 0);
    path.scrollMask.lineTo(Stage.width-2*thumbX, 0);
    path.scrollMask.lineTo(Stage.width-2*thumbX, maskHeight);
    path.scrollMask.lineTo(0, maskHeight);
    path.scrollMask.lineTo(0, 0);
    path.scrollMask.endFill();
}
function thumbBox(thumbOutline, maskHeight) {
    if (thumbOutline == true) {
        path.createEmptyMovieClip("thumbBox", 2);
        path.thumbBox.lineStyle(.25, 0x999999, 100);
        path.thumbBox.moveTo(-2, -2);
        path.thumbBox.lineTo(Stage.width-2*thumbX+2, -2);
        path.thumbBox.lineTo(Stage.width-2*thumbX+2, maskHeight+2);
        path.thumbBox.lineTo(-2, maskHeight+2);
        path.thumbBox.lineTo(-2, -2);
    }
}
function needArrows(arrowSize, dist, h) {
    if (path.scrollMask._width<path.thumbs._width) {
        if (runMeOnce != true) {
            drawArrows(arrowSize);
            placeArrows(arrowSize, dist, h);
            runMeOnce == true;
            path.arrows.arrowLeft._alpha = path.arrows.arrowRight._alpha=100;
        }
        path.arrows.arrowLeft.onPress = pAL;
        path.arrows.arrowRight.onPress = pAR;
        path.arrows.onMouseUp = rA;
        path.thumbs.onEnterFrame = scrollDirection;
    }
}
function drawArrows(arrowSize) {
    path.createEmptyMovieClip("arrows", 3);
    path.arrows.createEmptyMovieClip("arrowLeft", 1);
    path.arrows.arrowLeft.lineStyle(.25, 0x999999, 100);
    path.arrows.arrowLeft.beginFill(0x666666, 40);
    path.arrows.arrowLeft.moveTo(0, 0);
    path.arrows.arrowLeft.lineTo(0, 3*arrowSize/5);
    path.arrows.arrowLeft.lineTo(-arrowSize/2, 3*arrowSize/5);
    path.arrows.arrowLeft.lineTo(-arrowSize/2, 4*arrowSize/5);
    path.arrows.arrowLeft.lineTo(-arrowSize, 3*arrowSize/10);
    path.arrows.arrowLeft.lineTo(-arrowSize/2, -arrowSize/5);
    path.arrows.arrowLeft.lineTo(-arrowSize/2, 0);
    path.arrows.arrowLeft.lineTo(0, 0);
    path.arrows.arrowLeft.endFill();
    path.arrows.createEmptyMovieClip("arrowRight", 2);
    path.arrows.arrowRight.lineStyle(.25, 0x999999, 100);
    path.arrows.arrowRight.beginFill(0x666666, 40);
    path.arrows.arrowRight.moveTo(0, 0);
    path.arrows.arrowRight.lineTo(arrowSize/2, 0);
    path.arrows.arrowRight.lineTo(arrowSize/2, -arrowSize/5);
    path.arrows.arrowRight.lineTo(arrowSize, 3*arrowSize/10);
    path.arrows.arrowRight.lineTo(arrowSize/2, 4*arrowSize/5);
    path.arrows.arrowRight.lineTo(arrowSize/2, 3*arrowSize/5);
    path.arrows.arrowRight.lineTo(0, 3*arrowSize/5);
    path.arrows.arrowRight.lineTo(0, 0);
    path.arrows.arrowRight.endFill();
}
function placeArrows(arrowSize, dist, h) {
    if (thumbX+5>arrowSize) {
        path.arrows.arrowLeft._x = -1.2*dist-5;
        path.arrows.arrowRight._x = Stage.width-2*thumbX+dist+5;
        path.arrows.arrowRight._y = path.arrows.arrowLeft._y=arrowSize/5;
    } else {
        path.arrows.arrowLeft._x = arrowSize+5;
        path.arrows.arrowRight._x = 2*arrowSize;
        path.arrows.arrowRight._y = path.arrows.arrowLeft._y=-arrowSize-2*h;
    }
}
function pAL() {
    path.thumbs.thumbsMove = -1;
    path.thumbs.thumbsSlowDown=0;

}
function pAR() {
    path.thumbs.thumbsMove = 1;
    path.thumbs.thumbsSlowDown=0;

}
function rA() {
    path.thumbs.thumbsSlowDown=1;
}
function scrollDirection() {
    if (path.thumbs.thumbsMove == 1) {
        if(runOncei!=true){
            path.thumbs.scrollSpeed= scrollSpeed;
            runOncei=true;
        }    
        if(path.thumbs.thumbsSlowDown==0){
                runOncei=false;    
        }
        path.thumbs._x -= path.thumbs.scrollSpeed;
        if (path.thumbs._x<-(path.thumbs._width)+(Stage.width-(2*thumbX))){
            path.thumbs._x = -(path.thumbs._width)+(Stage.width-(2*thumbX));
        }
    } else if (path.thumbs.thumbsMove == -1) {
        if(runOncei!=true){
            path.thumbs.scrollSpeed= scrollSpeed;
            runOncei=true;
        }    
        if(path.thumbs.thumbsSlowDown==0){
            runOncei=false;    
        }
        path.thumbs._x += path.thumbs.scrollSpeed
        if (path.thumbs._x>-dist) {
            path.thumbs._x = -dist;
        }
    }
    if (path.thumbs.thumbsSlowDown==1 && path.thumbs.thumbsMove == 1){
        path.thumbs.scrollSpeed=0.85*path.thumbs.scrollSpeed;
        if(path.thumbs.scrollSpeed<=0.05 ){
            path.thumbs.thumbsMove=0;
            path.thumbs.thumbsSlowDown=0;
            runOncei=false;
        }
    } else if (path.thumbs.thumbsSlowDown==1 && path.thumbs.thumbsMove == -1){
        path.thumbs.scrollSpeed=0.85*path.thumbs.scrollSpeed;
        if(path.thumbs.scrollSpeed<=-0.05 ){
            path.thumbs.thumbsMove=0;
            path.thumbs.thumbsSlowDown=0;
            runOncei=false;
        }
    }
}
function drawBar(w, h, lbH, dist, prev_x, prev_w) {
    path.thumbs.createEmptyMovieClip("loadingBarBox"+seed, 2*maxSeed+seed);
    path.thumbs["loadingBarBox"+seed]._x = prev_x+prev_w+dist;
    path.thumbs["loadingBarBox"+seed].lineStyle(.25, 0x999999, 100);
    path.thumbs["loadingBarBox"+seed].moveTo(0, h);
    path.thumbs["loadingBarBox"+seed].lineTo(w, h);
    path.thumbs["loadingBarBox"+seed].lineTo(w, h-lbH);
    path.thumbs["loadingBarBox"+seed].lineTo(0, h-lbH);
    path.thumbs["loadingBarBox"+seed].lineTo(0, h);
    path.thumbs.createEmptyMovieClip("loadingBar"+seed, maxSeed+seed);
    path.thumbs["loadingBar"+seed]._xscale = 0;
    path.thumbs["loadingBar"+seed]._x = prev_x+prev_w+dist;
    path.thumbs["loadingBar"+seed].lineStyle(.25, 0x999999, 0);
    path.thumbs["loadingBar"+seed].beginFill(0x999999, 100);
    path.thumbs["loadingBar"+seed].moveTo(0, h);
    path.thumbs["loadingBar"+seed].lineTo(w, h);
    path.thumbs["loadingBar"+seed].lineTo(w, h-lbH);
    path.thumbs["loadingBar"+seed].lineTo(0, h-lbH);
    path.thumbs["loadingBar"+seed].lineTo(0, h);
    path.thumbs["loadingBar"+seed].endFill();
}
function loadingBarRun(txtStyle) {
    path.thumbs.byteL = path.thumbs["thumb"+seed].getBytesLoaded();
    path.thumbs["loadingBar"+seed]._xscale = (path.thumbs.byteL/path.thumbs["thumb"+seed].getBytesTotal())*100;
    loadingTxt(txtStyle);
    path.totalLB._xscale = (seed/maxSeed)*100;
}
function removeBars() {
    path.thumbs["loadingBar"+seed].removeMovieClip();
    path.thumbs["loadingBarBox"+seed].removeMovieClip();
    if (path.totalLB._alpha<0) {
        path.totalLB.removeMovieClip();
        path.totalLBB.removeMovieClip();
    }
}
//
// Thumbnail loading progress functions
//
function howManyNails(txtStyle, jpgLoadTxt, txtXPos, txtYPos, fontName, txtSize, txtClr, bdr, bdrClr, html, bold, italic) {
    path.createTextField(jpgLoadTxt, maxSeed, txtXPos, txtYPos, 200, 10);
    path[jpgLoadTxt].autosize = true;
    path[jpgLoadTxt].html = html;
    path[jpgLoadTxt].type = "dynamic";
    path[jpgLoadTxt].wordWrap = true;
    path[jpgLoadTxt].selectable = false;
    textFormat = new TextFormat();
    textFormat.font = fontName;
    textFormat.size = txtSize;
    textFormat.color = "0x"+txtClr;
    textFormat.bold = bold;
    textFormat.italic = italic;
    path[jpgLoadTxt].setNewTextFormat(textFormat);
    loadingTxt(txtStyle);
    xWidth = path[jpgLoadTxt].textWidth+10;
    yHeight = path[jpgLoadTxt].textHeight/2;
    path.createEmptyMovieClip("totalLBB", maxSeed+4);
    path.totalLBB._x = xWidth;
    path.totalLBB._y = txtYPos;
    path.totalLBB.lineStyle(.25, 0x999999, 100);
    path.totalLBB.moveTo(0, yHeight);
    path.totalLBB.lineTo(60, yHeight);
    path.totalLBB.lineTo(60, yHeight+(yHeight/2));
    path.totalLBB.lineTo(0, yHeight+(yHeight/2));
    path.totalLBB.lineTo(0, yHeight);
    path.createEmptyMovieClip("totalLB", maxSeed+3);
    path.totalLB._x = xWidth;
    path.totalLB._y = txtYPos;
    path.totalLB.lineStyle(.25, 0x999999, 0);
    path.totalLB.beginFill(0x999999, 100);
    path.totalLB.moveTo(0, yHeight);
    path.totalLB.lineTo(60, yHeight);
    path.totalLB.lineTo(60, yHeight+(yHeight/2));
    path.totalLB.lineTo(0, yHeight+(yHeight/2));
    path.totalLB.lineTo(0, yHeight);
    path.totalLB.endFill();
    path.totalLB._xscale = 0;
}
function loadingTxt(txtStyle) {
    if (txtStyle == 1) {
        path[jpgLoadTxt].text = maxSeed-seed-1+" thumbnails left to load. ";
    } else if (txtStyle == 2) {
        path[jpgLoadTxt].text = seed-1+" out of "+maxSeed+" thumbnails have loaded. ";
    } else if (txtStyle == 3) {
        if (maxSeed<10) {
            addSpace = " ";
        } else if (maxSeed<100) {
            addSpace = "   ";
        } else if (maxSeed<1000) {
            addSpace = "     ";
        }
        path[jpgLoadTxt].text = " "+seed-1+" / "+maxSeed+addSpace;
    } else if (txtStyle == 4) {
        path[jpgLoadTxt].text = "There are "+(maxSeed-seed-1)+" more thumbnails to load. ";
    }
}
//
// Main image box, loading, progress, positioning and size control functions
//
function imageBox(boxHeight, imageY, boxCentred) {
    path.createEmptyMovieClip("imageStuff", -10);
    if (boxCentred == true) {
        _global.imageX = imageX=((Stage.width/2)-(boxWidth/2));
    }
    path.imageStuff.createEmptyMovieClip("imageBox", -10);
    path.imageStuff.imageBox._x = -thumbX;
    path.imageStuff.imageBox._y = -thumbY;
    path.imageStuff.imageBox.lineStyle(.25, 0x999999, 100);
    path.imageStuff.imageBox.beginFill(0x666666, 100);
    path.imageStuff.imageBox.moveTo(imageX, imageY);
    path.imageStuff.imageBox.lineTo(imageX+boxWidth, imageY);
    path.imageStuff.imageBox.lineTo(imageX+boxWidth, imageY+boxHeight);
    path.imageStuff.imageBox.lineTo(imageX, imageY+boxHeight);
    path.imageStuff.imageBox.lineTo(imageX, imageY);
    path.imageStuff.imageBox.endFill();
    path.imageStuff.createEmptyMovieClip("image", -9);
    path.imageStuff.image._x = -thumbX+imageX;
    path.imageStuff.image._y = -thumbY+imageY;
}
function imageLoad() {
    path.imageStuff.image._alpha = 0;
    path.imageStuff.image.loadMovie(trgtImage+path.iLoadNumber+format+"?nocache="+getDate(), 1);
    }
function imageProgressBar() {
    barWidth = boxWidth/2;
    barHeight = barWidth/30;
    if (barHeight<5) {
        barHeight = 5;
    }
    path.imageStuff.createEmptyMovieClip("imageLoadingBarBox", maxSeed+2);
    path.imageStuff.imageLoadingBarBox.lineStyle(.25, 0x999999, 100);
    path.imageStuff.imageLoadingBarBox.moveTo(0, 0);
    path.imageStuff.imageLoadingBarBox.lineTo(barWidth, 0);
    path.imageStuff.imageLoadingBarBox.lineTo(barWidth, barHeight);
    path.imageStuff.imageLoadingBarBox.lineTo(0, barHeight);
    path.imageStuff.imageLoadingBarBox.lineTo(0, 0);
    path.imageStuff.createEmptyMovieClip("imageLoadingBar", maxSeed+1);
    path.imageStuff.imageLoadingBar.lineStyle(.25, 0x999999, 0);
    path.imageStuff.imageLoadingBar.beginFill(0x666666, 100);
    path.imageStuff.imageLoadingBar.moveTo(0, 0);
    path.imageStuff.imageLoadingBar.lineTo(barWidth, 0);
    path.imageStuff.imageLoadingBar.lineTo(barWidth, barHeight);
    path.imageStuff.imageLoadingBar.lineTo(0, barHeight);
    path.imageStuff.imageLoadingBar.lineTo(0, 0);
    path.imageStuff.imageLoadingBar.endFill();
    path.imageStuff.imageLoadingBar._xscale = 0;
    path.imageStuff.imageLoadingBarBox._x = path.imageStuff.imageLoadingBar._x=-thumbX+imageX+boxWidth/4;
    path.imageStuff.imageLoadingBarBox._y = path.imageStuff.imageLoadingBar._y=-thumbY+imageY+(2*path.imageStuff.imageBox._height/3);
}
function imageProgressBarRun() {
    path.imageStuff.imageLoadingBar._xscale = (path.imageStuff.image.getBytesLoaded()/path.imageStuff.image.getBytesTotal())*100;
}
function removeImageBar() {
    if (path.imageStuff.imageLoadingBar._xscale>=100) {
        path.imageStuff.imageLoadingBar.removeMovieClip();
        path.imageStuff.imageLoadingBarBox.removeMovieClip();
    }
}
function imageCentre() {
    if (imageCentred == true && path.imageStuff.image._width>0) {
        if (r1 != true) {
            pIX = path.imageStuff.image._x;
            pIY = path.imageStuff.image._y;
            r1 = true;
        }
        path.imageStuff.image._x = pIX+(path.imageStuff.imageBox._width-path.imageStuff.image._width)/2;
        path.imageStuff.image._y = pIY+(path.imageStuff.imageBox._height-path.imageStuff.image._height)/2;
    }
}
function imageSquash() {
    if (path.imageStuff.image._width>path.imageStuff.imageBox._width && path.imageStuff.image._height<path.imageStuff.imageBox._height && path.imageStuff.image._width>0) {
        path.imageStuff.image._xscale = (path.imageStuff.imageBox._width/path.imageStuff.image._width)*100;
        path.imageStuff.image._yscale = path.imageStuff.image._xscale;
    } else if (path.imageStuff.image._height>path.imageStuff.imageBox._height && path.imageStuff.image._width<path.imageStuff.imageBox._width && path.imageStuff.image._width>0) {
        path.imageStuff.image._yscale = (path.imageStuff.imageBox._height/path.imageStuff.image._height)*100;
        path.imageStuff.image._xscale = path.imageStuff.image._yscale;
    } else if (path.imageStuff.image._height>path.imageStuff.imageBox._height && path.imageStuff.image._width>path.imageStuff.imageBox._width && path.imageStuff.image._width>0) {
        xS = (path.imageStuff.imageBox._width/path.imageStuff.image._width)*100;
        yS = (path.imageStuff.imageBox._height/path.imageStuff.image._height)*100;
        if (xS<yS) {
            path.imageStuff.image._xscale = path.imageStuff.image._yscale=xS;
        } else if (xS>yS) {
            path.imageStuff.image._xscale = path.imageStuff.image._yscale=yS;
        }
    }
}
function squashReset() {
    path.imageStuff.image._xscale = path.imageStuff.image._yscale=100;
}
//
// Image selection functions
//
function Release() {
    if (path.iLoadNumber != this.iNumber) {
        this.b = true;
        path.iLoadNumber = this.iNumber;
        squashReset();
        imageLoad();
        imageProgressBar();
    }
}
function ReleaseOutside() {
    this.b = false;
}
function EnterFrame() {
    if (this.runOnce != true) {
        this.iNumber = seed;
        this.runOnce = true;
    }
    if (this.b == true) {
        this.blink();
    }
}
MovieClip.prototype.blink = function() {
    (this.blinkTimer == null) ? this.blinkTimer=getTimer()+40 : null;
    if (getTimer()>=this.blinkTimer) {
        this.times += 0.5;
        if (this.times == .5 || this.times == 1.5) {
            this._alpha = 30;
        } else if (this.times == 1 || this.times == 2) {
            this._alpha = 100;
        }
        this.blinkTimer = null;
    }
    if (this.times>=2) {
        this._alpha = 100;
        this.blinkTimer = null;
        this.b = false;
        this.times = 0;
    }
};
//
//
//usage
//
//
_root.createEmptyMovieClip("empty", 1);
photoGallery(_root.empty/*path*/, "thumbnails/BAB_"/*target*/, 1/*seed*/, 6/*maxSeed*/, ".jpg"/*format*/, 10/*fIn*/, 254/*thumbX*/, Stage.height-100/*thumbY*/, false/*thumbOutline*/, 80/*maskHeight*/, 15/*arrowSize*/, 10/*scrollSpeed*/, 50/*w*/, 10/*h*/, 3/*lBh*/, 5/*dist*/, jpgCount/*jpgLoadTxt*/, 0/*txtXPos*/, -20/*txtYPos*/, 2/*txtStyle*/, "Arial"/*fontName*/, 11/*txtSize*/, 999999/*txtClr*/, false/*html*/, false/*bold*/, false/*italic*/, 300/*boxWidth*/, 300/*boxHeight*/, 0/*imageX*/, 50/*imageY*/, true/*boxCentred*/, true/*imageCentred*/, "images/BAB_"/*trgtImage*/);
  1. MovieClip.prototype.photoGallery = function(path, trgt, seed, maxSeed, format, fIn, thumbX, thumbY, thumbOutline, maskHeight, arrowSize, scrollSpeed, w, h, lbH, dist, jpgLoadTxt, txtXPos, txtYPos, txtStyle, fontName, txtSize, txtClr, html, bold, Italic, boxWidth, boxHeight, imageX, imageY, boxCentred, imageCentred, trgtImage) {
  2.     _global.maxSeed = maxSeed;
  3.     _global.seed = seed;
  4.     _global.path = path;
  5.     _global.thumbX = thumbX;
  6.     _global.thumbY = thumbY;
  7.     _global.format = format;
  8.     _global.trgtImage = trgtImage;
  9.     _global.imageCentred = imageCentred;
  10.     _global.dist = dist;
  11.     _global.boxWidth = boxWidth;
  12.     _global.imageX = imageX;
  13.     _global.imageY = imageY;
  14.     _global.fIn = fIn;
  15.     _global.scrollSpeed = scrollSpeed;
  16.     seedOrig = seed;
  17.     path._x = thumbX;
  18.     path._y = thumbY;
  19.     imageBox(boxHeight, imageY, boxCentred);
  20.     thumbBox(thumbOutline, maskHeight);
  21.     howManyNails(txtStyle, jpgLoadTxt, txtXPos, txtYPos, fontName, txtSize, txtClr, bdr, bdrClr, html, bold, italic);
  22.     path.createEmptyMovieClip("thumbs", 1);
  23.     path.thumbs._x = -dist;
  24.     scrollMask(maskHeight, thumbX, thumbY);
  25.     loadThumbnails(trgt, format, dist, prev_x, prev_w);
  26.     drawBar(w, h, lbH, dist);
  27.     onEnterFrame = function () {
  28.         imageProgressBarRun();
  29.         removeImageBar();
  30.         imageSquash();
  31.         imageCentre();
  32.         loadIn(path.imageStuff.image);
  33.         needArrows(arrowSize, dist, h);
  34.         path.thumbs["thumb"+seed].onPress = Press;
  35.         path.thumbs["thumb"+seed].onRelease = Release;
  36.         path.thumbs["thumb"+seed].onEnterFrame = EnterFrame;
  37.         if (allFadedIn != true) {
  38.             loadingBarRun(txtStyle);
  39.             if (seed<maxSeed) {
  40.                 prev_x = path.thumbs["thumb"+seed]._x;
  41.                 prev_w = path.thumbs["thumb"+seed]._width;
  42.                 if (path.thumbs["thumb"+seed]._width>0) {
  43.                 removeBars();
  44.                     if (path.thumbs["thumb"+seed]._alpha>=100) {
  45.                         _global.seed = seed += 1;
  46.                         drawBar(w, h, lbH, dist, prev_x, prev_w);
  47.                         loadThumbnails(trgt, format, dist, prev_x, prev_w);
  48.                     } else {
  49.                         loadIn(path.thumbs["thumb"+seed]);
  50.                     }
  51.                 }
  52.             } else if (seed == maxSeed && path.thumbs["thumb"+seed]._width>0) {
  53.                 loadOut(path.totalLB);
  54.                 loadOut(path.totalLBB);
  55.                 path[jpgLoadTxt].removeTextField();
  56.                 removeBars();
  57.                 loadIn(path.thumbs["thumb"+maxSeed]);
  58.                 if (path.thumbs["thumb"+seed]._alpha>100) {
  59.                     allFadedIn = true;
  60.                 }
  61.             }
  62.         }
  63.     };
  64. };
  65. //
  66. // Fading functions
  67. //
  68. function loadIn(mc) {
  69.     if (mc.getBytesLoaded() == mc.getBytesTotal() && mc._alpha<100 && mc._width>0) {
  70.         if (mc._alpha<100) {
  71.             mc._alpha += fIn;
  72.         }
  73.     }
  74. }
  75. function loadOut(mc) {
  76.     mc._alpha -= fIn;
  77. }
  78. //
  79. // Thumbnail loading, masking and scrolling functions
  80. //
  81. function thumbAlign() {
  82.     if (alignThumbs == true) {
  83.         _global.thumbX = thumbX=boxWidth-2*thumbX;
  84.     }
  85. }
  86. function loadThumbnails(trgt, format, dist, prev_x, prev_w) {
  87.     path.thumbs.createEmptyMovieClip("thumb"+seed, seed).loadMovie(trgt+seed+format+"?nocache="+getDate(), path.thumbs["thumb"+seed]);
  88.     path.thumbs["thumb"+seed]._alpha = 0;
  89.     path.thumbs["thumb"+seed]._x = prev_x+prev_w+dist;
  90. }
  91. function scrollMask(maskHeight, thumbX, thumbY) {
  92.     path.createEmptyMovieClip("scrollMask", maxSeed+5);
  93.     path.thumbs.setMask(path.scrollMask);
  94.     path.scrollMask.lineStyle(.25, 0x999999, 100);
  95.     path.scrollMask.beginFill(0xFF0000, 40);
  96.     path.scrollMask.moveTo(0, 0);
  97.     path.scrollMask.lineTo(Stage.width-2*thumbX, 0);
  98.     path.scrollMask.lineTo(Stage.width-2*thumbX, maskHeight);
  99.     path.scrollMask.lineTo(0, maskHeight);
  100.     path.scrollMask.lineTo(0, 0);
  101.     path.scrollMask.endFill();
  102. }
  103. function thumbBox(thumbOutline, maskHeight) {
  104.     if (thumbOutline == true) {
  105.         path.createEmptyMovieClip("thumbBox", 2);
  106.         path.thumbBox.lineStyle(.25, 0x999999, 100);
  107.         path.thumbBox.moveTo(-2, -2);
  108.         path.thumbBox.lineTo(Stage.width-2*thumbX+2, -2);
  109.         path.thumbBox.lineTo(Stage.width-2*thumbX+2, maskHeight+2);
  110.         path.thumbBox.lineTo(-2, maskHeight+2);
  111.         path.thumbBox.lineTo(-2, -2);
  112.     }
  113. }
  114. function needArrows(arrowSize, dist, h) {
  115.     if (path.scrollMask._width<path.thumbs._width) {
  116.         if (runMeOnce != true) {
  117.             drawArrows(arrowSize);
  118.             placeArrows(arrowSize, dist, h);
  119.             runMeOnce == true;
  120.             path.arrows.arrowLeft._alpha = path.arrows.arrowRight._alpha=100;
  121.         }
  122.         path.arrows.arrowLeft.onPress = pAL;
  123.         path.arrows.arrowRight.onPress = pAR;
  124.         path.arrows.onMouseUp = rA;
  125.         path.thumbs.onEnterFrame = scrollDirection;
  126.     }
  127. }
  128. function drawArrows(arrowSize) {
  129.     path.createEmptyMovieClip("arrows", 3);
  130.     path.arrows.createEmptyMovieClip("arrowLeft", 1);
  131.     path.arrows.arrowLeft.lineStyle(.25, 0x999999, 100);
  132.     path.arrows.arrowLeft.beginFill(0x666666, 40);
  133.     path.arrows.arrowLeft.moveTo(0, 0);
  134.     path.arrows.arrowLeft.lineTo(0, 3*arrowSize/5);
  135.     path.arrows.arrowLeft.lineTo(-arrowSize/2, 3*arrowSize/5);
  136.     path.arrows.arrowLeft.lineTo(-arrowSize/2, 4*arrowSize/5);
  137.     path.arrows.arrowLeft.lineTo(-arrowSize, 3*arrowSize/10);
  138.     path.arrows.arrowLeft.lineTo(-arrowSize/2, -arrowSize/5);
  139.     path.arrows.arrowLeft.lineTo(-arrowSize/2, 0);
  140.     path.arrows.arrowLeft.lineTo(0, 0);
  141.     path.arrows.arrowLeft.endFill();
  142.     path.arrows.createEmptyMovieClip("arrowRight", 2);
  143.     path.arrows.arrowRight.lineStyle(.25, 0x999999, 100);
  144.     path.arrows.arrowRight.beginFill(0x666666, 40);
  145.     path.arrows.arrowRight.moveTo(0, 0);
  146.     path.arrows.arrowRight.lineTo(arrowSize/2, 0);
  147.     path.arrows.arrowRight.lineTo(arrowSize/2, -arrowSize/5);
  148.     path.arrows.arrowRight.lineTo(arrowSize, 3*arrowSize/10);
  149.     path.arrows.arrowRight.lineTo(arrowSize/2, 4*arrowSize/5);
  150.     path.arrows.arrowRight.lineTo(arrowSize/2, 3*arrowSize/5);
  151.     path.arrows.arrowRight.lineTo(0, 3*arrowSize/5);
  152.     path.arrows.arrowRight.lineTo(0, 0);
  153.     path.arrows.arrowRight.endFill();
  154. }
  155. function placeArrows(arrowSize, dist, h) {
  156.     if (thumbX+5>arrowSize) {
  157.         path.arrows.arrowLeft._x = -1.2*dist-5;
  158.         path.arrows.arrowRight._x = Stage.width-2*thumbX+dist+5;
  159.         path.arrows.arrowRight._y = path.arrows.arrowLeft._y=arrowSize/5;
  160.     } else {
  161.         path.arrows.arrowLeft._x = arrowSize+5;
  162.         path.arrows.arrowRight._x = 2*arrowSize;
  163.         path.arrows.arrowRight._y = path.arrows.arrowLeft._y=-arrowSize-2*h;
  164.     }
  165. }
  166. function pAL() {
  167.     path.thumbs.thumbsMove = -1;
  168.     path.thumbs.thumbsSlowDown=0;
  169. }
  170. function pAR() {
  171.     path.thumbs.thumbsMove = 1;
  172.     path.thumbs.thumbsSlowDown=0;
  173. }
  174. function rA() {
  175.     path.thumbs.thumbsSlowDown=1;
  176. }
  177. function scrollDirection() {
  178.     if (path.thumbs.thumbsMove == 1) {
  179.         if(runOncei!=true){
  180.             path.thumbs.scrollSpeed= scrollSpeed;
  181.             runOncei=true;
  182.         }    
  183.         if(path.thumbs.thumbsSlowDown==0){
  184.                 runOncei=false;    
  185.         }
  186.         path.thumbs._x -= path.thumbs.scrollSpeed;
  187.         if (path.thumbs._x<-(path.thumbs._width)+(Stage.width-(2*thumbX))){
  188.             path.thumbs._x = -(path.thumbs._width)+(Stage.width-(2*thumbX));
  189.         }
  190.     } else if (path.thumbs.thumbsMove == -1) {
  191.         if(runOncei!=true){
  192.             path.thumbs.scrollSpeed= scrollSpeed;
  193.             runOncei=true;
  194.         }    
  195.         if(path.thumbs.thumbsSlowDown==0){
  196.             runOncei=false;    
  197.         }
  198.         path.thumbs._x += path.thumbs.scrollSpeed
  199.         if (path.thumbs._x>-dist) {
  200.             path.thumbs._x = -dist;
  201.         }
  202.     }
  203.     if (path.thumbs.thumbsSlowDown==1 && path.thumbs.thumbsMove == 1){
  204.         path.thumbs.scrollSpeed=0.85*path.thumbs.scrollSpeed;
  205.         if(path.thumbs.scrollSpeed<=0.05 ){
  206.             path.thumbs.thumbsMove=0;
  207.             path.thumbs.thumbsSlowDown=0;
  208.             runOncei=false;
  209.         }
  210.     } else if (path.thumbs.thumbsSlowDown==1 && path.thumbs.thumbsMove == -1){
  211.         path.thumbs.scrollSpeed=0.85*path.thumbs.scrollSpeed;
  212.         if(path.thumbs.scrollSpeed<=-0.05 ){
  213.             path.thumbs.thumbsMove=0;
  214.             path.thumbs.thumbsSlowDown=0;
  215.             runOncei=false;
  216.         }
  217.     }
  218. }
  219. function drawBar(w, h, lbH, dist, prev_x, prev_w) {
  220.     path.thumbs.createEmptyMovieClip("loadingBarBox"+seed, 2*maxSeed+seed);
  221.     path.thumbs["loadingBarBox"+seed]._x = prev_x+prev_w+dist;
  222.     path.thumbs["loadingBarBox"+seed].lineStyle(.25, 0x999999, 100);
  223.     path.thumbs["loadingBarBox"+seed].moveTo(0, h);
  224.     path.thumbs["loadingBarBox"+seed].lineTo(w, h);
  225.     path.thumbs["loadingBarBox"+seed].lineTo(w, h-lbH);
  226.     path.thumbs["loadingBarBox"+seed].lineTo(0, h-lbH);
  227.     path.thumbs["loadingBarBox"+seed].lineTo(0, h);
  228.     path.thumbs.createEmptyMovieClip("loadingBar"+seed, maxSeed+seed);
  229.     path.thumbs["loadingBar"+seed]._xscale = 0;
  230.     path.thumbs["loadingBar"+seed]._x = prev_x+prev_w+dist;
  231.     path.thumbs["loadingBar"+seed].lineStyle(.25, 0x999999, 0);
  232.     path.thumbs["loadingBar"+seed].beginFill(0x999999, 100);
  233.     path.thumbs["loadingBar"+seed].moveTo(0, h);
  234.     path.thumbs["loadingBar"+seed].lineTo(w, h);
  235.     path.thumbs["loadingBar"+seed].lineTo(w, h-lbH);
  236.     path.thumbs["loadingBar"+seed].lineTo(0, h-lbH);
  237.     path.thumbs["loadingBar"+seed].lineTo(0, h);
  238.     path.thumbs["loadingBar"+seed].endFill();
  239. }
  240. function loadingBarRun(txtStyle) {
  241.     path.thumbs.byteL = path.thumbs["thumb"+seed].getBytesLoaded();
  242.     path.thumbs["loadingBar"+seed]._xscale = (path.thumbs.byteL/path.thumbs["thumb"+seed].getBytesTotal())*100;
  243.     loadingTxt(txtStyle);
  244.     path.totalLB._xscale = (seed/maxSeed)*100;
  245. }
  246. function removeBars() {
  247.     path.thumbs["loadingBar"+seed].removeMovieClip();
  248.     path.thumbs["loadingBarBox"+seed].removeMovieClip();
  249.     if (path.totalLB._alpha<0) {
  250.         path.totalLB.removeMovieClip();
  251.         path.totalLBB.removeMovieClip();
  252.     }
  253. }
  254. //
  255. // Thumbnail loading progress functions
  256. //
  257. function howManyNails(txtStyle, jpgLoadTxt, txtXPos, txtYPos, fontName, txtSize, txtClr, bdr, bdrClr, html, bold, italic) {
  258.     path.createTextField(jpgLoadTxt, maxSeed, txtXPos, txtYPos, 200, 10);
  259.     path[jpgLoadTxt].autosize = true;
  260.     path[jpgLoadTxt].html = html;
  261.     path[jpgLoadTxt].type = "dynamic";
  262.     path[jpgLoadTxt].wordWrap = true;
  263.     path[jpgLoadTxt].selectable = false;
  264.     textFormat = new TextFormat();
  265.     textFormat.font = fontName;
  266.     textFormat.size = txtSize;
  267.     textFormat.color = "0x"+txtClr;
  268.     textFormat.bold = bold;
  269.     textFormat.italic = italic;
  270.     path[jpgLoadTxt].setNewTextFormat(textFormat);
  271.     loadingTxt(txtStyle);
  272.     xWidth = path[jpgLoadTxt].textWidth+10;
  273.     yHeight = path[jpgLoadTxt].textHeight/2;
  274.     path.createEmptyMovieClip("totalLBB", maxSeed+4);
  275.     path.totalLBB._x = xWidth;
  276.     path.totalLBB._y = txtYPos;
  277.     path.totalLBB.lineStyle(.25, 0x999999, 100);
  278.     path.totalLBB.moveTo(0, yHeight);
  279.     path.totalLBB.lineTo(60, yHeight);
  280.     path.totalLBB.lineTo(60, yHeight+(yHeight/2));
  281.     path.totalLBB.lineTo(0, yHeight+(yHeight/2));
  282.     path.totalLBB.lineTo(0, yHeight);
  283.     path.createEmptyMovieClip("totalLB", maxSeed+3);
  284.     path.totalLB._x = xWidth;
  285.     path.totalLB._y = txtYPos;
  286.     path.totalLB.lineStyle(.25, 0x999999, 0);
  287.     path.totalLB.beginFill(0x999999, 100);
  288.     path.totalLB.moveTo(0, yHeight);
  289.     path.totalLB.lineTo(60, yHeight);
  290.     path.totalLB.lineTo(60, yHeight+(yHeight/2));
  291.     path.totalLB.lineTo(0, yHeight+(yHeight/2));
  292.     path.totalLB.lineTo(0, yHeight);
  293.     path.totalLB.endFill();
  294.     path.totalLB._xscale = 0;
  295. }
  296. function loadingTxt(txtStyle) {
  297.     if (txtStyle == 1) {
  298.         path[jpgLoadTxt].text = maxSeed-seed-1+" thumbnails left to load. ";
  299.     } else if (txtStyle == 2) {
  300.         path[jpgLoadTxt].text = seed-1+" out of "+maxSeed+" thumbnails have loaded. ";
  301.     } else if (txtStyle == 3) {
  302.         if (maxSeed<10) {
  303.             addSpace = " ";
  304.         } else if (maxSeed<100) {
  305.             addSpace = "   ";
  306.         } else if (maxSeed<1000) {
  307.             addSpace = "     ";
  308.         }
  309.         path[jpgLoadTxt].text = " "+seed-1+" / "+maxSeed+addSpace;
  310.     } else if (txtStyle == 4) {
  311.         path[jpgLoadTxt].text = "There are "+(maxSeed-seed-1)+" more thumbnails to load. ";
  312.     }
  313. }
  314. //
  315. // Main image box, loading, progress, positioning and size control functions
  316. //
  317. function imageBox(boxHeight, imageY, boxCentred) {
  318.     path.createEmptyMovieClip("imageStuff", -10);
  319.     if (boxCentred == true) {
  320.         _global.imageX = imageX=((Stage.width/2)-(boxWidth/2));
  321.     }
  322.     path.imageStuff.createEmptyMovieClip("imageBox", -10);
  323.     path.imageStuff.imageBox._x = -thumbX;
  324.     path.imageStuff.imageBox._y = -thumbY;
  325.     path.imageStuff.imageBox.lineStyle(.25, 0x999999, 100);
  326.     path.imageStuff.imageBox.beginFill(0x666666, 100);
  327.     path.imageStuff.imageBox.moveTo(imageX, imageY);
  328.     path.imageStuff.imageBox.lineTo(imageX+boxWidth, imageY);
  329.     path.imageStuff.imageBox.lineTo(imageX+boxWidth, imageY+boxHeight);
  330.     path.imageStuff.imageBox.lineTo(imageX, imageY+boxHeight);
  331.     path.imageStuff.imageBox.lineTo(imageX, imageY);
  332.     path.imageStuff.imageBox.endFill();
  333.     path.imageStuff.createEmptyMovieClip("image", -9);
  334.     path.imageStuff.image._x = -thumbX+imageX;
  335.     path.imageStuff.image._y = -thumbY+imageY;
  336. }
  337. function imageLoad() {
  338.     path.imageStuff.image._alpha = 0;
  339.     path.imageStuff.image.loadMovie(trgtImage+path.iLoadNumber+format+"?nocache="+getDate(), 1);
  340.     }
  341. function imageProgressBar() {
  342.     barWidth = boxWidth/2;
  343.     barHeight = barWidth/30;
  344.     if (barHeight<5) {
  345.         barHeight = 5;
  346.     }
  347.     path.imageStuff.createEmptyMovieClip("imageLoadingBarBox", maxSeed+2);
  348.     path.imageStuff.imageLoadingBarBox.lineStyle(.25, 0x999999, 100);
  349.     path.imageStuff.imageLoadingBarBox.moveTo(0, 0);
  350.     path.imageStuff.imageLoadingBarBox.lineTo(barWidth, 0);
  351.     path.imageStuff.imageLoadingBarBox.lineTo(barWidth, barHeight);
  352.     path.imageStuff.imageLoadingBarBox.lineTo(0, barHeight);
  353.     path.imageStuff.imageLoadingBarBox.lineTo(0, 0);
  354.     path.imageStuff.createEmptyMovieClip("imageLoadingBar", maxSeed+1);
  355.     path.imageStuff.imageLoadingBar.lineStyle(.25, 0x999999, 0);
  356.     path.imageStuff.imageLoadingBar.beginFill(0x666666, 100);
  357.     path.imageStuff.imageLoadingBar.moveTo(0, 0);
  358.     path.imageStuff.imageLoadingBar.lineTo(barWidth, 0);
  359.     path.imageStuff.imageLoadingBar.lineTo(barWidth, barHeight);
  360.     path.imageStuff.imageLoadingBar.lineTo(0, barHeight);
  361.     path.imageStuff.imageLoadingBar.lineTo(0, 0);
  362.     path.imageStuff.imageLoadingBar.endFill();
  363.     path.imageStuff.imageLoadingBar._xscale = 0;
  364.     path.imageStuff.imageLoadingBarBox._x = path.imageStuff.imageLoadingBar._x=-thumbX+imageX+boxWidth/4;
  365.     path.imageStuff.imageLoadingBarBox._y = path.imageStuff.imageLoadingBar._y=-thumbY+imageY+(2*path.imageStuff.imageBox._height/3);
  366. }
  367. function imageProgressBarRun() {
  368.     path.imageStuff.imageLoadingBar._xscale = (path.imageStuff.image.getBytesLoaded()/path.imageStuff.image.getBytesTotal())*100;
  369. }
  370. function removeImageBar() {
  371.     if (path.imageStuff.imageLoadingBar._xscale>=100) {
  372.         path.imageStuff.imageLoadingBar.removeMovieClip();
  373.         path.imageStuff.imageLoadingBarBox.removeMovieClip();
  374.     }
  375. }
  376. function imageCentre() {
  377.     if (imageCentred == true && path.imageStuff.image._width>0) {
  378.         if (r1 != true) {
  379.             pIX = path.imageStuff.image._x;
  380.             pIY = path.imageStuff.image._y;
  381.             r1 = true;
  382.         }
  383.         path.imageStuff.image._x = pIX+(path.imageStuff.imageBox._width-path.imageStuff.image._width)/2;
  384.         path.imageStuff.image._y = pIY+(path.imageStuff.imageBox._height-path.imageStuff.image._height)/2;
  385.     }
  386. }
  387. function imageSquash() {
  388.     if (path.imageStuff.image._width>path.imageStuff.imageBox._width && path.imageStuff.image._height<path.imageStuff.imageBox._height && path.imageStuff.image._width>0) {
  389.         path.imageStuff.image._xscale = (path.imageStuff.imageBox._width/path.imageStuff.image._width)*100;
  390.         path.imageStuff.image._yscale = path.imageStuff.image._xscale;
  391.     } else if (path.imageStuff.image._height>path.imageStuff.imageBox._height && path.imageStuff.image._width<path.imageStuff.imageBox._width && path.imageStuff.image._width>0) {
  392.         path.imageStuff.image._yscale = (path.imageStuff.imageBox._height/path.imageStuff.image._height)*100;
  393.         path.imageStuff.image._xscale = path.imageStuff.image._yscale;
  394.     } else if (path.imageStuff.image._height>path.imageStuff.imageBox._height && path.imageStuff.image._width>path.imageStuff.imageBox._width && path.imageStuff.image._width>0) {
  395.         xS = (path.imageStuff.imageBox._width/path.imageStuff.image._width)*100;
  396.         yS = (path.imageStuff.imageBox._height/path.imageStuff.image._height)*100;
  397.         if (xS<yS) {
  398.             path.imageStuff.image._xscale = path.imageStuff.image._yscale=xS;
  399.         } else if (xS>yS) {
  400.             path.imageStuff.image._xscale = path.imageStuff.image._yscale=yS;
  401.         }
  402.     }
  403. }
  404. function squashReset() {
  405.     path.imageStuff.image._xscale = path.imageStuff.image._yscale=100;
  406. }
  407. //
  408. // Image selection functions
  409. //
  410. function Release() {
  411.     if (path.iLoadNumber != this.iNumber) {
  412.         this.b = true;
  413.         path.iLoadNumber = this.iNumber;
  414.         squashReset();
  415.         imageLoad();
  416.         imageProgressBar();
  417.     }
  418. }
  419. function ReleaseOutside() {
  420.     this.b = false;
  421. }
  422. function EnterFrame() {
  423.     if (this.runOnce != true) {
  424.         this.iNumber = seed;
  425.         this.runOnce = true;
  426.     }
  427.     if (this.b == true) {
  428.         this.blink();
  429.     }
  430. }
  431. MovieClip.prototype.blink = function() {
  432.     (this.blinkTimer == null) ? this.blinkTimer=getTimer()+40 : null;
  433.     if (getTimer()>=this.blinkTimer) {
  434.         this.times += 0.5;
  435.         if (this.times == .5 || this.times == 1.5) {
  436.             this._alpha = 30;
  437.         } else if (this.times == 1 || this.times == 2) {
  438.             this._alpha = 100;
  439.         }
  440.         this.blinkTimer = null;
  441.     }
  442.     if (this.times>=2) {
  443.         this._alpha = 100;
  444.         this.blinkTimer = null;
  445.         this.b = false;
  446.         this.times = 0;
  447.     }
  448. };
  449. //
  450. //
  451. //usage
  452. //
  453. //
  454. _root.createEmptyMovieClip("empty", 1);
  455. photoGallery(_root.empty/*path*/, "thumbnails/BAB_"/*target*/, 1/*seed*/, 6/*maxSeed*/, ".jpg"/*format*/, 10/*fIn*/, 254/*thumbX*/, Stage.height-100/*thumbY*/, false/*thumbOutline*/, 80/*maskHeight*/, 15/*arrowSize*/, 10/*scrollSpeed*/, 50/*w*/, 10/*h*/, 3/*lBh*/, 5/*dist*/, jpgCount/*jpgLoadTxt*/, 0/*txtXPos*/, -20/*txtYPos*/, 2/*txtStyle*/, "Arial"/*fontName*/, 11/*txtSize*/, 999999/*txtClr*/, false/*html*/, false/*bold*/, false/*italic*/, 300/*boxWidth*/, 300/*boxHeight*/, 0/*imageX*/, 50/*imageY*/, true/*boxCentred*/, true/*imageCentred*/, "images/BAB_"/*trgtImage*/);
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

one tip : dont paste hundred of lines of code, no one will read them;
just ask something and be precise.
To set the transparency of a movie clip, set it`s alfa to a range between 0 and 100 (0 -> invisible, 100 -> full visible); i.e. : myMc._alpha = 50;
Setting a movieclip alpha will set the transparency for all the movie clips that are inside it; i.e. : myMc._alpha = 50 will also set the alpha of myMc.mc1, myMc.mc2 or whatever movie clips u have inside it;
  • ecu33
  • Novice
  • Novice
  • ecu33
  • Posts: 28
  • Loc: Eastern US

Post 3+ Months Ago

thanks, point taken

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 10 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.