Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: FLASH: fast typewriter effect
From: Paul Willoughby
Date: Tue, 5 Dec 2000 13:36:57 GMT

Hi Marcel,

The easiest way to do this is to use a looping script that displays a
string variable in a text field incrementally. Heres a quick example for
Flash 4.
Create a movie clip with two layers and 3 frames. In the bottom layer
put your text field and call it 'txt' or sumfin. Put 3 key frames in the
top layer with these actions:

Frame 1:
Set Variable: "word" = "here's where you type the text you want to
display"
Set Variable: "i" = 0
SetVariable: "lettersPerFrame" = 20 //this is the number of letters to
paint per frame//

Frame 2:
Set Variable: "txt" = txt & Substring(word,i,lettersPerFrame) //this
adds the next group of letters from the variable 'word' to the text
field//

Frame 3:
Set Variable: "i" = i + lettersPerFrame
Go to and Play (2)

In Flash 5 this could be done easily with movie clip events. With
OnClipEvent(load) you could initialise the counter and set the variable
for the display text and with OnClipEvent(EnterFrame)you can create the
loop to add the text.

hth

paul




marcel-k wrote on 04 December 2000:

> Hi,
>
> I want to do a typewriter effect with a fairly large text. It needs to
> 'type' very fast so I need to have (a lot) more characters
> per frame than
> just one. I was thinking about half a line per frame instead...
> I want to do it with text fields and without anti-aliasing so
> masking is out
> of the question (I can't get that to work... only if I let it
> include fonts,
> but that's not what i want because then It anti-aliases).
>
> Anybody know a good .fla file or tutorial? I got some source
> files allready
> from flashkit, virtual-fx.net and the likes but none of them
> do what i want.
>
> I need a script that paints , say, 20 characters per frame, on screen.
>
> TIA,
> Marcel

>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: fast typewriter effect, marcel-k

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]