Home » ActionScript 3.0

Fade Dynamic TextField Without Embed fonts

25 November 2008 No Comment

The secret behind this is simple, when we apply filters to textfield it becomes bitmap data.
So we can fade textfield without embed fonts.

One drawback of the method is we cant able to rotate the text :(

codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">

code( AS3 ):

import fl.transitions.*;
import fl.transitions.easing.*
var blur:BlurFilter = new BlurFilter(0,0,0);
_txt.filters = [blur]
_txt.alpha =.5;

var tween:Tween = new Tween(_txt,”alpha”,Strong.easeIn,1,0,2,true)
tween.addEventListener(TweenEvent.MOTION_FINISH, function(){tween.yoyo()})

If you know any tricks comment it.
:(

VN:F [1.7.7_1013]
Rating: 10.0/10 (1 vote cast)
VN:F [1.7.7_1013]
Rating: 0 (from 0 votes)
Fade Dynamic TextField Without Embed fonts10.0101
Translate this post
        
        
        
        
  

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.