i dont think File is available in flex. it is only available in air. try file reference instead.
Akshar Kaul On Mon, Jun 7, 2010 at 16:40, athi <[email protected]> wrote: > hi > i am working in flex. > i want to create folder using flex 4. > i use this code > private var file:File; > > private function addfolder():void > > { > > file = new File("file:///C:/MyNewFolder"); > > file.createDirectory(); > > } > > the error is > > Type was not found or was not a compile-time constant: File. > > anybody helpme > > regards > > athi > > -- > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<flex_india%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

