# Loading a text in a specific frame

**URL:** <https://forum.kirupa.com/t/loading-a-text-in-a-specific-frame/88812>\
**Category:** Uncategorized\
**Created:** [May 2, 2005, 7:52pm UTC](https://forum.kirupa.com/t/loading-a-text-in-a-specific-frame/88812 "2005-05-02T19:52:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pantas](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@pantas](https://forum.kirupa.com/u/pantas)\
**Post date:** [May 2, 2005, 7:52pm UTC](https://forum.kirupa.com/t/loading-a-text-in-a-specific-frame/88812/1 "2005-05-02T19:52:51Z")

</div>

hy there! i followed the kirupa forum about transitions between SWF’s, but have one problem now. dont know how to load a dinamic text in a text\_MC, but make it apear only in the midframe of the background mc…  
i have a dropdown menu who loads the BG’s to the container\_MC in the main timeline (its a movieclip too) who has the following code in the button:

on (release) {  
if (\_root.currMovie == undefined) {  
\_root.currMovie = “bg2”;  
\_root.contentor.loadMovie(“bg2.swf”);  
} else if (\_root.currMovie != “bg2”) {  
if (\_root.contentor.\_currentframe \>= \_root.contentor.midframe) {  
\_root.currMovie = “bg2”;  
\_root.contentor.play();  
}  
}  
}  
on (release) {  
\_root.scroller.loadText = new loadVars();  
\_root.scroller.loadText.load(“EQUIPA.txt”);  
\_root.scroller.loadText.onLoad = function() {  
\_root.scroller.text = this.TEXTO;  
};  
}

i know this second part is wrong, but its the best i could do :S  
how do i make it unload the preview text, and load a new one when the bg finishes the intro animation (gets to the midframe)?

[http://cosmos.oninetspeed.pt/pantas/main.fla](http://cosmos.oninetspeed.pt/pantas/main.fla) - for the main file  
or  
[http://cosmos.oninetspeed.pt/pantas/](http://cosmos.oninetspeed.pt/pantas/) - to view the site

thanks in advance for any post!
