e per finire ekko la seconda parte:

if(_loaded){
for(var a = 0; a < tot; a++){
if(a==0){
this.clip.setMask( this.mask0 )
this.clip._alpha = 100
var clip = this.clip
} else {
this['clip'+a].setMask(this['mask' + a])
var clip = this['clip'+a]
}
this['mask'+a]._visible = 1
this['clip'+a]._alpha = 100
if(a > 0){
this['mask'+a].num = this['clip'+a]
} else {
this['mask'+a].num = this.clip
}
this['mask'+a].steps = steps
this['mask'+a].counter = 0
var _a = 2 + (random(10)/10)
var _b = 1.2 + (random(10)/10)
this['mask'+a].num.easeOut(0,0,_a,_b)
this['mask'+a].onEnterFrame = function(){
if(this.counter >= this.steps){
delete this.onEnterFrame;
return;
}
this.counter++
this._yscale += 100/this.steps
}
}
delete this.onEnterFrame;
}
}
}
// transition 8
ImageLoader.prototype.transition8 = function(){
var w = this.clip._width
var h = this.clip._height
var tot = 32
this.createEmptyMovieClip('mask',2)
for(var a = 0; a < tot; a++){
var m = this.mask.createEmptyMovieClip('m' + a, 100 + (a))
m._x = a*(w/tot)
var s = random(2)
if(s==0){
m._y = -h
m._rand = random(30) + 15
m
} else {
m._y = h
m._rand = -(random(30) + 15)
}
with(m){
beginFill(0x00,100)
lineTo((w/tot)+1,0)
lineTo((w/tot)+1,h)
lineTo(0,h)
endFill()
}
m.onEnterFrame = function(){
if(this._rand > 0){
if(this._y + this._rand >= 0){
this._y = 0
delete this.onEnterFrame
return
}
} else {
if(this._y + this._rand <= 0){
this._y = 0
delete this.onEnterFrame
return
}
}
this._y += this._rand
}
}
this.clip._alpha = 100
this.clip.setMask( this.mask )
}
// --------------
// transition 9
// --------------
ImageLoader.prototype.transition9 = function(){
var w = this.clip._width
var h = this.clip._height
var row = 6
var col = 6
var _k = 0
var _kk = 0
var steps = 15
this.createEmptyMovieClip('mask',2)
var use = random(2) == 0 ? '_xscale' : '_yscale'
for(var a = 0; a < row; a++){
for(var b = 0; b < col; b++){
_k++
var m = this.mask.createEmptyMovieClip('m' + _k, 100 + (_k))
m._x = b*(w/col)
m._y = _kk*(h/row)
m[use] = 0
m._count = 0
m._steps = steps
m._t1 = getTimer()
m._canStart = a%2==0? (b%2==0 ? 0 : 1) : (b%2==0 ? 1 : 0)
with(m){
beginFill(0x00,100)
lineTo((w/row)+1,0)
lineTo((w/row)+1,(h/col)+1)
lineTo(0,(h/col)+1)
endFill()
}
m.onEnterFrame = function(){
if(this._canStart == true || this._parent._canStart == true){
if(this._count >= this._steps){
delete this.onEnterFrame;
this._parent._canStart = true
return
}
this[use] += 100/this._steps
this._count++
}
}
}
_kk++
}
this.clip._alpha = 100
this.clip.setMask( this.mask )
}
// --------------
// transition 10
// --------------
ImageLoader.prototype.transition10 = function(){
var w = this.clip._width
var h = this.clip._height
var num = 10
var diff = 5
var alpha_diff = 100/num
var clip = this.clip
for(var a = 0; a < num; a++){
if(a > 0){
var clip = this.createEmptyMovieClip('clip' + a, -(100 + a))
clip._alpha = 0
clip.loadMovie(this.clip._url)
}
clip._x = (-w) + (a*(diff++))
var mask = this.createEmptyMovieClip('mask'+a,(100+a))
mask._visible = 0
with(mask){
beginFill(0x00,100)
lineTo(w,0)
lineTo(w,h)
lineTo(0,h)
endFill()
}
}
this.onEnterFrame = function(){
_loaded = true
for(var a = 1; a < num; a++){
if (this['clip' + a]._url == this._url || this['clip' + a].getBytesLoaded () < this['clip' + a].getBytesTotal () || this['clip' + a].getBytesTotal () < 4) {
var _loaded = false
return;
}
}
if(_loaded){
for(var a = 0; a < num; a++){
this['clip' + a]._alpha = 100 - (a*alpha_diff)
this.clip._alpha = 100
if(a==0){
var clip = this.clip
} else {
var clip = this['clip'+a]
}
clip.count = 0
clip.steps = steps
clip.x_init = clip._x
clip.setMask( this['mask'+a] )
this['mask' + a]._visible = 1
clip.onEnterFrame = function(){
if(this._x + 10 >= 0){
this._x = 0
delete this.onEnterFrame;
return
}
this._x += 10
}
}
delete this.onEnterFrame
}
}
}
// --------------
// transition 11
// --------------
ImageLoader.prototype.transition11 = function(){
var w = this.clip._width
var h = this.clip._height
var num = 9
var diff = 10
var alpha_diff = 100/num
var clip = this.clip
var steps = 45
for(var a = 0; a < num; a++){
if(a > 0){
var clip = this.createEmptyMovieClip('clip' + a, -(100 + a))
clip._alpha = 0
clip.loadMovie(this.clip._url)
}
var mask = this.createEmptyMovieClip('mask'+a,(100+a))
mask._visible = 0
mask._x = -(w + (a*diff++))
mask._alpha = 40
mask.steps = steps + num
mask._k = 0
mask._move = w/steps
with(mask){
beginFill(0x00,100)
lineTo(w,0)
lineTo(w,h)
lineTo(0,h)
endFill()
}
}
this.onEnterFrame = function(){
_loaded = true
for(var a = 1; a < num; a++){
if (this['clip' + a]._url == this._url || this['clip' + a].getBytesLoaded () < this['clip' + a].getBytesTotal () || this['clip' + a].getBytesTotal () < 4) {
var _loaded = false
return;
}
}
if(_loaded){
for(var a = 0; a < num; a++){
if(a==0){
var clip = this.clip
} else {
var clip = this['clip'+a]
}
clip._alpha = (100/(num+1))*(a+1)
clip.setMask( this['mask'+a] )
this['mask' + a]._visible = 1
this['mask' + a].onEnterFrame = function(){
if(this._x >= 0){
this._x = 0
this.unloadMovie()
delete this.onEnterFrame;
return;
}
this._x += this._move
this._k++
}
}
this['clip'+(a-1)]._alpha = 100
delete this.onEnterFrame
}
}
}

Object.registerClass ("ImageLoader", ImageLoader);
#endinitclip