# Text and buttons

**URL:** <https://forum.kirupa.com/t/text-and-buttons/10824>\
**Category:** flash\
**Created:** [January 7, 2003, 11:54pm UTC](https://forum.kirupa.com/t/text-and-buttons/10824 "2003-01-07T23:54:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![imxtremelybored](https://avatars.discourse-cdn.com/v4/letter/i/a9a28c/32.png) [@imxtremelybored](https://forum.kirupa.com/u/imxtremelybored)\
**Post date:** [January 7, 2003, 11:54pm UTC](https://forum.kirupa.com/t/text-and-buttons/10824/1 "2003-01-07T23:54:45Z")

</div>

Wot kinda code do i need so dat wen i press a button…test wood load into the dynamic text area named scroller???

dis is the code i hav…but it doesnt seem to work

on (release)  
loadText = new loadVars();  
loadText.load(“nokia.txt”);  
//creating the loadVarsText function  
loadText.onLoad = function() {  
scroller.text = this.nokiatext;  
};  
}

iz it rite???

---

<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:** [January 8, 2003, 1:44am UTC](https://forum.kirupa.com/t/text-and-buttons/10824/2 "2003-01-08T01:44:10Z")

</div>

maybe it’s an addressing problem

```auto

on (release) {
	loadText = new LoadVars ()
	loadText.load ("nokia.txt")
	loadText.onLoad = function() {
		_root.scroller.text = this.nokiatext
	}
}

```

your dynamic text instance name should be ‘scroller’ [size=1][no quotes][/size]  
and your text file should look like this:

nokiatext=bla bla bla

tell me if it works 😏

---

<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:** [January 8, 2003, 1:58am UTC](https://forum.kirupa.com/t/text-and-buttons/10824/3 "2003-01-08T01:58:13Z")

</div>

Yep…it worked! thanz!

:beam: :beam: :beam: :beam:

---

<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:** [January 8, 2003, 2:10am UTC](https://forum.kirupa.com/t/text-and-buttons/10824/4 "2003-01-08T02:10:42Z")

</div>

glad I could help =)

---

<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:** [January 8, 2003, 4:12am UTC](https://forum.kirupa.com/t/text-and-buttons/10824/5 "2003-01-08T04:12:48Z")

</div>

What I want to know is where “imxtremelybored” stole his images from.

Seriously… take a look at his site. You have this BEAUTIFUL 3d, cad, or cg created image with white, misplaced text…

I think that you, imxtremelybored, should probably give the author of those pictures their due credit and say so on your site.
