Accessibility

Flash Article

 

Introducing the JSFL File API


Guy Watson

Guy Watson

www.flashguru.co.uk

Table of Contents

Created:
19 July 2004
User Level:
All

The latest update to Macromedia Flash MX 2004 adds new file I/O capabilities to the JavaScript API (JSAPI). The shared library installed with the Flash MX 2004 7.2 Updater exposes a new FLfile object to JavaScript Flash (JSFL). This object contains 14 new functions that enable Flash developers to write Flash extensions that can access, modify, and remove files and folders on the local file system.

In this article I introduce you to the new functionality of the File API and show you how to implement it in your JSFL scripts.

Note: This article discusses extending the functionality of the Flash authoring environment through the extensibility layer and JSFL. It does not apply to Macromedia Flash Player, or adding File I/O capabilities to SWF files.

Requirements

To complete this tutorial, you will need to install the following software:

Macromedia Flash MX 2004 7.2

Prerequisite Knowledge

A basic understanding of JSFL syntax, the Flash authoring environment, and familiarity with JavaScript.

About the author

Guy Watson is the managing director of FlashGuru LTD, a Flash development consultancy company based in London, England. Guy has delivered presentations at various Flash industry events worldwide and has also won numerous industry awards for his work. He maintains the popular Flash resource website, FlashGuru's Knowledgebase .