- Beranda
- Komunitas
- Tech
- Computer Stuff
mohon bantuan nya master [FLASH]


TS
volvodex
mohon bantuan nya master [FLASH]
gan ane buat game drag n drop pake flash cs 8 ...
jadi game nya itu mencocokkan huruf ke angka 1-7
untuk mencocokkan 1-5 , lancar. tapi 6 dan 7 nya eror... 6 dan 7 nya itu bisa dimana saja di drop... seharus ketika huruf dan angka sudah pas posisinya baru bisa di drop.
mohon bantuan para master disini.
dibawah ane cantumkan action scripnya
---------------
action script :
stop ();
petunjuk_mc._visible = true;
berhasil_mc._visible = false;
berhasil_mc.stop();
drop1_mc._visible = false;
drop2_mc._visible = false;
drop3_mc._visible = false;
drop4_mc._visible = false;
drop5_mc._visible = false;
drop6_mc._visible = false;
drop7_mc._visible = false;
sad_sound = new Sound(this);
sad_sound.attachSound("s_bg");
sad_sound.start(0, 50);
i = 0;
satu_mc._visible = true;
satu_mc.onPress = function ()
{
this.startDrag();
sad_sound.attachSound("dragsound");
sad_sound.start(0, 0);
this.swapDepths(this.getNextHighestDepth());
xstart = this._x;
ystart = this._y;
};
satu_mc.onRelease = function ()
{
this.stopDrag();
if (eval(this._droptarget) == angka1_mc)
{
sad_sound.attachSound("yes");
sad_sound.start(0, 0);
drop1_mc.stop();
sad_sound.attachSound("dropsound");
sad_sound.start(0, 0);
drop1_mc._visible = true;
angka1_mc._visible = false;
this.enabled = false;
this._visible = false;
++i;
if (i == 7)
{
berhasil_mc._visible = true;
berhasil_mc.play();
petunjuk_mc._visible = false;
} // end if
}
else
{
sad_sound.attachSound("no");
sad_sound.start(0, 0);
this._x = xstart;
this._y = ystart;
} // end else if
};
dua_mc._visible = true;
dua_mc.onPress = function ()
{
this.startDrag();
sad_sound.attachSound("dragsound");
sad_sound.start(0, 0);
this.swapDepths(this.getNextHighestDepth());
xstart = this._x;
ystart = this._y;
};
dua_mc.onRelease = function ()
{
this.stopDrag();
if (eval(this._droptarget) == angka2_mc)
{
sad_sound.attachSound("yes");
sad_sound.start(0, 0);
drop2_mc.stop();
sad_sound.attachSound("dropsound");
sad_sound.start(0, 0);
drop2_mc._visible = true;
angka2_mc._visible = false;
this.enabled = false;
this._visible = false;
++i;
if (i == 7)
{
berhasil_mc._visible = true;
berhasil_mc.play();
petunjuk_mc._visible = false;
} // end if
}
else
{
sad_sound.attachSound("no");
sad_sound.start(0, 0);
this._x = xstart;
this._y = ystart;
} // end else if
};
tiga_mc._visible = true;
tiga_mc.onPress = function ()
{
this.startDrag();
sad_sound.attachSound("dragsound");
sad_sound.start(0, 0);
this.swapDepths(this.getNextHighestDepth());
xstart = this._x;
ystart = this._y;
};
tiga_mc.onRelease = function ()
{
this.stopDrag();
if (eval(this._droptarget) == angka3_mc)
{
sad_sound.attachSound("yes");
sad_sound.start(0, 0);
drop3_mc.stop();
sad_sound.attachSound("dropsound");
sad_sound.start(0, 0);
drop3_mc._visible = true;
angka3_mc._visible = false;
this.enabled = false;
this._visible = false;
++i;
if (i == 7)
{
berhasil_mc._visible = true;
berhasil_mc.play();
petunjuk_mc._visible = false;
} // end if
}
else
{
sad_sound.attachSound("no");
sad_sound.start(0, 0);
this._x = xstart;
this._y = ystart;
} // end else if
};
empat_mc._visible = true;
empat_mc.onPress = function ()
{
this.startDrag();
sad_sound.attachSound("dragsound");
sad_sound.start(0, 0);
this.swapDepths(this.getNextHighestDepth());
xstart = this._x;
ystart = this._y;
};
empat_mc.onRelease = function ()
{
this.stopDrag();
if (eval(this._droptarget) == angka4_mc)
{
sad_sound.attachSound("yes");
sad_sound.start(0, 0);
drop4_mc.stop();
sad_sound.attachSound("dropsound");
sad_sound.start(0, 0);
drop4_mc._visible = true;
angka4_mc._visible = false;
this.enabled = false;
this._visible = false;
++i;
if (i == 7)
{
berhasil_mc._visible = true;
berhasil_mc.play();
petunjuk_mc._visible = false;
} // end if
}
else
{
sad_sound.attachSound("no");
sad_sound.start(0, 0);
this._x = xstart;
this._y = ystart;
} // end else if
};
lima_mc._visible = true;
lima_mc.onPress = function ()
{
this.startDrag();
sad_sound.attachSound("dragsound");
sad_sound.start(0, 0);
this.swapDepths(this.getNextHighestDepth());
xstart = this._x;
ystart = this._y;
};
lima_mc.onRelease = function ()
{
this.stopDrag();
if (eval(this._droptarget) == angka5_mc)
{
sad_sound.attachSound("yes");
sad_sound.start(0, 0);
drop5_mc.stop();
sad_sound.attachSound("dropsound");
sad_sound.start(0, 0);
drop5_mc._visible = true;
angka5_mc._visible = false;
this.enabled = false;
this._visible = false;
++i;
if (i == 7)
{
berhasil_mc._visible = true;
berhasil_mc.play();
petunjuk_mc._visible = false;
} // end if
}
else
{
sad_sound.attachSound("no");
sad_sound.start(0, 0);
this._x = xstart;
this._y = ystart;
} // end else if
};
enam_mc._visible = true;
enam_mc.onPress = function ()
{
this.startDrag();
sad_sound.attachSound("dragsound");
sad_sound.start(0, 0);
this.swapDepths(this.getNextHighestDepth());
xstart = this._x;
ystart = this._y;
};
enam_mc.onRelease = function ()
{
this.stopDrag();
if (eval(this._droptarget) == enam6_mc)
{
sad_sound.attachSound("yes");
sad_sound.start(0, 0);
drop6_mc.stop();
sad_sound.attachSound("dropsound");
sad_sound.start(0, 0);
drop6_mc._visible = true;
angka6_mc._visible = false;
this.enabled = false;
this._visible = false;
++i;
if (i == 7)
{
berhasil_mc._visible = true;
berhasil_mc.play();
petunjuk_mc._visible = false;
} // end if
}
else
{
sad_sound.attachSound("no");
sad_sound.start(0, 0);
this._x = xstart;
this._y = ystart;
} // end else if
};
tujuh_mc._visible = true;
tujuh_mc.onPress = function ()
{
this.startDrag();
sad_sound.attachSound("dragsound");
sad_sound.start(0, 0);
this.swapDepths(this.getNextHighestDepth());
xstart = this._x;
ystart = this._y;
};
tujuh_mc.onRelease = function ()
{
this.stopDrag();
if (eval(this._droptarget) == tujuh7_mc)
{
sad_sound.attachSound("yes");
sad_sound.start(0, 0);
drop7_mc.stop();
sad_sound.attachSound("dropsound");
sad_sound.start(0, 0);
drop7_mc._visible = true;
angka7_mc._visible = false;
this.enabled = false;
this._visible = false;
++i;
if (i == 7)
{
berhasil_mc._visible = true;
berhasil_mc.play();
petunjuk_mc._visible = false;
} // end if
}
else
{
sad_sound.attachSound("no");
sad_sound.start(0, 0);
this._x = xstart;
this._y = ystart;
} // end else if
};
jadi game nya itu mencocokkan huruf ke angka 1-7
untuk mencocokkan 1-5 , lancar. tapi 6 dan 7 nya eror... 6 dan 7 nya itu bisa dimana saja di drop... seharus ketika huruf dan angka sudah pas posisinya baru bisa di drop.
mohon bantuan para master disini.

