Groups | Blog | Home
all groups > flash exchange extensions > december 2005 >

flash exchange extensions : JSFL from SWF



ANDR_ew
12/18/2005 3:16:37 PM
Could you explain to me, how can we run JSFL script file from running SWF using
ActionScript.
In help I have only found that the only way to run JSFL was to use RunCommands
from Commands menu or fl.runScript() from another JSFL file...

Thanks!
dr_ross
12/19/2005 9:54:02 AM
You can only use JSFL from a SWF if the SWF is embeded in the flash author
envriroment, as a panel in the windowSWF folder or as a new StartPage. then to
call the JSFL you need to use the MMExecute() function, look it up in the help.
Its very simple, so to call a JSFL script you'd just use

MMExecute("fl.runScript( fl.configURI+ ' /commands/jsflcommand.jsfl ' ) " );

the fl.configURI is a shortuct to the flash config folder where the commands
folder is
and the '/commands/jsflcommand.jsfl' is the path to a .jsfl file called
jsflcommand, edit this to what ever you need

hope that helped dr_ross
ANDR_ew
12/20/2005 12:09:26 PM
Thank you , dr_ross !!!

I hoped it was possible to access file system via SWF.
I wanted to make SWF mp3 player for a local mashine or picture browser (file
system access needed).
As far as I understand, we have to use php to list \ view directories (fake
directories of site) or pre-created XML list - no local "open file" menu
available :(

Are there any other ways to get a list of files in a directory ???
(except PHP, XML, MySQL)

Thanks!
dr_ross
12/20/2005 12:47:39 PM
if you mean at runtime then yes you can, but only if you use something like
northcode or MDM to wrap your swf up into a exe, when your movie is in a swf
form theres noway you'll have access to things like that, flash is made to be
secure.

Look into Northcode and MDM, i seem to recall they use a flash built mp3
player as an example, flash jester may even have the functionality you need as
well

Northcode - http://www.northcode.com/
MDM - http://www.multidmedia.com/
flash jester - http://www.flashjester.com/

hope that helps, dr_ross
ANDR_ew
12/20/2005 8:47:38 PM
Thank you, dr_ross, for information!
links are interesting
those programs are good to integrate with flash projector!
So I'll cease trying to do anything with single SWF....

AddThis Social Bookmark Button