Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.37 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. flex air filemode read external file
  2. protected function main():void{
  3. var file:File = File.applicationDirectory.resolvePath( "logo.png" );
  4. var stream:FileStream = new FileStream();
  5. stream.open( file, FileMode.READ );
  6. var logo:String = stream.readUTFBytes( stream.bytesAvailable );
  7. }
  8.  
  9. <mx:Image includeIn="login" x="208" y="195" id="logo" height="248" source="{logo}"/>