jsfl

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

元气小坏坏 提交于 2019-12-31 01:02:51
问题 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 else. Thanks in advance. 回答1: The thing to remember in JSFL is that elements on stage are also items in the library, so it doesn't matter how many times you have something nested, it's still a clip in the library, and often that's the thing you want to work

What methods are there for creating FLAs with dynamically created text, that outputs swfs with only the font glyphs included that are required?

十年热恋 提交于 2019-12-25 17:48:48
问题 When I create an FLA with static text fields it only includes the glyphs that are in the text fields. This is the behaviour required, but I want to create those text fields from XML. I want to be able to create an FLA with dynamic text fields so that I can populate them using a config ( XML ) file, and then the output is like an FLA with static text fields - so that I use as few glyphs as possible. Is this possible? I suppose I could write a .jsfl script to read an XML file to make this work

CS5.5 import video through jsfl without video wizard

血红的双手。 提交于 2019-12-23 04:47:09
问题 I'm trying to have a jsfl script import a video into my .fla project and export the entire thing as a .swf automatically Is it possible to disable the video wizard when importing videos? I'd hate to have to manually confirm all the options every single time. The video is in .flv format if that makes any difference 回答1: AFAIK you can't bypass the FLV import dialog directly (using the JSFL API). I've tried automating the FLV import wizard using a Sikuli script. The script can be run from JSFL

How can I get the alpha value on an Instance (in JSFL)?

大憨熊 提交于 2019-12-13 06:44:56
问题 If I use simple Alpha color effects on an instance on the stage, how do I access it via JSFL? An instance's *.colorAlphaAmount and *.colorAlphaPercent doesn't access the above illustration's value. It's only useful for "Advanced Color" effects. It looks like fl.getDocumentDOM().setInstanceAlpha(18); can SET the alpha property, but NOT GET it. Also, this method would assume that the instance is selected in the current timeline / layer / frame, which I likely wouldn't (since I'm iterating

JSFL - How to change the font of a text field?

泄露秘密 提交于 2019-12-13 02:54:43
问题 Im trying to set the font (face) of a textfield. Ive tried both : textElement.setTextAttr("face", replacementFont); textElement.setTextAttr.face = replacementFont; Where replacementFont is the text name of the desired font. This doesnt work - am I missing something? 回答1: 'textElement.setTextAttr("face", replacementFont);' works for me. Probably the font you are trying to replace with, is not installed. You could try this: textElement.setTextAttr('face', replacementFont); if (textElement

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

非 Y 不嫁゛ 提交于 2019-12-12 07:09:43
问题 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 publishing all these FLAs, and ideally deploying the SWFs too. I found some ways to do the batch publishing from CS3 using JSFL, but was surprised to discover CS3 doesn't apparently have any command-line functionality for this? This is on a Linux

JSFL: Detecting when an Element has been flipped

旧城冷巷雨未停 提交于 2019-12-08 07:16:36
问题 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, position, rotation, scale and a local offset. These are read into the custom player which feeds the data to a sprite engine to recreate each frame of the animation. What I want to be able to do is detect whether a given Element has been flipped (i

Fill figure with JSFL

寵の児 提交于 2019-12-07 22:32:36
问题 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, y:0}); // how can I fill it, because this way doesn't work doc.setFillColor('#0000ff'); 回答1: Try this: var doc = fl.getDocumentDOM(); // draw rectangle doc.addNewLine({x:0, y:0}, {x:2000, y:0}); doc.addNewLine({x:2000, y:0}, {x:2000, y:500}); doc

Is it possible to use jsfl to export sound files from flash library?

懵懂的女人 提交于 2019-12-01 12:48:18
I found this script which seems to do what I need, however, when I try to export a file I get the "filename: false" as output. Any idea? http://cookbooks.adobe.com/post_Extract_bitmaps_and_audio_from_a_FLA_file-18144.html Took me a bit but I figured out your problem. The issue is with this little property of your sound file: soundItem.originalCompressionType . You can find some detail for the issue here . What is happening in your code is that it will try to export the sound file as the type that it is stored as in the library. i.e. filename.mp3 saves as a .mp3 file and filename.wav saves as a

Is it possible to use jsfl to export sound files from flash library?

旧时模样 提交于 2019-12-01 11:26:07
问题 I found this script which seems to do what I need, however, when I try to export a file I get the "filename: false" as output. Any idea? http://cookbooks.adobe.com/post_Extract_bitmaps_and_audio_from_a_FLA_file-18144.html 回答1: Took me a bit but I figured out your problem. The issue is with this little property of your sound file: soundItem.originalCompressionType . You can find some detail for the issue here. What is happening in your code is that it will try to export the sound file as the