LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




ReplyREPLY THREAD
 
Thread Tools Display Modes
  #1  
Old 01-06-2005, 01:28 AM
Rantanplan's Avatar
Rantanplan Rantanplan is offline
Registered User
 
Join Date: Nov 2004
Location: Lisboa, Portugal
Posts: 301
Rep Power: 9
Rantanplan is on a distinguished road
Source Calling jsfl files from Flash - how and why?

How the heck do I "call" a jsfl file from a Flash doc??!!

(Still learning learn how-to, why and when-to create one )

Also, being the noob I am, what's the main advantages I can get from a jsfl file? Is it the pure Java that Flash can't use? Or what?

An example would be much appreciated, to get into the concept, for starters.

Cheers and great new idea for a forum
__________________
Every problem is an opportunity in disguise!
Reply With Quote
  #2  
Old 01-06-2005, 02:11 PM
FrozenMedia's Avatar
FrozenMedia FrozenMedia is offline

Frozen Moderator
 
Join Date: Apr 2003
Location: United Kingdom
Posts: 2,701
Rep Power: 13
FrozenMedia is on a distinguished road
Hi Rantanplan hows it going?

To call a JSFL script from a Flash movie (for example a SWF that you have placed in the WindowSWF folder to create a new panel). You use:
Actionscript:
MMExecute('fl.runScript( fl.configURI + "Commands/Test.jsfl" );');
Make sure you have put the JSFL in the "Commands" directory e.g.
"C:\Documents and Settings\USERNAME\Local Settings\Application Data\Macromedia\Flash MX 2004\en\Configuration\Commands"

You can even execute JSFL directly with it, e.g.
Actionscript:
var numLibItems = MMExecute("fl.getDocumentDOM().library.items.length");
I spent last night trying to learn some JSAPI since this new addition to the forum was unveiled, it really really is a pain to use sometimes, like having to write your own Math.round routine using Strings but still cool!

There are plenty of advantages, I started writing a tool to set all movieclips on stage to an exact pixel, very useful for crisp fonts and edges. You can get it to go through your library and perform tasks such as organise it. You can save things to file. dv8 wrote an MP3 player for the Flash IDE You can get it to perform "batch" tasks on library clips, and publish movies for each, it can do almost anything you can in Flash, but automated! You can even get it to perform dynamic curve optimization on shapes with a custom Windows/OSX panel you write in XML (XUL) and use sliders etc to modify the curve simplicity for example for a shape ACE!!.

Rich

p.s. more here
http://livedocs.macromedia.com/flash...=00001474.html
__________________
Blog: http://www.richardleggett.co.uk | If your happy with the help, let us know about it
Reply With Quote
  #3  
Old 07-27-2005, 08:42 AM
Rantanplan's Avatar
Rantanplan Rantanplan is offline
Registered User
 
Join Date: Nov 2004
Location: Lisboa, Portugal
Posts: 301
Rep Power: 9
Rantanplan is on a distinguished road
As the old Parker Lewis himself would say:

"COOLNESS!"
__________________
Every problem is an opportunity in disguise!
Reply With Quote


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump




All times are GMT. The time now is 02:06 AM.