# Alpha text

**URL:** <https://forum.kirupa.com/t/alpha-text/184947>\
**Category:** Uncategorized\
**Created:** [April 9, 2006, 4:14pm UTC](https://forum.kirupa.com/t/alpha-text/184947 "2006-04-09T16:14:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![somebody509](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@somebody509](https://forum.kirupa.com/u/somebody509)\
**Post date:** [April 9, 2006, 4:14pm UTC](https://forum.kirupa.com/t/alpha-text/184947/1 "2006-04-09T16:14:34Z")

</div>

Hi, I’m making a movie and trying to use all AS instead of making tweens and I was wondering How I would get this effect. Right now I have a box inside a movieclip that expands and as soon as it expands to 100% it goes to fram 2 and plays a square that flashes white and then fades out. On frame 25 I have text that as of now just appears, but I would like to make it fade in using Actionscript. If anybody could help me out with this I’d greatly appreciate it.

---

<div class="post-metadata">

**Author:** ![flextnet](https://avatars.discourse-cdn.com/v4/letter/f/7ba0ec/32.png) [@flextnet](https://forum.kirupa.com/u/flextnet)\
**Post date:** [April 9, 2006, 6:53pm UTC](https://forum.kirupa.com/t/alpha-text/184947/2 "2006-04-09T18:53:39Z")

</div>

If it’s a static text field you could convert it to a movie clip (right-click, convert to symbol…), give it instance name ‘mc’, set alpha to 0, then add some code like this on frame 25:

```auto

mc._alpha = 0;
onEnterFrame = function()
{
   mc._alpha += 10; // use whatever increment you like   
   if (mc._alpha >= 100) 
   {
      onEnterFrame = undefined;
   }
}

```

If it’s dynamic text you could just name the text field ‘mc’ and apply the same code.

---

<div class="post-metadata">

**Author:** ![somebody509](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@somebody509](https://forum.kirupa.com/u/somebody509)\
**Post date:** [April 11, 2006, 3:42pm UTC](https://forum.kirupa.com/t/alpha-text/184947/3 "2006-04-11T15:42:01Z")

</div>

Well thats what I have and it dosent seem to be working…If you’d like to take a look at my [.fla](http://www.somebody509.us/flash_files/portfolio-3.fla) feel free. To get to my text go into the WindowMC, and the text is on frame 28 on the “text” level…It’s set as transparent, but in the movie it still just pops up instead of fades in.

edit: forgot the .fla extension on the end of my link, fla should work no

---

<div class="post-metadata">

**Author:** ![flextnet](https://avatars.discourse-cdn.com/v4/letter/f/7ba0ec/32.png) [@flextnet](https://forum.kirupa.com/u/flextnet)\
**Post date:** [April 11, 2006, 4:51pm UTC](https://forum.kirupa.com/t/alpha-text/184947/4 "2006-04-11T16:51:53Z")

</div>

The fla looks like a bad link. Can you attach it to your post?

---

<div class="post-metadata">

**Author:** ![dave4lo](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@dave4lo](https://forum.kirupa.com/u/dave4lo)\
**Post date:** [April 11, 2006, 7:59pm UTC](https://forum.kirupa.com/t/alpha-text/184947/5 "2006-04-11T19:59:42Z")

</div>

why not use a tween?  
[http://www.petitpub.com/labs/media/flash/astween/AlphaTween.as](http://www.petitpub.com/labs/media/flash/astween/AlphaTween.as)

---

<div class="post-metadata">

**Author:** ![somebody509](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@somebody509](https://forum.kirupa.com/u/somebody509)\
**Post date:** [April 12, 2006, 12:43pm UTC](https://forum.kirupa.com/t/alpha-text/184947/6 "2006-04-12T12:43:00Z")

</div>

There the link is fixed, and as for tweens, my goal for this is to use as much actionscript as I can.

---

<div class="post-metadata">

**Author:** ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)\
**Post date:** [April 12, 2006, 1:12pm UTC](https://forum.kirupa.com/t/alpha-text/184947/7 "2006-04-12T13:12:51Z")

</div>

embed the font 😉

scotty(-:

---

<div class="post-metadata">

**Author:** ![flextnet](https://avatars.discourse-cdn.com/v4/letter/f/7ba0ec/32.png) [@flextnet](https://forum.kirupa.com/u/flextnet)\
**Post date:** [April 12, 2006, 4:41pm UTC](https://forum.kirupa.com/t/alpha-text/184947/8 "2006-04-12T16:41:29Z")

</div>

Actually dave4|o was suggesting to use the Tween class, which is action script. And I agree the Tween object is a good way to go because all the code is written already. :alien2:
