Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Web Design (WordPress, Joomla, etc.) Flash Dynamic Text Problem

  • Flash Dynamic Text Problem

    Posted by Kathy Summers on June 4, 2010 at 11:03 pm

    I am having a problem with the dynamic text on a site I am designing.

    I am not a proficient Action Script coder, so this may be a simple solution.

    The text is meant to look as though it is typewritten, with each letter appearing separately. This part works fine. The text box should then disappear, however, and I can’t get that to work. Any ideas on how to do this? I tried using motion tweens and adjusting the alpha via the timeline, but I had horrible results and all I had was flickering text. I think I just need a little bit more Action Script code.

    I am using AS3.

    Here is the code:

    var str:String = ‘”jennifer brings exactly the kind of personal warmth and professionalism that is ideal for that special day.” -cynthia bartley, mother of the bride’;

    var i:uint = 0;

    var timer:Timer = new Timer(40);

    timer.start();

    timer.addEventListener(TimerEvent.TIMER,gotime);

    function gotime(e:TimerEvent) {

    textbox_txt.appendText(str.charAt(i));
    i++;
    if(i>=str.length) {
    timer.stop()

    }

    }

    Any help is greatly appreciated. Thanks.

    Kathy Summers replied 16 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Fernando Mol

    June 6, 2010 at 3:29 pm

    Actionscript is the programming language for Flash. You may get better advice for this question on the Flash forum.

    I have achieved the effect you’re mentioning, but not using Actionscript, also, not with dynamic text. Just plain animation using masks and fades.

    *Always share a link to your site and rate the posts. This is a free service for you and for us.

  • Kathy Summers

    June 8, 2010 at 3:59 pm

    Thanks Fernando. I will try there.

    Kathy

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy