Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flupie/textanim
The TextAnim is an open source code for dynamic text animation in Flash - ActionScript 3
https://github.com/flupie/textanim
Last synced: about 2 months ago
JSON representation
The TextAnim is an open source code for dynamic text animation in Flash - ActionScript 3
- Host: GitHub
- URL: https://github.com/flupie/textanim
- Owner: flupie
- Created: 2011-04-04T00:19:30.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-04-04T00:27:53.000Z (almost 14 years ago)
- Last Synced: 2024-08-03T05:03:01.321Z (5 months ago)
- Language: ActionScript
- Homepage: http://flupie.net/blog/
- Size: 1.19 MB
- Stars: 17
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.mdown
Awesome Lists containing this project
- awesome-actionscript-sorted - textanim - The TextAnim is an open source code for dynamic text animation in Flash - ActionScript 3 (Frameworks / Animation Framework)
README
TEXTANIM AS3
============The TextAnim is an open source code for dynamic text animation in Flash - ActionScript 3, it's events based and tween engine independent.
How does it work?
-----------------
The library has no ready-made animation, the idea is only break apart the TextField (split TextField) and dispatch blocks sequence, to be free to make the animation you want. Doesn't matter which tween engine that you like: Tweener, BTween, GTween, Tweensy or any other.Just don't forget to embed the font that you want to use.
Example 1:
----------import flupie.textanim.*;
import caurina.transitions.*;var myTextAnim:TextAnim = new TextAnim(myTextField);
myTextAnim.effects = myEffect;
myTextAnim.blocksVisible = false;
myTextAnim.start();function myEffect(block:TextAnimBlock):void
{
block.alpha = 0;
Tweener.addTween(block, {alpha:1, time:.5});
}
Example 2:
----------TextAnim.create(myTextField, {effects:myEffect, split:TextAnimSplit.WORDS}).start();
Example 3:
----------var myTextAnim:TextAnim = new TextAnim(myTextField);
myTextAnim.effects = myEffect;
myTextAnim.mode = TextAnimMode.LAST_FIRST;myTextAnim.addEventListener(TextAnimEvent.START, onStartHandler);
myTextAnim.start();
split
-----
To specify how the TextAnim will break the text. TextAnimSplit:* CHARS
* WORDS
* LINESmode
----
Is the way of the effects dispatches will be occurs. TextAnim dispatch effects in five diferent ways. TextAnimMode:* FIRST_LAST
* LAST_FIRST
* EDGES_CENTER
* CENTER_EDGES
* RANDOMTools
-----
Extra tools for special treatment of TextAnim instance. Can convert the blocks to bitmap, apply patterns, etc. Are static functions to implement some useful things. Get more here TextAnimTools.* getColorBounds
* setGradientLinear
* setPattern
* showAnchors
* toBitmap
* toVectorMore
----
You can download the latest stable version of TextAnim, check out [Flupie blog](http://flupie.net/blog) to get a few examples with source, read the [documentation](http://flupie.net/textanim/docs) or get TextAnim code generator, called [TextAnim Maker](http://flupie.net/textanim/maker).All examples was made with the IDE Flash CS4, but everything has been properly tested in other environments, Flex, Flash Builder, mxmlc command line, FDT.