импортируемый файл лежит рядом и называется так же.

Код:
var dom = fl.getDocumentDOM();
dom.getTimeline().addNewLayer("Pic", "normal", true);
var fileName = flash.documents[0].name;
var filePath = flash.documents[0].path;
aFile = fileName.split(".");//имя файла
aPath = filePath.split(fileName);//путь
myFile = aPath[0]+""+aFile[0]+".jpg";
uri = encodeURIComponent(myFile);
dom.importFile(uri,true);
говорит - неизвестная ошибка
