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