Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Desktop, Mobile and non-browser Environments > AIR (Apollo)

Reply
 
Thread Tools Rate Thread Display Modes
Old 12-10-2007, 08:27 PM   #1
adrian281990
Member
 
Join Date: Jul 2007
Posts: 47
Default Browse on the computer using air

I wont to add a new panel to my air app. I wont this panel to contain the user computer tree(ex my computer, my documents, etc, like Microsoft Explorer, or on mac the Finder) I wont to let the user navigate with this panel when the user double clicks on a flv file to play that file or drag that file.
Please help, if can give me an example it will grate.
Thank you,
Adrian
adrian281990 is offline   Reply With Quote
Old 12-10-2007, 08:28 PM   #2
adrian281990
Member
 
Join Date: Jul 2007
Posts: 47
Default Browse on the computer using air

I wont to add a new panel to my air app. I wont this panel to contain the user computer tree(ex my computer, my documents, etc, like Microsoft Explorer, or on mac the Finder) I wont to let the user navigate with this panel when the user double clicks on a flv file to play that file or drag that file.
Please help, if can give me an example it will grate.
Thank you,
Adrian
adrian281990 is offline   Reply With Quote
Old 01-03-2008, 01:33 PM   #3
xwielder
Senior Member
 
Join Date: Aug 2007
Location: NE Ohio
Posts: 524
Send a message via AIM to xwielder
Default

ActionScript Code:
// Represents a path to a file or directory. import flash.filesystem.File; // Used to open files for reading/writing. import flash.filesystem.FileStream; // Determines the capabilities available to the FileStream object once the file is opened, // which include writing, reading, appending, and updating. import flash.filesystem.FileMode; // Variables var OpenFILE:File = File.documentsDirectory; // Listeners myBrowseButton.addEventListener (MouseEvent.CLICK, browseForFile); // Functions function browseForFile (event:Event):void {     var xmlFilter:FileFilter = new FileFilter("XML (*.xml)", "*.xml");     OpenFILE.browseForOpen ("Open the XML file", [xmlFilter]);     OpenFILE.addEventListener (Event.SELECT, fileSelected); } function fileSelected (event:Event):void {     trace("Thank you, you've browsed for and selected a file"); }
xwielder is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
AIR Packaging Problem mprzybylski AIR (Apollo) 3 12-16-2007 08:21 PM
Browse on the computer adrian281990 AIR (Apollo) 0 11-15-2007 06:44 PM
AIR Help pol_ice AIR (Apollo) 0 08-25-2007 06:24 AM
saving variables on a stand alone computer neilmmm Projectors and CDs 3 09-05-2006 05:16 PM
my computer met great trouble, anyone help~~~ black General Chat 4 06-24-2002 12:54 PM


All times are GMT. The time now is 01:07 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.