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
12
votes
4 answers

Is it possible to publish a FLA from the command line?

In our project we have a large number (hundreds) of FLA files created by the artists in CS3, from which we compile SWFs to use in our Flex/AS3 application. As part of a streamlined build/deploy system, it would be really handy to be able to automate…
MidnightGun
  • 1,006
  • 1
  • 19
  • 39
4
votes
1 answer

Debug jsfl in ExtendScript for Flash CS5

This is a total noob question, but I'm trying to figure out how I can debug some JSFL that I created, stepping through it as the code runs on a Flash CS5 file. The DEBUG menu dropdown in ExtendScript has "run" grayed out... If I double click the…
clockworked247
  • 347
  • 3
  • 13
4
votes
1 answer

Accessing child/nested movie clips with JSFL AS3 CS5.5

How can I access a movie clip's children (specifically child movie clips) in jsfl? I am already at the instance level from flash.documents[0].timelines[0].layers[0].frames[0].elements[0].instance I've found this documentation but not much…
Brian Wheat
  • 161
  • 1
  • 8
4
votes
3 answers

bulk rename flash library items with jsfl

version flash cs5 ok so i know the general code to rename all selected library items var items = fl.getDocumentDOM().library.getSelectedItems(); for (var i=0; i
SketchBookGames
  • 464
  • 8
  • 14
4
votes
1 answer

Automating publishing of FLA files; calling Process.Start multiple times

Problem Background I've created a "One-Click" publication process for my Flash (*.fla) project files with a C# program that performs the following operations: Updates a static "version" variable in two main project files (one for each FLA…
Triynko
  • 18,766
  • 21
  • 107
  • 173
3
votes
5 answers

JSFL: FLfile.runCommandLine & properly escaping spaces for Windows commandline args

I am working on a JSFL script that will export WAV files and use lame.exe to encode them as MP3, via FLfile.runCommandLine. I can't figure out how to properly escape the spaces in the command linefor this to work. var command_line =…
Mambo4
  • 182
  • 7
  • 17
3
votes
4 answers

How to access group members in Flash CS3

I'm writing a script to access all dynamic textfields in the library of a flash (fla) file and embed certain character sets. I iterate through all objects looking for textfields, but It seems there are some issues when trying to access members of a…
BefittingTheorem
  • 10,459
  • 15
  • 69
  • 96
3
votes
3 answers

Replacing Fill Colors in JSFL

I am attempting to write a JSFL script that will replace all contour fills that match given colors on selected frames. My problem is that if I call shape.beginEdit() and shape.endEdit() as specified by the JSFL documentation, the script crashes…
3
votes
1 answer

JSFL - Change Static Text value

I've got a movie clip with an instance name of 'location_mc' in which there is a single classic static text field. I want to change the value of this field. So far i've attempted searching for the instance by name using findObjectInDocByName and…
dg85
  • 490
  • 2
  • 7
  • 21
3
votes
3 answers

Embed webserver in carbon bundle

I need to embed a tiny webserver in a compiled jsfl external library for Adobe Flash CS4 so that an outside process can communicate with it. The external library will be a Carbon bundle on Mac and a set of dlls on Windows, so the webserver will…
John Wright
  • 2,418
  • 4
  • 29
  • 34
3
votes
1 answer

How to do I get JSFL to save trace output to a file AFTER a testMovie command?

I'm trying to automate a unit test for one of our products. It is ActionScript based but we do not have FlashBuilder. We use Jenkins to do all of our automated output and I can get everything working fine with the file up to and creating and…
kminke
  • 78
  • 10
2
votes
2 answers

How does one get the stroked bounds of a symbol in JSFL?

DisplayObject.getBounds in actionscript returns the bounds of the object with the strokes included. The left, top, width, height properties of a SymbolInstance in JSFL don't seem to include the strokes. That's the only way I've found to get the…
Charlie Groves
  • 396
  • 3
  • 7
2
votes
2 answers

E4X filtering in Spidermonkey

I'm using E4X in SpiderMonkey, and the majority of the language seems pretty solid, but I can't get filtering to work: var xml = Dave Ian John trace(…
Dave Stewart
  • 2,324
  • 2
  • 22
  • 24
2
votes
1 answer

How to save .fla files in older Flash IDE format with JSFL?

Since Flash 5.5 by default saves files in 5.5 format that's incompatible in 5.0 editors we need a way to save .fla files in older format with a JSFL script. Can this be done? How? Background: One of our developers installed the Flash IDE 5.5 and ran…
Mikko Tapionlinna
  • 1,450
  • 1
  • 12
  • 21
2
votes
1 answer

AS 3.0 addChild functionality in JSFL?

Is there a way besides pasting frames inside a layer to add an element into a timeline? I'd like to replicate the addChild functionality from actionScript into JSFL. So basically, I'd like to add a bunch of movieClips instances into another movie…
1
2 3
11 12