Archive for the ‘jsfl’ Category

I need help with AIR,Flex,JSFL and Batch Files

Posted on October 10th, 2008 in Other, jsfl | No Comments »

I’m creating an Air application done with Flex and my problem is that it will/must execute a JSFL or a batch file. Currently i have tried using fscommand exec but failed, i even went into

var batFile:File = File.applicationStorageDirectory.resolvePath("test.bat" );
file = File.applicationStorageDirectory.resolvePath(this.txtRootDir.text + "\\test.bat" );
file.copyTo(batFile, true);
fscommand("exec","test.bat");

Where it copies the bat file from the source folder to the application folder, coz ffcommand, as what i know only execute script inside application folder (i might be wrong here).

The content of the test.bat is
PATH=”C:\testFolder”;
cd %PATH%
test.jsfl

the content of the jsfl is
fl.openDocument( ‘file:///c:/test.fla’ );

I’m okay with any answers, either hack or the real solution, or any suggestion, anything as long as i could get it to work. Thanks a lot

Understanding JSFL

Posted on January 19th, 2008 in jsfl | No Comments »

JSFL is Javascript Flash Language, the core language syntax is javascript but it has its own DOM or Document Object Model. To understand JSFL is to understand how you your mouse works when you are creating something within the flash IDE then in JSFL you translate those mouse movement/clicks into codes. What do i mean by this?
Read the rest of this entry »