I threw together this exceedingly simple script:
onClipEvent (load) {
this.main.text = "Planning & Design";
this.sub.text = "lasting solutions through best technology";
this._x = 300;
this._y = 700;
}
onClipEvent (enterFrame) {
if (this._y > 100) {
this._y = this._y-2;
} else {
this.main.text = "Business Process Improvement";
this.sub.text = "building value through efficient operation";
this._x = 300;
this._y = 700;
}
}
It drops text into dynamic text fields and vertically scrolls the movie clip that contains them. I use a gradient at the top and bottom to effectively make the text disappear and reappear. Check this directory for the FLA:
My question is, how do I continue the loop to insert more phrases? I have about 10 I need to put in. Is there any way to set up an array or a more effective nested loop?
Thank ya.