Questions tagged [jsfl]

.jsfl files are used to add functionality in the Flash Authoring environment; they contain JavaScript code and access the Flash JavaScript API.

167 questions
2
votes
0 answers

Can JSFL be used to set a Global Include script?

We are converting several thousand .FLA files from SWF (Flash CS6) to HTML5 Canvas (Animate CC format). I have already written a JSFL script that automates the process: Converts Compiled Clips to HTML5-friendly objects Converts document to HTML5…
Dre G
  • 56
  • 6
2
votes
1 answer

exportSVG in jsfl run as a command in adobe animate doesn't work

In Adobe Animate and with a .fla file (after importing a swf file, import to stage), I run this script var exportFileName = 'file:///C|/temp/files/a.svg'; fl.getDocumentDOM().exportSVG(exportFileName, true, true); it doesn't seem to do anything at…
atreeon
  • 21,799
  • 13
  • 85
  • 104
2
votes
2 answers

Compile all Opened FLA files in Flash IDE using JSFL

Is there is a JSFL script to compile all opened fla in the Flash IDE?
particle
  • 131
  • 5
  • 13
2
votes
1 answer

How to dismiss font substitution dialog box using JSFL

is there any way to dismiss font substitution dialog box using JSFL? I am trying to open a *.fla file using JSFL and I am getting font substitution dialog box because one font is not there, I had to click 'Ok' or 'Cancel' button manually to run…
sam2215
  • 31
  • 7
2
votes
2 answers

JSFL: Suppressing/auto clicking on Dialog boxes

var tmpDoc = fl.createDocument(); /*..some logic...*/ tmpDoc.addItem({x:0,y:0},item); My JSFL has the above code. And on the 3rd line, I get a dialog box : which has title : "Resolve library conflict" two radio button options : "replace","dont…
simplfuzz
  • 12,479
  • 24
  • 84
  • 137
2
votes
1 answer

How can I get values from Flash Authoring in JSFL via XMLUI?

I want to set a variable from a flash file so that I can access if from JSFL in a Command. I am using a element in JSFL's XMLUI: Here's the JSFL: fl.getDocumentDOM().xmlPanel(fl.configURI +…
George Profenza
  • 50,687
  • 19
  • 144
  • 218
2
votes
1 answer

Problem with dll called in JSFL

I need to create dll using C. But I saw some problems. OK, first: I need function in dll library to compute angle of the line - tgA = dy/dx. Angle = arctg(dy/dx). And I define this in file framework.c: JSBool computeAngle(JSContext *cx, …
Igor
  • 376
  • 1
  • 6
  • 14
2
votes
2 answers

Fill figure with JSFL

I draw figure in Flsh ID with JSFL methods, for example // draw rectangle doc.addNewLine({x:0, y:0}, {x:2000, y:0}); doc.addNewLine({x:2000, y:0}, {x:2000, y:500}); doc.addNewLine({x:2000, y:500}, {x:0, y:500}); doc.addNewLine({x:0, y:500}, {x:0,…
Igor
  • 21
  • 2
2
votes
1 answer

How to change Item's "Component definition" in library in Flash by jsfl?

I want to change "Component definition"(I don't know what is in English version's Flash) of Item in library. Item is a simple MC or Component.A MC will be changed into Component by add Component definitions. The place to add "Component definition"…
zzy
  • 1,771
  • 1
  • 13
  • 48
2
votes
1 answer

How do I set the name of a Stage Instance name of a Movie Clip with JSFL

When I create a movie clip with JSFL and I set the .name parameter - this becomes the name of the Movie Clip as it appears in the library - I want to supply an instance name for the movie clip on the stage however. I've attached a pic to show the…
MikeW
  • 4,749
  • 9
  • 42
  • 83
2
votes
1 answer

JSFL typewriter effects for Flash CS6

Hopefully this is a quick one - I haven't touched flash since cs3 and the following jsfl typewriter effect use to work. I'm not sure if there is a bug but in CS6 the effect actually works backwards - as if it has reversed the selection? The last…
user2214369
2
votes
1 answer

Listen to Swf Panel close

I'm working on a project for flash pro cs and I would like to know when a Flash Pro user closes an SWF panel. The panel needs to know before it closes and perform a function before that. Is there a way to do this? I know this is possible in Air but…
user2071276
  • 113
  • 6
2
votes
1 answer

Converting Multiple Shapes & Groups to Movieclips / Symbols in Flash CS5

I have been searching the web for about 2 hours now looking for an extension (MXP) or a JSFL script to help me convert 300 + shapes I have on the stage into symbols. The names don't matter, they could be symbol_001, 002, etc. It seems like such a…
KorinW
  • 279
  • 4
  • 10
2
votes
2 answers

How can I STOP the JSFL process in flash CS5?

I write a JSFL script, have a very long loop, when this script is running, I can't stop it. only using the Alt-F4 to kill the Flash CS5, then restart it. this is too crazy. How can I stop the JSFL script without kill the Flash?
Yan Chen
  • 53
  • 2
  • 7
2
votes
2 answers

How can I include some js file in JSFL file?

I'm using JSFL to writing some script, I need parse json string from some config files, so I need the JSFL can parse json string, but JSFL seems can't do this. then I thinks to include some json lib, like json.js, to JSFL file. Way can I include the…
Yan Chen
  • 53
  • 2
  • 7
1
2
3
11 12