var file:String = 'testvideo.flvflv'; var fileCuted:String = file.substr(0, file.lastIndexOf('.')); trace(fileCuted); //выведет: testvideo