Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Adobe AIR Development

Reply
New Contributor
rushabhs
Posts: 8
Registered: ‎07-14-2011
My Carrier: abc
Accepted Solution

Needed help with file io operations on the playbook using AIR.

I am working on this playbook app where I will download a file( a zip file ) from a site and then open it on the playbook. Before starting my working on this I learnt Adobe air and created the same on it, since I heard that the playbook supports Air.

So can we create air objects on the playbook ,for example
var file =new air.File(path);

Then the getDirectoryListing() , resolvePath() , can these be used on the playbook since an api for file io operations on the playbook I guess hasnt been developed.
Thanks.

Please use plain text.
Developer
CoCopia
Posts: 231
Registered: ‎05-03-2011
My Carrier: Legs

Re: Needed help with file io operations on the playbook using AIR.

You want 

 

import flash.filesystem.*;

 

then to find a path it's

 

var dataFile:File = File.applicationStorageDirectory.resolvePath("yourData.File");

Keep the Forum productive and useful for all. Click Kudos button if I've helped you. Select Solved to help everyone.

PlayBook qualifying app - Pandoras' Lights
Blog - CoCopia.co.uk Catch me on Twitter cocopia_apps
Please use plain text.