# Dynamic text and alpha (title edited)

**URL:** <https://forum.kirupa.com/t/dynamic-text-and-alpha-title-edited/28295>\
**Category:** flash\
**Created:** [August 12, 2003, 9:27am UTC](https://forum.kirupa.com/t/dynamic-text-and-alpha-title-edited/28295 "2003-08-12T09:27:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![quik](https://avatars.discourse-cdn.com/v4/letter/q/e19b73/32.png) [@quik](https://forum.kirupa.com/u/quik)\
**Post date:** [August 12, 2003, 9:27am UTC](https://forum.kirupa.com/t/dynamic-text-and-alpha-title-edited/28295/1 "2003-08-12T09:27:08Z")

</div>

Hi, I’m new here 😉

I’m trying to make three text boxes each inside its own movie.

Then I want them to each fade in… not at the same time… but like… movie one starts fading in… a few seconds later the second starts fading in.

I’ve been working this code around but I’m having trouble with it.

If I set it to embed fonts the text doesn’t display…  
I also can’t make the dynamically stuff be set to an alpha property.

This is the code I’ve been working.  
[AS]  
ButtonLabelText = new TextFormat();  
ButtonLabelText.bold = false;  
ButtonLabelText.color = 0x333333;  
ButtonLabelText.font = “Verdana”;  
ButtonLabelText.size = 9;

text\_data = [‘Ben is the monkey boy riding the giraffe, sometimes he likes to straddle it and wear a giant sunbero.’, ‘Chris likes to convince people to grow bert renyolds style moustaches, I’m not sure why.’, ‘Jared is evil.’];  
text\_time = [‘1000’, ‘2000’, ‘3000’];

for (i=0; i\<text\_data.length; i++) {  
//create mc & do stuff to it  
_root.createEmptyMovieClip("holder_"+i, depth++);  
_root["holder_"+i].\_y = i_30;  
 root["holder"+i].\_alpha = 50;  
fadeTime(text\_time_, _root["holder_"+i]);

```
//create the text fields
_root["holder_"+i].createTextField("field_"+i, depth++, 0, 0, 100, 200);

//make pretty
fields = _root["holder_"+i]["field_"+i];
fields.text = text_data*;
fields.setTextFormat(ButtonLabelText);
fields.multiline = true;
fields.border = true;
fields.autoSize = true;
fields.selectable = false;
fields.embedFonts = true;

```

}

fadeTime = function(when, mc){  
mc.\_alpha = 0;  
setInterval(fadeIn, when);  
function fadeIn(){  
if(mc\_alpha \< 100){  
mc.\_alpha += 10;  
}  
}  
}  
fadeTime(75, \_root.green);  
fadeTime(75, \_root.holder\_1);  
[/AS]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 12, 2003, 12:26pm UTC](https://forum.kirupa.com/t/dynamic-text-and-alpha-title-edited/28295/2 "2003-08-12T12:26:47Z")

</div>

I guess this one went into most peoples “too hard” pile?
