Home
> FlashEff 2.0
> Topic
For Download: Preset ActionScript Generator
Posted by TerryG
For Download: Preset ActionScript Generator September 01, 2009 01:52PM | Registered: 14 years ago Posts: 31 |
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.
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 | Registered: 15 years ago Posts: 8 |
Re: For Download: Preset ActionScript Generator September 01, 2009 08:56PM | Registered: 14 years ago Posts: 31 |
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.)
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 | Registered: 14 years ago Posts: 2 |
Re: For Download: Preset ActionScript Generator September 17, 2009 09:45PM | Registered: 15 years ago Posts: 4 |
Re: For Download: Preset ActionScript Generator September 20, 2009 02:44PM | Registered: 14 years ago Posts: 31 |
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).
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 | Registered: 14 years ago Posts: 1 |
Re: For Download: Preset ActionScript Generator November 29, 2009 10:21AM | Registered: 14 years ago Posts: 3 |
Re: For Download: Preset ActionScript Generator March 10, 2010 01:26AM | Registered: 14 years ago Posts: 1 |
Re: For Download: Preset ActionScript Generator March 14, 2010 09:15PM | Registered: 14 years ago Posts: 31 |
Re: For Download: Preset ActionScript Generator July 09, 2015 05:36AM | Registered: 9 years ago Posts: 12 |
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
Superman Jacket
Re: For Download: Preset ActionScript Generator July 10, 2015 06:19AM | Registered: 8 years ago Posts: 4 |
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.
<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 | Registered: 9 years ago Posts: 12 |
Re: For Download: Preset ActionScript Generator November 02, 2015 07:24AM | Registered: 8 years ago Posts: 4 |
Sorry, you do not have permission to post/reply in this forum.