A directoria "AIR Test" já existe?
2009/5/8 Michel Lander Melo <[email protected]> > pois nao foi esta parte > > o ERRO: > > Error: Error #3014: Cannot copy or move a file or directory to overwrite a > containing directory. > > at flash.filesystem::File/copyTo() > > at FileSystem_wt1/fileSelectedHandler()[C:\******\Flex Builder > 3\gestour\src\FileSystem_wt1.mxml:43] > > > 2009/5/8 Miguel Vaz <[email protected]> > > >> Recebes algum erro, mensagem, aviso, aceno? A imagem vai para algum outro >> local? Se sim, qual? Sabes os números do euromilhões da segunda semana de >> Julho? >> >> >> >> MV >> >> >> >> 2009/5/8 Michel Lander Melo <[email protected]> >> >> Bom pessoal estou com um probleminha aki e nao estou sabendo resolver, >>> preciso copiar uma imagem que o cliente vai selecionar para uma pasta. >>> consigo busca o nome mais nao consigo mandar ele pra o local que preciso. >>> veja: >>> >>> private function init():void{ >>> >>> imageFilter=new FileFilter("Image Files","*.jpg;*.gif;*.png") >>> htmlFilter=new FileFilter("HTML Files","*.html") >>> fileReference=new FileReference(); >>> fileReference.addEventListener(Event.SELECT, fileSelectedHandler); >>> >>> } >>> >>> private function fileSelectedHandler(e:Event):void{ >>> if( e.target.type.toString()!='.jpg'&& >>> e.target.type.toString()!='.png'&& >>> e.target.type.toString()!='.gif'&& >>> e.target.type.toString()!='.html'){ >>> >>> Alert.show("Unexpected File Format","Error"); >>> >>> }else{ >>> >>> Alert.show( "Name : "+e.target.name.toString()+"\n"+ >>> "Type : "+e.target.type.toString()+"\n"+ >>> "CreationDate : "+e.target.creationDate.toString()+"\n"+ >>> "Size : "+e.target.size.toString()+"bites \n", >>> "File Informations"); >>> var newFile = File.applicationStorageDirectory.resolvePath("AIR >>> Test/"+e.target.name.toString()); >>> newFile.copyTo(newFile,true); >>> >>> >>> } >>> } >>> -- >>> Michel Melo >>> Imagine Virtual - www.imaginevirtual.com >>> >>> >>> >>> >> >> >> > > > -- > Michel Melo > Imagine Virtual - www.imaginevirtual.com > > > > > --~--~---------~--~----~------------~-------~--~----~ Recebeu esta mensagem porque está inscrito em Grupo "Mailing List da Comunidade Portuguesa de Rich Internet Applications - www.riapt.org" do Grupos Google. Para enviar mensagens para este grupo, envie um email para [email protected] Para anular a inscrição neste grupo, envie um email para [email protected] Para mais opções, visite este grupo em http://groups.google.com/group/riapt?hl=pt-PT -~----------~----~----~----~------~----~------~--~---
