As others have said. Put the textfield in a movie clip, then inside the clip
try something like this...

text_tf.text = "Hella Cool Fade";

this.onEnterFrame = function() {
        
        if (this._alpha < 0) {
                goDown = false;
        } else if (this._alpha > 100) {
                goDown = true;
        }
        
        if (goDown) {
                trace(this._alpha);
                this._alpha -= 4;
        } else {
                trace(this._alpha);
                this._alpha += 4;
        }

};

... where text_tf is the instance name of the textfield. Remove the traces
when you're happy with what it's doing.

Try this first and you should notice that it doesn't seem to work. This is
because you will need to embed the characters. This is done in the
properties of the textfield, "Character..." > "Embed font outlines for:"...

Then it's a case of working the array into the equation.

Ade


-----Original Message-----
From: Paul Johnston
To: [EMAIL PROTECTED]
Sent: 04/12/03 17:06
Subject: [ cf-dev ] OT: ActionScript

I have a bunch of text in an array.  I am cycling over that array and
making
the text come out and also move.

The thing I now want is to be able to fade it in and out.  The problem
is
that I cannot figure out how (in actionscript) to do this.

The text will change regularly, so saying something like "make a graphic
of
the text" isn't going to help.

Any ideas?  I'm just banging my head against a brick wall!

Paul
-----------------------------------
Paul Johnston
PJ Net Solutions Ltd
http://www.pjnetsolutions.com
[EMAIL PROTECTED]
+44 (0)7866 573013



-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to