主题:  请指点

flashing

职务:普通成员
等级:1
金币:0.0
发贴:18
#12001/5/11 14:23:25
摹仿制作了一幅冒泡作品,没有成功,无奈,把代码贴出,请指点:
///scene1 layer2 frame1
startDrag ("dg", true, 0, 0, 320, 240);

setProperty ("gnist1", _visible, false);

gx = getProperty("dg", _x);

gy = getProperty("dg", _y);

if (Number(gx)<>Number(gx1) or Number(gy)<>Number(gy1))
{ l = m; while (Number(l)>=0) { l = l-1; Scale = Number(random(25))+5;

setProperty ("/gnist1", _x, Number(getProperty("dg", _x))+Number(random(3))-random(3));

setProperty ("/gnist1", _y, Number(getProperty("dg", _y))+Number(random(3))-random(3));

setProperty ("gnist1", _visible, true);

setProperty ("/gnist1", _rotation, Number(random(20))+1);

setProperty ("/gnist1", _xscale, Scale);

setProperty ("/gnist1", _yscale, Scale);

n = Number(n)+1;
bn = "gnist1" add n;

duplicateMovieClip ("gnist1", bn, n); }}

///scene1 layer2 frame2
gx1 = getProperty("dg", _x);

gy1 = getProperty("dg", _y);

///scene1 layer1 frame1
Mouse.hide();

///crack(symbol 12)frame6
removeMovieClip ("");

///gnist1 frame1
gg = /:g;
setProperty ("g", _x, getProperty("g", _x));

setProperty ("g", _y, getProperty("g", _y)-gg);

setProperty ("g", _alpha, getProperty("g", _alpha)-3);

setProperty ("", _xscale, Number(getProperty("", _xscale))+Number(random(3)));

setProperty ("", _yscale, Number(getProperty("", _yscale))+Number(random(3)));

opx = getProperty("g", _x);

opy = getProperty("g", _y);

a = getProperty("g", _alpha);

if (Number(bo) == Number(random(8)) and Number(a)<50 and Number(Number(opxs)+Number(opys))>80)
{ gotoAndPlay (4);}

///gnist1 frame2
bo = "1";

opxs = getProperty("", _xscale);

opys = getProperty("", _yscale);

if (Number(a)<=0) {
gotoAndStop (3);
} else
{ gotoAndPlay (1);}

///gnist1 frame3
removeMovieClip ("");

///gnist1 frame4
setProperty ("w", _x, opx);

setProperty ("w", _y, opy);

setProperty ("w", _xscale, opxs);

setProperty ("w", _yscale, opys);

setProperty ("w", _alpha, a);

///gnist1 frame6
removeMovieClip ("");








Demon.S

职务:版主
等级:5
金币:10.0
发贴:2468
#22001/5/11 15:17:59
倒,我当是冒泡排序呢,太多了,你把控制移动部分贴出来即可



flashing

职务:普通成员
等级:1
金币:0.0
发贴:18
#32001/5/11 15:23:04
那幅作品好象是叫爱老虎油的朋友做的,你在吗?