# getHour...etc. AND scroll component failure

**URL:** <https://forum.kirupa.com/t/gethour-etc-and-scroll-component-failure/469>\
**Category:** flash\
**Created:** [July 18, 2002, 7:39am UTC](https://forum.kirupa.com/t/gethour-etc-and-scroll-component-failure/469 "2002-07-18T07:39:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![brian\_monkey](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@brian\_monkey](https://forum.kirupa.com/u/brian_monkey)\
**Post date:** [July 18, 2002, 7:39am UTC](https://forum.kirupa.com/t/gethour-etc-and-scroll-component-failure/469/1 "2002-07-18T07:39:19Z")

</div>

I know I have asked this 3 times at least but I still haven’t figured it out even after posting on were-here too. I need a way to automatically update my external .txt files without using that random number bullshit that realoads everything or that text query string. I can’t understand the time/ getDate/getHour. etc etc.

now = new Date();  
today = now.getDay();  
days = [“sun”, “mon”, “tue”, “wed”, “thu”, “fri”, “sat”];  
loadedText.loadVariables(days[today]+".txt?rnd="+random(9999));

that is my code. I would wish to minus the ?rnd="+random ■■■■.  
And another thing is I cannot get the scrollbar component to work within a my movie clip. I put the right instance names and that stuff. master suprabeener. and other gods please help a poor white boy.

---

<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:** [July 18, 2002, 2:40pm UTC](https://forum.kirupa.com/t/gethour-etc-and-scroll-component-failure/469/2 "2002-07-18T14:40:46Z")

</div>

Hey Brian…

In order to help you, can you please explain what you’re actually trying to achieve?

Are you looking to use a different text file every day?

what are your text files called?

If you could please explain what you’re hoping to do, it would help. Thanks.

---

<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:** [July 19, 2002, 8:37am UTC](https://forum.kirupa.com/t/gethour-etc-and-scroll-component-failure/469/3 "2002-07-19T08:37:37Z")

</div>

:rambo: how can I get a textbox to load external.txt files and use the scrollbar component that will be updated daily?

---

<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:** [July 19, 2002, 2:32pm UTC](https://forum.kirupa.com/t/gethour-etc-and-scroll-component-failure/469/4 "2002-07-19T14:32:39Z")

</div>

you could do it by using a date function and then naming your text file according to the corresponding date.

use your getDate() with loadvariables

that way, when you load variables you would load something like

loadvariables(todaysdate + “.txt”, “GET”) or something like that.

Did that make sense to you? Let me know if I can be of further assistance.
