# Stuck with simple show / hide dynamic text?

**URL:** <https://forum.kirupa.com/t/stuck-with-simple-show-hide-dynamic-text/249498>\
**Category:** flash\
**Created:** [January 19, 2008, 11:47am UTC](https://forum.kirupa.com/t/stuck-with-simple-show-hide-dynamic-text/249498 "2008-01-19T11:47:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![keitai](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@keitai](https://forum.kirupa.com/u/keitai)\
**Post date:** [January 19, 2008, 11:47am UTC](https://forum.kirupa.com/t/stuck-with-simple-show-hide-dynamic-text/249498/1 "2008-01-19T11:47:25Z")

</div>

I am stuck with this

I want a simple dyn. texfield go down change text go up again. This all behind a mask

```auto

var payoffArray:Array = ["THis would be no 1", "Another payoff"];
var lineMC:MovieClip;
var payoffsMC:MovieClip;
function iniPayoffTxt() {
	payoffsMC.payoffTxt.text = "THis would be no 1";
}
function movePayoff() {
	trace("payoff _y: "+payoffsMC._y);
	trace("line _y: "+lineMC._y);
	if(payoffsMC._y < lineMC._y) {
		payoffsMC.onEnterFrame = goDown;
	} else {
		trace ("payoff > line");	
		clearInterval(testInt);
		delete this.payoffsMC.onEnterFrame;
		//show next payoff text

		//here come the go up after x sec
		payoffsMC._y = 15;
	}
}
function goDown() {
	this._y += 10;
}
function goUp() {

}
function showNextPayoffText() {
	testInt = setInterval(movePayoff, 5000);
}
iniPayoffTxt();
testInt = setInterval(movePayoff, 5000);

```

Any advice
