Saturday, December 01, 2007

Dynamic Text Embed Font ActionScript 3.0 tips

this is another ActionScript 3.0 or Flash CS 3 tips.

What really stopped me from creating contents today was the dynamic text.. it is an amazing thing but this thing drove me crazy.

i basically had one button that is associated with a class and on rollover, rollout, click, etc tween starts so that it will animate according to an MouseEvent.

Problem I had was i was trying to tween alpha and it didn't kick in. trace shows that it's changing alpha.. i checked my tween also by trying the same tween with other properties like x and it totally works...

i had another regular button that doesn't associate with this button class and that one also was working fine.

only the one i have created through class... didn't do alpha tweens.. (just that didn't show result on screen...)

I really tried bunch of things like loading them into another MovieClip and applying tween to that MovieClip etc...

Then i went to check the differences between the buttons that does alpha tweens and don't.. i noticed one slight difference..
The one that worked had static text for labels and the one that didn't work had dynamic text.

so i went to research "dynamic text alpha" well Bingo.

in order to apply alpha tween to an dynamic text you need to Embed and font.

well first didn't make sense at all but i looked into property inspector for the text and on the right hand side i saw "Embed.." button. and ah huh! i clicked on the button and set it up.

Command + Enter to test movie and it works!!! now i can tween dynamic texts.

if you choose both all upper case and all lower case letters, you should be able to change label dynamically. and now i have a button that plays fancy animation. not like and HTML/CSS simple roll over but a button that does something and that's totally customizable. great.

took me too long to figure out this simple things but i'm sure you won't need to.

7 comments:

Unknown said...

Thanks, I've wanted to know how to do this for 2 years

Unknown said...

Ditto to above user...thank you so much. It worked like magic on the first try.

Dan G said...

Bless You

ScotSpellman said...

Wow, I cannot believe that worked. Thank you, thank you. It's only been bugging me for... i dunno, 3 years now, LOL. You Rock! Thanks again.

Unknown said...

Works perfectly. Thankyou.

Unknown said...

excellent for preload :) thank you

shawn said...

the other option is to break apart your text.