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
0
votes
1 answer

In JSFL, is there a workaround for writing to BitmapItem.sourceFilePath?

I want to write a script that replaces the source of certain bitmap objects in my library with another file. Actually, it's not important that the object is updated on the stage in Flash, and I don't care if BitmapItem.sourceFileIsCurrent's state…
PokeJoe
  • 57
  • 1
  • 7
0
votes
1 answer

How to save .fla as .xfl by code?

I am using jsfl to save .fla Doc in flash.But I want to save as .xfl(uncompressed document format), and I can't find useful API in jsfl.What should I do? Thanks!
zzy
  • 1,771
  • 1
  • 13
  • 48
0
votes
2 answers

Changing stroke scale modes with a JSFL script?

I know there aren't many who use JSFL, but I thought it was worth a shot: Is there any way I am able to use JSFL to loop through the strokes in a document and change their scale type to a different setting? I know how to do it in the Flash IDE…
shennan
  • 10,798
  • 5
  • 44
  • 79
0
votes
2 answers

JSFL Replace image for library image

Im trying to make a script using JSFL but I have the following problem... To understand what Im trying to do, first I used a script to export all images in the library, because I need to make a process to all PNG files. Now I want to reinsert the…
Rodrigo.C
  • 1,123
  • 2
  • 10
  • 22
0
votes
0 answers

JSFL - Running an action on publish

I want my JSFL to be run every time an FLA is published so I can create meta-data on publish time (like the date-time in which it was published). I cannot find an event or similar to hook a call to my JSFL code. Just for anyone that is still…
Sisnett
  • 101
  • 5
0
votes
2 answers

How to swap bitmap in a symbol use jsfl

I want to swap a bitmap in symbol with another bitmap,and I found the the function swapElement This is what I have tried var elements = item.timeline.layers[0].frames[0].elements;//item is the symbol for (var j = 0; j < elements.length; j++)…
Pan
  • 2,101
  • 3
  • 13
  • 17
0
votes
1 answer

JSFL - Embedding fonts?

Ive been looking into this issue for a while and dont seem to be getting anywhere. All the online help ive found leads to this current method, which isnt working. I'm looping the assets of an FLA and replacing the font face. Id also like to embed…
user943616
0
votes
1 answer

JSFL - Responding to the "Replace Existing Item" dialog

I am adding a new version of a custom component to the fla using jsfl. This prompts the user to choose whether to replace the existing components or not. If possible, I'd like to respond to this prompt through jsfl. Thanks.
user943616
0
votes
1 answer

JSFL - Adding a movieclip to a specific layer and frame

I am trying to replace an outdated movieclip with a newer one. To do this I'm usin JSFL to locate the old movieclips, save a reference, then add the new version in its place. I have looked at addItem addItemToDocument and they successfully add the…
user943616
0
votes
1 answer

When creating a Flash WindowSWF (extension/panel plugin), what's the easiest way to mimic the Flash UI?

I'm working on a Flash WindowSWF Panel (extension/tool as a plugin for Flash) and using components as a quick UI solution. Is there a way to get the ui components to look like the Flash IDE interface? I'm using Flash CC with the Dark theme.
0
votes
1 answer

JSFL autowrap textfield

I am struggling with JSFL text fields. I want to put a text field on stage with a static width of 220px. So if the string that is put into the text is longer than that it auto wraps to the next line. Any suggestions? doc =…
stw7651
  • 37
  • 5
0
votes
1 answer

Word count in flash?

Does anyone know if I could get a word count from an fla? Maybe this could be done with a JSFL? (I'm not sure). I have 7 large FLA files with 100s of MCs containing text. I now need to get a word count but not sure if it's possible without going…
stowbee
  • 59
  • 1
  • 1
  • 8
0
votes
1 answer

How to set the selected radio-button in a XMLUI radiogroup?

In some examples on the web (http://ajarproductions.com/blog/2011/03/03/creating-flash-extensions-pt-4-ui/) there is "fake" demonstration that claims that this works:
chamberlainpi
  • 4,854
  • 8
  • 32
  • 63
0
votes
2 answers

JSFL delete Flash aso files

I'm using FDT 3 and Ant to make a jsfl file that is then executed to compile fla's and I'm trying to figure out how to get the jsfl to remove the aso files. I've tried storing the path to the aso files in a property in Ant the is then added to the…
Jordan
  • 1,233
  • 2
  • 12
  • 32
0
votes
2 answers

Using JSFL, pulling items out of a library using libraryPath

I'm making a SWF panel to automate some file setup. I'm using the libraryPath JSFL command to point to some external libraries. How do I put an item from one of those external libraries onto the stage using JSFL? I've…
Chuck
  • 898
  • 1
  • 9
  • 20