geldesigns
01-25-2007, 10:11 PM
function init()
{
this[1].pressed = 0;
this.stopDrag();
this.attachMovie("loading", "loading", 10000);
screen.original.loadMovie(url + "image/image1.jpg");
this.onEnterFrame = function ()
{
if (screen.original.getBytesTotal() == screen.original.getBytesLoaded())
{
this.loading.removeMovieClip();
screen.gotoAndPlay(2);
delete this["onEnterFrame"];
} // end if
};
check.target = 1;
check.onEnterFrame = function ()
{
this._x = this._x + (this._parent[this.target]._x - this._x) / 4;
this._y = this._y + (this._parent[this.target]._y - this._y) / 4;
};
} // End of the function
_global.numOfImage = 20;
url = "";
temp = 10;
check.swapDepths(20000);
var i = 1;
while (i <= numOfImage)
{
mc = this.attachMovie("btn", i, i + 100);
mc._x = (i - 1) % temp * 75 + 30;
mc._y = Math.floor((i - 1) / temp) * 46 + 450;
mc.oldx = mc._x;
mc.oldy = mc._y;
mc.point.loadMovie(url + "thumb/image" + i + ".jpg");
mc.onRollOver = function ()
{
this.fade.play();
check.target = this._name;
check.onEnterFrame = function ()
{
this._x = this._x + (this._parent[this.target]._x - this._x) / 4;
this._y = this._y + (this._parent[this.target]._y - this._y) / 4;
};
};
mc.onRelease = function ()
{
this._parent.attachMovie("loading", "loading", 10000);
screen.original.loadMovie(url + "image/image" + this._name + ".jpg");
this._parent.onEnterFrame = function ()
{
if (screen.original.getBytesTotal() == screen.original.getBytesLoaded())
{
this.loading.removeMovieClip();
screen.gotoAndPlay(2);
delete this["onEnterFrame"];
} // end if
};
};
i++;
} // end while
init();
{
this[1].pressed = 0;
this.stopDrag();
this.attachMovie("loading", "loading", 10000);
screen.original.loadMovie(url + "image/image1.jpg");
this.onEnterFrame = function ()
{
if (screen.original.getBytesTotal() == screen.original.getBytesLoaded())
{
this.loading.removeMovieClip();
screen.gotoAndPlay(2);
delete this["onEnterFrame"];
} // end if
};
check.target = 1;
check.onEnterFrame = function ()
{
this._x = this._x + (this._parent[this.target]._x - this._x) / 4;
this._y = this._y + (this._parent[this.target]._y - this._y) / 4;
};
} // End of the function
_global.numOfImage = 20;
url = "";
temp = 10;
check.swapDepths(20000);
var i = 1;
while (i <= numOfImage)
{
mc = this.attachMovie("btn", i, i + 100);
mc._x = (i - 1) % temp * 75 + 30;
mc._y = Math.floor((i - 1) / temp) * 46 + 450;
mc.oldx = mc._x;
mc.oldy = mc._y;
mc.point.loadMovie(url + "thumb/image" + i + ".jpg");
mc.onRollOver = function ()
{
this.fade.play();
check.target = this._name;
check.onEnterFrame = function ()
{
this._x = this._x + (this._parent[this.target]._x - this._x) / 4;
this._y = this._y + (this._parent[this.target]._y - this._y) / 4;
};
};
mc.onRelease = function ()
{
this._parent.attachMovie("loading", "loading", 10000);
screen.original.loadMovie(url + "image/image" + this._name + ".jpg");
this._parent.onEnterFrame = function ()
{
if (screen.original.getBytesTotal() == screen.original.getBytesLoaded())
{
this.loading.removeMovieClip();
screen.gotoAndPlay(2);
delete this["onEnterFrame"];
} // end if
};
};
i++;
} // end while
init();