dibawah ane cantumkan action scripnya
---------------
action script :
stop ();
petunjuk_mc._visible = true;
berhasil_mc._visible = false;
berhasil_mc.stop();
drop1_mc._visible = false;
drop2_mc._visible = false;
drop3_mc._visible = false;
drop4_mc._visible = false;
drop5_mc._visible = false;
drop6_mc._visible = false;
drop7_mc._visible = false;
sad_sound = new Sound(this);
sad_sound.attachSound("s_bg");
sad_sound.start(0, 50);
i = 0;
satu_mc._visible = true;
satu_mc.onPress = function ()
{
this.startDrag();
sad_sound.attachSound("dragsound");
sad_sound.start(0, 0);
this.swapDepths(this.getNextHighestDepth());
xstart = this._x;
ystart = this._y;
};
satu_mc.onRelease = function ()
{
this.stopDrag();
if (eval(this._droptarget) == angka1_mc)
{
sad_sound.attachSound("yes");
sad_sound.start(0, 0);
drop1_mc.stop();
sad_sound.attachSound("dropsound");
sad_sound.start(0, 0);
drop1_mc._visible = true;
angka1_mc._visible = false;
this.enabled = false;
this._visible = false;
++i;
if (i == 7)
{
berhasil_mc._visible = true;
berhasil_mc.play();
petunjuk_mc._visible = false;
} // end if
}
else
{
sad_sound.attachSound("no");
sad_sound.start(0, 0);
this._x = xstart;
this._y = ystart;
} // end else if
};
dua_mc._visible = true;
dua_mc.onPress = function ()
{
this.startDrag();
sad_sound.attachSound("dragsound");
sad_sound.start(0, 0);
this.swapDepths(this.getNextHighestDepth());
xstart = this._x;
ystart = this._y;
};
dua_mc.onRelease = function ()
{
this.stopDrag();
if (eval(this._droptarget) == angka2_mc)
{
sad_sound.attachSound("yes");
sad_sound.start(0, 0);
drop2_mc.stop();
sad_sound.attachSound("dropsound");
sad_sound.start(0, 0);
drop2_mc._visible = true;
angka2_mc._visible = false;
this.enabled = false;
this._visible = false;
++i;
if (i == 7)
{
berhasil_mc._visible = true;
berhasil_mc.play();
petunjuk_mc._visible = false;
} // end if
}
else
{
sad_sound.attachSound("no");
sad_sound.start(0, 0);
this._x = xstart;
this._y = ystart;
} // end else if
};
tiga_mc._visible = true;
tiga_mc.onPress = function ()
{
this.startDrag();
sad_sound.attachSound("dragsound");
sad_sound.start(0, 0);
this.swapDepths(this.getNextHighestDepth());
xstart = this._x;
ystart = this._y;
};
tiga_mc.onRelease = function ()
{
this.stopDrag();
if (eval(this._droptarget) == angka3_mc)
{
sad_sound.attachSound("yes");
sad_sound.start(0, 0);
drop3_mc.stop();
sad_sound.attachSound("dropsound");
sad_sound.start(0, 0);
drop3_mc._visible = true;
angka3_mc._visible = false;
this.enabled = false;
this._visible = false;
++i;
if (i == 7)
{
berhasil_mc._visible = true;
berhasil_mc.play();
petunjuk_mc._visible = false;
} // end if
}
else
{
sad_sound.attachSound("no");
sad_sound.start(0, 0);
this._x = xstart;
this._y = ystart;
} // end else if
};
empat_mc._visible = true;
empat_mc.onPress = function ()
{
this.startDrag();
sad_sound.attachSound("dragsound");
sad_sound.start(0, 0);
this.swapDepths(this.getNextHighestDepth());
xstart = this._x;
ystart = this._y;
};
empat_mc.onRelease = function ()
{
this.stopDrag();
if (eval(this._droptarget) == angka4_mc)
{
sad_sound.attachSound("yes");
sad_sound.start(0, 0);
drop4_mc.stop();
sad_sound.attachSound("dropsound");
sad_sound.start(0, 0);
drop4_mc._visible = true;
angka4_mc._visible = false;
this.enabled = false;
this._visible = false;
++i;
if (i == 7)
{
berhasil_mc._visible = true;
berhasil_mc.play();
petunjuk_mc._visible = false;
} // end if
}
else
{
sad_sound.attachSound("no");
sad_sound.start(0, 0);
this._x = xstart;
this._y = ystart;
} // end else if
};
lima_mc._visible = true;
lima_mc.onPress = function ()
{
this.startDrag();
sad_sound.attachSound("dragsound");
sad_sound.start(0, 0);
this.swapDepths(this.getNextHighestDepth());
xstart = this._x;
ystart = this._y;
};
lima_mc.onRelease = function ()
{
this.stopDrag();
if (eval(this._droptarget) == angka5_mc)
{
sad_sound.attachSound("yes");
sad_sound.start(0, 0);
drop5_mc.stop();
sad_sound.attachSound("dropsound");
sad_sound.start(0, 0);
drop5_mc._visible = true;
angka5_mc._visible = false;
this.enabled = false;
this._visible = false;
++i;
if (i == 7)
{
berhasil_mc._visible = true;
berhasil_mc.play();
petunjuk_mc._visible = false;
} // end if
}
else
{
sad_sound.attachSound("no");
sad_sound.start(0, 0);
this._x = xstart;
this._y = ystart;
} // end else if
};
enam_mc._visible = true;
enam_mc.onPress = function ()
{
this.startDrag();
sad_sound.attachSound("dragsound");
sad_sound.start(0, 0);
this.swapDepths(this.getNextHighestDepth());
xstart = this._x;
ystart = this._y;
};
enam_mc.onRelease = function ()
{
this.stopDrag();
if (eval(this._droptarget) == enam6_mc)
{
sad_sound.attachSound("yes");
sad_sound.start(0, 0);
drop6_mc.stop();
sad_sound.attachSound("dropsound");
sad_sound.start(0, 0);
drop6_mc._visible = true;
angka6_mc._visible = false;
this.enabled = false;
this._visible = false;
++i;
if (i == 7)
{
berhasil_mc._visible = true;
berhasil_mc.play();
petunjuk_mc._visible = false;
} // end if
}
else
{
sad_sound.attachSound("no");
sad_sound.start(0, 0);
this._x = xstart;
this._y = ystart;
} // end else if
};
tujuh_mc._visible = true;
tujuh_mc.onPress = function ()
{
this.startDrag();
sad_sound.attachSound("dragsound");
sad_sound.start(0, 0);
this.swapDepths(this.getNextHighestDepth());
xstart = this._x;
ystart = this._y;
};
tujuh_mc.onRelease = function ()
{
this.stopDrag();
if (eval(this._droptarget) == tujuh7_mc)
{
sad_sound.attachSound("yes");
sad_sound.start(0, 0);
drop7_mc.stop();
sad_sound.attachSound("dropsound");
sad_sound.start(0, 0);
drop7_mc._visible = true;
angka7_mc._visible = false;
this.enabled = false;
this._visible = false;
++i;
if (i == 7)
{
berhasil_mc._visible = true;
berhasil_mc.play();
petunjuk_mc._visible = false;
} // end if
}
else
{
sad_sound.attachSound("no");
sad_sound.start(0, 0);
this._x = xstart;
this._y = ystart;
} // end else if
};
0
701
0


Komentar yang asik ya


Komentar yang asik ya
Komunitas Pilihan