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
1
vote
2 answers

JSFL: how to access Motion Tween keyframes in Adobe Flash CS5?

our animator created a very complex movieclip in Adobe Flash CS5, containing 50+ layers, motion tweens and 3D tweens. Unfortunately, she placed all elements 680 pixels too far to the right and 400 pixels too far down. We're trying to find a way to…
Paul Houx
  • 1,984
  • 1
  • 14
  • 16
1
vote
3 answers

JSFL: selecting items returned by fl.findObjectInDocByType()

I can't seem to use the info returned by fl.findObjectInDocByType() with fl.getDocumentDOM().selection. I want to use document.setTextRectangle to re-size some text fields from an array generated using fl.findObjectInDocByType(). I can easily access…
Mambo4
  • 182
  • 7
  • 17
1
vote
3 answers

Batch Image Trim

I have a Flash fla file that contains a whole lot of images. The majority of each image is composed of transparent pixels with a visual object in there somewhere. Each image at the moment is at {x:0, y:0}. I want to trim away the transparent pixels…
BefittingTheorem
  • 10,459
  • 15
  • 69
  • 96
1
vote
3 answers

JSFL: Detecting when an Element has been flipped

I'm writing an exporter in JSFL, to export Flash animations into a format that can be replayed in a custom player. The exporter basically iterates through the timeline and through all the elements at each keyframe, and writes out the element's name,…
electrodruid
  • 1,083
  • 2
  • 9
  • 13
1
vote
1 answer

JSFL: convert text from a textfield to a HTML-format string

I've got a deceptively simple question: how can I get the text from a text field AND include the formatting? Going through the usual docs I found out it is possible to get the text only. It is also possible to get the text formatting, but this only…
Alexander
  • 11
  • 3
1
vote
5 answers

Stalling program until JSFL file finishes

I am trying to run a JSFL script from within a C# project, where the JSFL script opens up a .fla file, modifies it n times, and exports n .swf files before closing. From the C# project, I am starting up the JSFL script through the Process class. I…
CodedMonkey
  • 458
  • 1
  • 7
  • 17
1
vote
0 answers

Center static textfield with jsfl: strange results

Using Flash CS3, I'm trying to center a static textfield with jsfl after I've altered its text, like so: textElement.setTextString( text ); fl.outputPanel.trace( 'text width: ' + textElement.width ); textElement.x = -( textElement.width / 2…
Decent Dabbler
  • 22,532
  • 8
  • 74
  • 106
1
vote
0 answers

Adobe Animate JSFL: Is it possible to get the ease used for a tween?

I am attempting to make a mini animation engine using a texture atlas exported from Animate, then using GSAP to perform the animations in my game. However, I find the frame by frame JSON that is exported from Animate to be too large and unwieldy.…
Clif
  • 98
  • 7
1
vote
2 answers

Options for configuring element hierarchy relationships in the Flash IDE

The ultimate goal is to use JSFL to export a 2D skeleton from Flash. The file will likely consist of one or more Movie Clips which animate some Graphic symbols. I can happily export the child symbols as PNGs and also access the keyframe and tween…
Aranda
  • 855
  • 8
  • 17
1
vote
1 answer

Is there a way to request the file location of the currently in Adobe Flash/Animate opened FLA file through a JSFL script?

First of all, I'm not a JavaScript or Flash pro at all. But I have this JSFL script file to extract audios and bitmaps from FLA files through Adobe Flash/Animate. I want to do this with quite some FLA files, but there's one part in the process that…
KingYoshi
  • 21
  • 3
1
vote
1 answer

Execute a jsfl script on a FLA file from command line (in Windows)

This question has already been asked and had been closed that's why I ask it again in the hope that it will help someone. How to execute a jsfl script on a file.fla using a command line with the terminal of Windows (CMD). Not within Adobe Animate. I…
YYY
  • 91
  • 2
  • 11
1
vote
1 answer

Move movieclips to unique layers using JSFL

I have an asset file (FLA) that will be updated a lot by other team members during the project. I would like to have an JSFL script that moves all selected movieclips in the timeline to a new layer (named using the movieclips library name). Layer…
Mattias
  • 3,907
  • 4
  • 28
  • 50
1
vote
3 answers

JSFL setCustomStroke does not work with stroke.style = "noStroke"

So I was messing around with JSFL, and I wanted to set the storke to None. That should be done like this: var stroke = fl.getDocumentDOM().getCustomStroke("toolbar"); stroke.style = "noStroke"; fl.getDocumentDOM().setCustomStroke(stroke); But that…
RasmusWL
  • 1,573
  • 13
  • 26
1
vote
0 answers

How to convert all shapes in a flash file to bitmap using jsfl?

I am trying to write a script to convert all the shapes in the flash file to bitmaps, It seems to be working only when the shape is in the first level of timeline, not working when it is nested inside a symbol. The selection length is always 0.…
1
vote
3 answers

Accessing via AS3 (for export) the gradient of a rectangle created in the Flash Editor

I need to export the gradient settings of a rectangle created with the Flash editor. Our artist creates a rectangle with the gradient in a .fla. Is it possible to retrieve the gradient parameters from the .swf or from a flash plugin I could write?
Sam Washburn
  • 1,817
  • 3
  • 25
  • 43
1 2
3
11 12