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