단순히 이미지 읽어만 오기 ㅡㅡ;;

컴터/Air 2008. 8. 29. 08:16
import mx.controls.Alert;
   private function rf():void{
    var fs:FileStream = new FileStream();
    var result:ByteArray = new ByteArray();
   
    var f:String = "C:/Documents and Settings/user/바탕 화면/";
    var ff:File = File.desktopDirectory.resolvePath(f + txt.text);
    fs.open(ff, FileMode.READ);
    fs.readBytes(result, 0, ff.size);
    fs.close();
   
    var ff2:File = File.desktopDirectory.resolvePath(f + txt2.text);
    fs.open(ff2, FileMode.WRITE);
    fs.writeBytes(result, 0, ff.size);
    fs.close();
   
   }
Trackbacks 0 : Comments 0

Write a comment