if(os_mc.hitTest(_xmouse,_ymouse,true) and box_mc.hitTest(os_mc._x,os_mc._y,true) and os_mc.snack_mc._visible == false)
{
os_mc.snack_mc._visible = true;
gof = snack_array[0];
trace(snack_array[0]);
os_mc.snack_mc.gotoAndStop(gof);
snack_snd.gotoAndPlay(2);
}
i = 1;
while(i <= 3)
{
if(this["obj" + i + "_mc"].hitTest(os_mc._x,os_mc._y,true) and this["obj" + i + "_mc"].m_type == os_mc.snack_mc._currentframe and os_mc.snack_mc._visible == true)
{
this["obj" + i + "_mc"].nextFrame();
os_mc.snack_mc._visible = false;
snack_array.splice(0,1);
snackNum_mc.nowNum_mc.nextFrame();
snack_snd2.gotoAndPlay(2);
if(snackNum_mc.nowNum_mc._currentframe == 11 or snackNum_mc.nowNum_mc._currentframe == 21 or snackNum_mc.nowNum_mc._currentframe == 31 or snackNum_mc.nowNum_mc._currentframe == 41 or snackNum_mc.nowNum_mc._currentframe == 51)