everybody, hi. trying use <mx:Image> on MacOSX. When I use path of my app's 
directory in source's property, then it's ok, but when I use my special path, 
i.e. path of folder, which is in my Documents directory, then I've not got my 
Image.

looks:

<mx:Image id="pic">

...

my picture is in //Users//myName//Documents//test//picture.jpg

private function initApp():void{
var imgdir:File = File.documentsDirectory.resolvePath("test");
pic.source = imgdir.nativePath+"/picture.jpg";
trace(imgdir.nativePath+"/picture.jpg"); // 
//Users//myName//Documents//test//picture.jpg
}

when I launch it in Windows - it's working, in MacOSX - not working

what to do?


      

Reply via email to