header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Manu
Points:0
Posts:0
Answered

7/16/2010 8:47:09 AM

Title: File open Restrict types


How to show a file-open-dialog to open/show only some format files such as txt or pdf?



1
Wilbur
Points: 510
Posts:0
Accepted Answer
7/16/2010 11:09:20 AM



use the following code to restrict the user to specific file types in actonscript 3 . Only permitted file types will be appearing while browsing se this example


// permitted types are ppt and pptx
file = new FileReference();
this.configureListeners(file);
var filesFilter:FileFilter = new FileFilter("All Formats","*.ppt;*.pptx;");
var success:Boolean = file.browse([filesFilter]);


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 5+0 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions