# Easy question : maybe

**URL:** <https://forum.kirupa.com/t/easy-question-maybe/124067>\
**Category:** Uncategorized\
**Created:** [September 29, 2004, 6:46pm UTC](https://forum.kirupa.com/t/easy-question-maybe/124067 "2004-09-29T18:46:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcqgryphon](https://avatars.discourse-cdn.com/v4/letter/t/838e76/32.png) [@tcqgryphon](https://forum.kirupa.com/u/tcqgryphon)\
**Post date:** [September 29, 2004, 6:46pm UTC](https://forum.kirupa.com/t/easy-question-maybe/124067/1 "2004-09-29T18:46:24Z")

</div>

brain hurts, allot, from the attempt to catch up to flash after alllllll this time in design classes and such - needless to say when things ‘click’ I feel like an idiot for not seeing the obvious; case in point.

I’m attempting to:  
1.) load an external .txt file  
2.) calculate the length of text pulled into the clip and  
3.) scroll it from right to left

am I successful? heck no, which is why I humble myself before the gods of flash.

here’s what I’ve got:

scene 1: frame 1

loadText = new LoadVars();  
loadText.load(“text.txt”);

//creating the loadVarsText function  
loadText.onLoad = function() {  
\_root.text = this.scrolltext;  
};

scene 1: frame 1:

dynamic text field / no instance name

secene 1: frame 1:

movie clip as controller with the following actions:

onClipEvent (enterFrame) {  
tmp = \_root.text.substr(0, 1);  
\_root.text = \_root.text.substr(1, \_root.text.length-1)+tmp;  
}

and last an external .txt file with:  
scrolltext=tex tex text tex text text tex text text tex text

any idea? thanks in advance, I’m going to get some Advil now…  
:p:
