Хм... Я не понимаю как код остановить...

Код:
function CW_CORE_DrawMusicState()
{
var _loc1;
var _loc2;
_loc1 = ext_fscommand2("ptime", "get");
_loc2 = ext_fscommand2("ptimetotal");
ext_fscommand2("filename", "_root.CurName");
if (PrevName != CurName)
{
if (ext_fscommand2("arepeat", "get") == 1)
{
CW_CORE_SetNextARepeat();
CW_CORE_SetNextARepeat();
} // end if
CW_CORE_DrawMusicModeInfo();
ext_fscommand2("filename", "_root.PrevName");
CWUtil_UpdateJacket();
CWUtil_DrawJacket();
CW_CORE_DrawMusicInfo();
CW_Event_DrawPlayTotalTime(_loc2 / 1000 / 60 / 60 % 60, _loc2 / 1000 / 60 % 60, _loc2 / 1000 % 60);
} // end if
CW_Event_DrawPlayInfo();
CW_Event_DrawPlayTime(_loc1 / 1000 / 60 / 60 % 60, _loc1 / 1000 / 60 % 60, _loc1 / 1000 % 60);
CW_Event_DrawSeeker(_loc1, _loc2);
} // End of the function
function CW_CORE_DrawSystemInfo()
{
BattStatus = ext_fscommand2("battery");
battery.gotoAndStop(1 + (4 - BattStatus));
CW_Event_DrawHoldState(ext_fscommand2("hold"));
CW_Event_DrawVolumeState(ext_fscommand2("volume", "get"));
CW_Event_DrawSystemTime(ext_fscommand2("stime", "get", "hour"), ext_fscommand2("stime", "get", "min"), ext_fscommand2("stime", "get", "sec"));
} // End of the function
function CW_CORE_DrawMusicInfo()
{
ext_fscommand2("album", "gAlbum");
ext_fscommand2("artist", "gArtist");
ext_fscommand2("title", "gTitle");
ext_fscommand2("filename", "gFileName");
ext_fscommand2("directory", "gDirectory");
CW_Event_DrawMusicInfo(gAlbum, gArtist, gTitle, gFileName, gDirectory, ext_fscommand2("bitrate"), ext_fscommand2("samplerate"));
} // End of the function
function CW_CORE_DrawMusicModeInfo()
{
CW_Event_DrawMusicModeInfo(ext_fscommand2("repeat", "get"), ext_fscommand2("suffle", "get"), ext_fscommand2("boundary", "get"), ext_fscommand2("arepeat", "get"));
} // End of the function
function CWUtil_UpdateJacket()
{
UpdateFlag = 1;
} // End of the function
function CWUtil_DrawJacket()
{
var _loc1;
var _loc2;
if (ext_fscommand2("jacketflag"))
{
if (UpdateFlag)
{
_loc1 = CW_Event_GetAlbumArtMCObject();
_loc2 = CW_Event_GetBlankAlbumArtInfo();
image_mcl.unloadClip(_loc1);
_loc1._xscale = 100;
_loc1._yscale = 100;
image_mcl.loadClip("cur.alb", _loc1);
_loc2._visible = false;
UpdateFlag = 0;
} // end if
}
else
{
_loc2 = CW_Event_GetBlankAlbumArtInfo();
_loc1 = CW_Event_GetAlbumArtMCObject();
image_mcl.unloadClip(_loc1);
_loc2._visible = true;
} // end else if
} // End of the function
function CW_CORE_PlayPause()
{
if (ext_fscommand2("basicmode") == 1)
{
ext_fscommand2("pause");
CW_Event_DrawPauseState();
}
else
{
ext_fscommand2("play");
CWUtil_DrawJacket();
CW_Event_DrawPlayState();
} // end else if
} // End of the function
function CW_CORE_Stop()
{
ext_fscommand2("pause");
ext_fscommand2("ptime", "set", 0);
CW_Event_DrawPauseState();
} // End of the function
function CW_CORE_Next()
{
ext_fscommand2("next");
} // End of the function
function CW_CORE_Prev()
{
ext_fscommand2("prev");
} // End of the function
function CW_CORE_FF()
{
ext_fscommand2("ff");
} // End of the function
function CW_CORE_FRew()
{
ext_fscommand2("rew");
} // End of the function
function CW_CORE_Browse()
{
ext_fscommand2("browse");
} // End of the function
function CW_CORE_Setting()
{
ext_fscommand2("setting");
} // End of the function
function CW_CORE_ModeMenu()
{
ext_fscommand2("modemenu");
} // End of the function
function CW_CORE_SetNextBoundary()
{
ext_fscommand2("boundary", "set");
CW_Event_DrawMusicModeInfo(ext_fscommand2("repeat", "get"), ext_fscommand2("suffle", "get"), ext_fscommand2("boundary", "get"), ext_fscommand2("arepeat", "get"));
} // End of the function
function CW_CORE_SetNextRepeat()
{
ext_fscommand2("repeat", "set");
CW_Event_DrawMusicModeInfo(ext_fscommand2("repeat", "get"), ext_fscommand2("suffle", "get"), ext_fscommand2("boundary", "get"), ext_fscommand2("arepeat", "get"));
} // End of the function
function CW_CORE_SetNextARepeat()
{
ext_fscommand2("arepeat", "set");
CW_Event_DrawMusicModeInfo(ext_fscommand2("repeat", "get"), ext_fscommand2("suffle", "get"), ext_fscommand2("boundary", "get"), ext_fscommand2("arepeat", "get"));
} // End of the function
function CW_CORE_SetNextSuffle()
{
ext_fscommand2("suffle", "set");
CW_Event_DrawMusicModeInfo(ext_fscommand2("repeat", "get"), ext_fscommand2("suffle", "get"), ext_fscommand2("boundary", "get"), ext_fscommand2("arepeat", "get"));
} // End of the function
function CW_CORE_KeyHandler(keyCode)
{
curVol = ext_fscommand2("volume", "get");
switch (keyCode)
{
case 33:
{
if (curVol < 50)
{
curVol = curVol + 1;
CW_Event_DrawVolumeState(curVol);
ext_fscommand2("volume", "set", curVol);
} // end if
break;
}
case 34:
{
if (curVol > 0)
{
curVol = curVol - 1;
CW_Event_DrawVolumeState(curVol);
ext_fscommand2("volume", "set", curVol);
} // end if
break;
}
case 35:
{
break;
}
case 36:
{
ff._alpha = 50;
ff._alpha = 100;
break;
}
case 37:
{
rew._alpha = 50;
rew._alpha = 100;
break;
}
case 38:
{
break;
}
case 39:
{
break;
}
default:
{
break;
}
} // End of switch
} // End of the function
function CW_CORE_Init()
{
CW_CORE_DrawSystemInfo();
CW_CORE_DrawMusicModeInfo();
CW_CORE_DrawMusicState();
CW_Event_DrawPlayInfo();
setInterval(CW_CORE_DrawSystemInfo, 1000);
setInterval(CW_CORE_DrawMusicState, 100);
} // End of the function
function scrolltitle()
{
if (_root.musicInfo.tTitle.text.length > 0)
{
_root.musicInfo.tTitle.text = _root.musicInfo.tTitle.text.substr(-(_root.musicInfo.tTitle.text.length - 1), _root.musicInfo.tTitle.text.length - 1);
}
else
{
_root.musicInfo.tTitle.text = _global.mtitle;
clearInterval(_global.inttemp1);
_global.inttemp2 = setInterval(pausetitle, 500);
} // end else if
} // End of the function
function pausetitle()
{
if (titlecnt > 4)
{
clearInterval(_global.inttemp2);
_global.inttemp1 = setInterval(scrolltitle, 200);
titlecnt = 0;
}
else
{
++titlecnt;
} // end else if
} // End of the function
function scrollartist()
{
if (_root.musicInfo.tArtistAlbum.text.length > 0)
{
_root.musicInfo.tArtistAlbum.text = _root.musicInfo.tArtistAlbum.text.substr(-(_root.musicInfo.tArtistAlbum.text.length - 1), _root.musicInfo.tArtistAlbum.text.length - 1);
}
else
{
_root.musicInfo.tArtistAlbum.text = _global.martist;
clearInterval(_global.inttemp3);
_global.inttemp4 = setInterval(pauseartist, 500);
} // end else if
} // End of the function
function seekerbtncontrol(mode_)
{
if (mode_ == "release")
{
var _loc4 = 0;
var _loc7 = ext_fscommand2("ptimetotal");
_root.seekerFlag = 0;
_loc4 = (_root.btnSeek._y - _global.seeker_l) * _loc7 / _global.seekbar_w;
_loc4 = Math.floor(_loc4);
ext_fscommand2("ptime", "set", _loc4);
this.stopDrag();
}
else if (mode_ == "releasebar")
{
_loc4 = 0;
_loc7 = ext_fscommand2("ptimetotal");
_loc4 = (_root._ymouse - 5 - _global.seeker_l) * _loc7 / _global.seekbar_w;
_loc4 = Math.floor(_loc4);
ext_fscommand2("ptime", "set", _loc4);
}
else
{
_root.seekerFlag = 1;
var _loc5 = 235;
var _loc8 = -5;
var _loc6 = 227;
var _loc9 = 227;
_root.btnSeek.startDrag(false, _loc6, _loc5, _loc9, _loc8);
} // end else if
} // End of the function
function CW_Event_DrawMusicInfo(sAlbum, sArtist, sTitle, sFileName, sDirectory, nBitRate, nSampleRate)
{
_root.musicInfo.tTitle.text = sTitle;
_root.musicInfo.tArtistAlbum.text = sArtist + " - " + sAlbum;
_root.musicInfo.cacheAsBitmap = true;
_global.mtitle = sTitle;
_global.martist = sArtist + " - " + sAlbum;
if (_global.mtitle != _global.title_temp)
{
clearInterval(_global.inttemp1);
clearInterval(_global.inttemp2);
_root.musicInfo.tTitle.text = _global.mtitle;
if (_root.musicInfo.tTitle.text.length > 30)
{
_global.inttemp2 = setInterval(pausetitle, 300);
} // end if
_global.title_temp = _global.mtitle;
}
else
{
_global.title_temp = _global.mtitle;
} // end else if
if (_global.martist != _global.artist_temp)
{
clearInterval(_global.inttemp3);
clearInterval(_global.inttemp4);
_root.musicInfo.tArtistAlbum.text = _global.martist;
if (_root.musicInfo.tArtistAlbum.text.length > 36)
{
_global.inttemp4 = setInterval(pauseartist, 300);
} // end if
_global.artist_temp = _global.martist;
}
else
{
_global.artist_temp = _global.martist;
} // end else if
mcKH0.gotoAndStop(nSampleRate % 10 + 1);
mcKH1.gotoAndStop(nSampleRate / 10 % 10 + 1);
mcKB0.gotoAndStop(nBitRate % 10 + 1);
mcKB1.gotoAndStop(nBitRate / 10 % 10 + 1);
mcKB2.gotoAndStop(nBitRate / 100 % 10 + 1);
} // End of the function
//и так далее...