.jsfl files are used to add functionality in the Flash Authoring environment; they contain JavaScript code and access the Flash JavaScript API.
Questions tagged [jsfl]
167 questions
1
vote
0 answers
Debug JSFL for Adobe Animate CC?
Back when it was called flash, we could debug using the extendScript Toolkit editor. But that editor doesn't seam to support Adobe Animate, and the official docs say to edit JSFL in adobe animate. Animate has a debug panel, but no obvious options…
user5900250
1
vote
1 answer
change text of tlf text field from jsfl
How can I set/change the text of tlf Text Field using jsfl. Apparently .setTextString() only works for classic text fields.

ramromanche
- 11
- 1
1
vote
2 answers
JSFL - Flash CS4: replace textfields' font by an embedded font
I have tried a bunch of JSFL scripts to change textfields' fonts of a fla library. I used those scripts to change textfields' fonts for an embedded font which do exist in the library. All scripts run fine through Flash CS3 but always fail through…

khelkun
- 159
- 1
- 13
1
vote
0 answers
How to update all the strokes on the canvas in JSFL?
I am looking for a way to update the widths of all the strokes on the canvas.
document.selectAll();
document.selection.forEach(function(el) {
if (el instanceof Shape) {
el.beginEdit();
el.edges.forEach(function(edge) {
…

indieman
- 1,051
- 2
- 11
- 24
1
vote
2 answers
Rotation + Matrix + JSFL
Flash Tranformation Matrix via JsFL are mean to me :(
I have to write a JsFL script that creates a text on my Flash scene, and rotate it with a random angle.
Imagine I want to create and rotate a "Hello World!" at 45 degrees, my code looks like that…

lvictorino
- 575
- 4
- 18
1
vote
2 answers
Automatically creating hundreds of .fla files, who gather external ressources
I'm looking to create a lot of .fla files automatically but I'm not sure where to start.
This is for an internal tool for a cartoon studio, they work with Flash CC, each file Flash is a scene for an episode (scene1, scene 2, scene 3 ...) and in each…

Edgard Gamelle
- 11
- 1
1
vote
0 answers
Exporting several swf's from single fla
I have a single fla-file which has several different animations on a main timeline.
Each animation sequence starts with a frame marked with a specific label.
I need to keep the source file this way, but I also need to have separate swf files each…

momijigari
- 1,598
- 2
- 14
- 28
1
vote
1 answer
Aligning to Stage top-left with JSFL in Flash IDE CS5
See Title.
I'd do it by hand but there are 200+ .fla files that have been centered in the middle of the stage that I then load into AS3 (Flash Builder 4).
Thanks for the help.
Jono

Jono
- 3,949
- 4
- 28
- 48
1
vote
1 answer
Return values with JSFL script in Javascript
I have a file named loader.js, and this is my code :
var csi=new CSInterface();
function evalScript(script, callback) {
new CSInterface().evalScript(script, callback);
}
var docName = evalScript('fl.getDocumentDOM().name');
alert(jsfl);
The…

Arfian90
- 71
- 1
- 12
1
vote
0 answers
Add a new line of text/function to an existing html file with JSFL
I want to add some line of text/function to an existing html file. I can read the file with FLfile.read(), and this is my code:
var pathCom=fl.getDocumentDOM().pathURI(); //get complete path
var…

Arfian90
- 71
- 1
- 12
1
vote
1 answer
Flash JSFL, how to replace/update a bitmap item with a image file with different name
I have many FLAs. For each fla, i need to replace some images with local image files. Those local image files do not have the same name as original imported.
I know it can be done manually: right click the item in library -> properties ->…

autumn
- 172
- 1
- 1
- 10
1
vote
1 answer
Is it possible to access as3 functions and variables through JSFL?
I am writing a JSFL script to export a set of png files for each major section of a flash animation. In order to do this, I need access to functions and variables in the Flash file's Main.as class. The documentation for JSFL is very sparse on the…

Graeme Sutherland
- 21
- 1
1
vote
1 answer
Multiresolution spritesheets from Flash movieclip
I'm trying to export multiresolution spritesheets from a movieclip or a library item in a FLA file via JSFL.
What I want to achieve is the correct automated exporting of 1x, 2x, 4x spritesheets of a single movieclip, ready for multiresolution…

Fuzzy Mind
- 101
- 7
1
vote
1 answer
JSFL spritesheetexporter BUG
I'm using jsfl to create my own customized spritesheet exporter.
I'm using the fl.spritesheetexporter class.
For some reason, every time I try to insert a name in the addSymbol method:
var exporter=new SpriteSheetExporter();
var…

calimero
- 31
- 1
- 4
1
vote
1 answer
Is there any setTimeout equivalent in JSFL
I've created a JSFL code which retrieves the position, width and height of all the elements and write them in a JSON file. Its absolutely working fine on some Flash files.
I observed that it sometime fails on the heavy files. And sometime it never…

Govinda
- 1,031
- 8
- 11