#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 ("");