her is my test to skew images with Alligator
perspective.swf 41,87 KB
23 Ilość pobrańbut I have a problem with attacMovie and duplicateMovieClip movie.
Who can help me please ?
msk._y = (Stage.height-msk._height)/2;
bar._y = (Stage.height-bar._height)/2;
bar._x = msk._width+msk._x;
bar.tog1._y = (bar._height-msk._height)/2-32;
bar.tog2._y = bar.tog1._y+msk._height+32;
onClipEvent (enterFrame)
{
function paint()
{
var y0 = 0;
var y1 = bar.tog1._y;
var endScale = bar.tog2._y - bar.tog1._y;
var k = 1;
while (k < 50)
{
_root["msk" + k]._y = msk._y + (y1 - 0) / 50 * k;
_root["msk" + k]._yscale = 100 - k * (100 - endScale) / 50;
++k;
} // end while
} // End of the function
msk.mc.attacMovie("mv2", mv22, 2);
var k = 1;
while (k < 50)
{
duplicateMovieClip("msk", "msk" + k, k);
_root["msk" + k]._x = _root["msk" + k]._x + 2 * k;
_root["msk" + k].mc._x = _root["msk" + k].mc._x - 2 * k;
_root["msk" + k].mc.duplicateMovieClip("mv2", mv22, 2);
++k;
} // end while
}
more thanks in adwanceplease use tag:
[as] code as [/as]







