Skip navigation
rabbit78
Currently Being Moderated

flex 4.6 mobile FileFilter in android....

Dec 8, 2012 4:05 AM

hi everybody...

 

i have create one application in flex 4.6 for android...but i have problem with FileFilter in android don't read file .txt or pdf...this is my code:

 

private var fileTesti:File = new File();

private var filterTesto:FileFilter = new FileFilter("Text", "*.txt;");

 

protected function linkText(event:MouseEvent):void {

                                        fileTesti.addEventListener(Event.SELECT, onFileSelectText);

                                        fileTesti.browseForOpen("Apri");

}

private function onFileSelectText(event:Event):void {

                                        fileTesti.removeEventListener(Event.SELECT, onFileSelectText);

                                        txtTesto.text=(fileTesti.url);

}

 

 

the problem is in selected file...if write:

private var filterTesto:FileFilter = new FileFilter("Mp3", "*.mp3;");

no problem....but i have try to write this code:

 

private var filterTesto:FileFilter = new FileFilter("Text", "*.*;");

with this code, android select only files audio, image and video....

 

hot to do?????

 

help me please!!!!

 

i can't finish my application with problem....

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points