For Download: Preset ActionScript Generator

Posted by TerryG 
For Download: Preset ActionScript Generator
September 01, 2009 01:52PM
During the FlashEff2 Beta, I posted a feature request that the FlashEff2 panel generate some ActionScript code which corresponds to the selected preset. This feature didn't make it into the final release, so I created an AIR app which does this.

It's pretty easy to use: you select a preset for an effect and the app will generate a working AS code example which you can copy and paste into your .fla file. The code includes the necessary import statements, settings for each of the effect's properties, and (optionally) a comment for each property. Some of these comments contain information that's missing from the documentation, such as preset values and lists of valid property values.

More info and download link here.
Re: For Download: Preset ActionScript Generator
September 01, 2009 02:53PM
Holy smokes... gonna try it now. Awesome!!!!!!!
Re: For Download: Preset ActionScript Generator
September 01, 2009 08:56PM
Thanks Shawn. I think the app could be especially helpful when customizing text effects. I didn't understand some of the properties until I started poring over the description files.

Most of the text effect presets work on individual letters, but here's an example which uses "selectedStrings" for the partialGroup property. To see this example, you would need to paste the code below into a new Flash file, then drag the FlashEff2Code and FETScrollSlideGlow components to the library. You would also need to add Verdana - Bold to the library and set it to 'Export for ActionScript'.

(It would be nice if this forum allowed for file attachments.)

var textFormat:TextFormat = new TextFormat();
textFormat.font = "Verdana";
textFormat.align = "center";
textFormat.color = 0x003366;
textFormat.bold = true;
textFormat.size = 33;

var myText:TextField = new TextField();
myText.type = TextFieldType.DYNAMIC;
myText.embedFonts = true;
myText.multiline = true;
myText.wordWrap = true;
myText.autoSize = TextFieldAutoSize.CENTER;
addChild(myText);

myText.defaultTextFormat = textFormat;
myText.text = "Four score and seven years ago, our founding fathers brought forth on this continent a new nation";
myText.width = 550;
myText.x = (stage.stageWidth - myText.width) / 2;
myText.y = (stage.stageHeight - myText.height) / 2;

import FlashEff2Code;

// Modified preset: LinesDown1
import com.jumpeye.flashEff2.text.scrollSlide.FETScrollSlideGlow;

var myEffect:FlashEff2Code = new FlashEff2Code();
addChild(myEffect);

var showEffect:FETScrollSlideGlow = new FETScrollSlideGlow();
showEffect.preset = 19;
showEffect.startPosition = 2;
showEffect.maxGlow = 8;
showEffect.color = 0x999999;
showEffect.glowBlurAmount = 66;
showEffect.alphaPercentage = 77;
showEffect.groupDuration = 0.8;
showEffect.partialGroup = "selectedStrings";
showEffect.partialPercent = 100;
showEffect.selectedStrings = ["Four score", "seven years", "a new nation"];
showEffect.partialBlurAmount = 20;
showEffect.partialStart = 50;
showEffect.tweenDuration = 2.0;
showEffect.tweenType = "Strong";
showEffect.easeType = "easeOut";
myEffect.showTransition = showEffect;

myEffect.target = myText;
Re: For Download: Preset ActionScript Generator
September 07, 2009 05:21AM
Thanks A LOT man!
This is an excellent tool for those who wants to apply the fantastic effects via code.
Congratulations and we´ll be waiting for more of your tools.
Re: For Download: Preset ActionScript Generator
September 17, 2009 09:45PM
Great tool man! Thanks.

Is there a way for you to automatically generate the code for all symbols/text/filter for all effects and presets?
I'd like to use them all but I will not have time to generate all those classes...
Re: For Download: Preset ActionScript Generator
September 20, 2009 02:44PM
Thanks to both of you for the kind words. I'm glad you find the app useful.

rendersolutions Wrote:
-------------------------------------------------------
> we´ll be waiting for more of your tools.

I have some ideas for improving the ActionScript Generator, and I thought of another type of AS generator that could be useful. No promises, but I'll try to work on this when I have more free time.

The one thing I don't want to do, though, is create something which would cause people to not buy the FlashEff2 component. Jumpeye sells three different licenses for FlashEff2, but if you're using ActionScript to create effects it looks like the capabilities are the same for all three licenses. So I didn't see any harm in making the FlashEff ActionScript Generator publicly available.

mianor Wrote:
-------------------------------------------------------
> Is there a way for you to automatically generate
> the code for all symbols/text/filter for all
> effects and presets?

Well, there are more than 3,000 presets, so it would be a pretty big document. I'm not sure a document of that size would be useful unless it had some kind of interactive index (like some pdf files do).
Re: For Download: Preset ActionScript Generator
October 02, 2009 07:57AM
This was a life saver! Thank you sir!
Re: For Download: Preset ActionScript Generator
November 29, 2009 10:21AM
Thank you ! really useful app!
Re: For Download: Preset ActionScript Generator
March 10, 2010 01:26AM
I. Love. You.
Re: For Download: Preset ActionScript Generator
March 14, 2010 09:15PM
Well, my work here is done.

:-)
Re: For Download: Preset ActionScript Generator
July 09, 2015 05:36AM
Thanks for creating the page! Im positive that it will be very popular. It has good and valuable content which is very rare these days.
Superman Jacket
Re: For Download: Preset ActionScript Generator
July 10, 2015 06:19AM
Amazing reference! It’s a truly impressive reading and I like to understand the way you think of them.
<strong><a href="[dubaivfm.com];



Edited 1 time(s). Last edit at 07/10/2015 06:21AM by user1647739.
Re: For Download: Preset ActionScript Generator
August 10, 2015 12:59PM
Your article is very informative. Thanks for this information.
Christian bale Jacket
Re: For Download: Preset ActionScript Generator
November 02, 2015 07:24AM
Amazing reference! It’s a truly impressive reading and I like to understand the way you think of them.
SAMSUNG 40J5170 40 inch[url=https://dubaivfm.com/product/product-category/audio-and-video/television][/url]
Sorry, you do not have permission to post/reply in this forum.