[Tweener] text tween to append text
Baluta Cristian
cristi.baluta at gmail.com
Wed May 21 11:37:26 PDT 2008
interesting, this is a text typer is that right? more useful than tweening
the space between letters, from my opinion.
On Wed, May 21, 2008 at 9:18 PM, Jonathan Marston <jon at marstonstudio.com>
wrote:
> apologies, the correct _textAppend_preProcess method should be:
> public static function _textAppend_preProcess (p_obj:Object,
> p_parameters:Array, p_originalValueComplete:Object, p_extra:Object): Number
> {
> p_extra.oldText = p_obj.text;
> p_extra.newText = p_originalValueComplete;
> return p_extra.oldText.length + p_extra.newText.length;
> }
>
>
> Jon Marston
>
> Begin forwarded message:
>
> *From: *Jonathan Marston <jon at marstonstudio.com>
> *Date: *May 21, 2008 2:13:13 PM EDT
> *To: *tweener at lists.caurinauebi.com
> *Subject: **text tween to append text*
>
> Hello, I've got a shortcut submission for the TextShortcuts special
> properties. I'ts a shortcut to append text as opposed to replacing it
> completely. Here is the extra code for TextShortcuts.as:
>
>
>
> add to init
>
> Tweener.registerSpecialProperty("_textAppend", _textAppend_get,
> _textAppend_set, null, _textAppend_preProcess);
>
> extra methods:
>
> public static function _textAppend_get (p_obj:Object, p_parameters:Array,
> p_extra:Object = null):Number {
> return p_obj.text.length - p_extra.oldText.length;
> }
>
> public static function _textAppend_set (p_obj:Object, p_value:Number,
> p_parameters:Array, p_extra:Object = null): void {
> p_obj.text = p_extra.oldText + p_extra.newText.substr(0,
> Math.round(p_value));
> }
>
> public static function _textAppend_preProcess (p_obj:Object,
> p_parameters:Array, p_originalValueComplete:Object, p_extra:Object): Number
> {
> p_extra.oldText = p_obj.text;
> p_extra.newText = p_originalValueComplete;
> return p_extra.oldText.length;
> }
>
>
> And belated congrats on releasing 0.70 as the stable version. :)
>
>
> Jonathan Marston
>
> *Marston Development Studio LLC*
> phone: (978) 758-7444
> blog site: www.marstonstudio.com
> email/gtalk/msn: jon at marstonstudio.com
> aol/yahoo: marstonstudio
>
>
>
>
>
> _______________________________________________
> Tweener mailing list
> Tweener at lists.caurinauebi.com
> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
>
>
--
Cristi
www.ralcr.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20080521/54c14cb5/attachment.htm>
More information about the Tweener
mailing list