Skip to main content
Inspiring
November 16, 2007
Answered

Tween not working

  • November 16, 2007
  • 4 replies
  • 363 views
edit - i realized that i did not show a crucial part of my code.....

import mx.transitions.Tween;

what am i doing wrong? the movie clip "dynaText" is attached, it gets the string inserted into it, but it doesn't fade in like i want it to using the Tween class.

also, although the script doesn't get this far, the next part below looks like it's not going to work either. i would expect onMotionFinished to change color in my actionscript editor, since it's an identifier... but it doesn't. i have to get the first part working to see if the yoyo function is going to work, but it doesn't look like it will.

can someone square this away for me?


This topic has been closed for replies.
Correct answer Greg Dove
Try using an embedded font.

4 replies

Inspiring
November 16, 2007
I'm not sure of the exact reasons, but its always been like that with fonts.

Basically if its an embedded font I think flash 'owns' the rendering and therefore can do what it likes with it.
Inspiring
November 16, 2007
you're a rock star, thanks!

ok, i have to get a little six year old action on this one though.... why?
Greg DoveCorrect answer
Inspiring
November 16, 2007
Try using an embedded font.
Inspiring
November 16, 2007
ok, i found my problem, but still don't know how to fix it. my code is working fine, it is fading out the attached movie clip, the problem is that it's not fading out the dynamic text field inside that movie clip? how's that work?

if i were to go into the dynaText movie clip and add a new layer to the bottom of it (underneath the dynamic text field) with a red square in it, and then run this code... it would fade out the red square, but not the dynamic text field. the text "All fields are required, please complete this entire form!" still stays at 100% alpha. why? how do i control the alpha of the dynamic text field?