cs4 FileReference.save example

this is a simple example of new feature in flash cs4 FileReference.save(). in this example i just create an html file using the rich text editor from http://mobilewish.com/applications/as3texteditor/. and save it using FileReference.save() to local file system . download rich text editor

Source File:http://anilmathew.info/flash/filerefer_example.fla
code sample

import flash.net.FileReference;

abc.addEventListener(MouseEvent.MOUSE_UP, tt.handleClick);
generate_btn.addEventListener( MouseEvent.CLICK, generateTEXT );

function generateTEXT( e:MouseEvent ) {

var texT:String=abc.htmlText;
var file:FileReference = new FileReference();



Ady Levy said...

i did some filereference.load demo on my site: cs4 filereference demo

let me know what you think..

PHP developer Cochin |PHP developer Kerala | PHP developer India | Flash developer/programmer Cochin | Flash developer/programmer Kerala | Flash developer/programmer India | web programmer kerala |web programmer Cochin |web programmer India |web developer kerala |Web developer Cochin | Kerala PHP | PHP freelancer| flash actionscript freelancer