# Actionscript... i think

**URL:** <https://forum.kirupa.com/t/actionscript-i-think/7529>\
**Category:** Uncategorized\
**Created:** [November 2, 2002, 11:08am UTC](https://forum.kirupa.com/t/actionscript-i-think/7529 "2002-11-02T11:08:16Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![ianmather](https://avatars.discourse-cdn.com/v4/letter/i/e9bcb4/32.png) [@ianmather](https://forum.kirupa.com/u/ianmather)\
**Post date:** [November 2, 2002, 11:08am UTC](https://forum.kirupa.com/t/actionscript-i-think/7529/1 "2002-11-02T11:08:16Z")

</div>

ok, i have my website ([http://iansrealm.cjb.net](http://iansrealm.cjb.net)) and im trying to make a menu that, when you click the button, instead of loading a new .swf, it loads text into a dynamic text box. Please help for for i am completly new to Flash MX… FLASH ITSELF!! thank you in advance.  
Ian Mather

---

<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:** [November 2, 2002, 11:15am UTC](https://forum.kirupa.com/t/actionscript-i-think/7529/2 "2002-11-02T11:15:11Z")

</div>

There are tutes about that on this site, ian 🙂

---

<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:** [November 2, 2002, 11:15am UTC](https://forum.kirupa.com/t/actionscript-i-think/7529/3 "2002-11-02T11:15:46Z")

</div>

where where!!?? ehehe

---

<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:** [November 2, 2002, 11:18am UTC](https://forum.kirupa.com/t/actionscript-i-think/7529/4 "2002-11-02T11:18:00Z")

</div>

[There 🙂](http://www.kirupa.com/developer/mx/dynamic_scroller.asp)

---

<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:** [November 2, 2002, 11:19am UTC](https://forum.kirupa.com/t/actionscript-i-think/7529/5 "2002-11-02T11:19:17Z")

</div>

in MX… elsewhere?

---

<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:** [November 2, 2002, 11:22am UTC](https://forum.kirupa.com/t/actionscript-i-think/7529/6 "2002-11-02T11:22:36Z")

</div>

You want something in Flash 5? [SIZE=1]_points to the title of this forum_[/SIZE]

---

<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:** [November 2, 2002, 11:27am UTC](https://forum.kirupa.com/t/actionscript-i-think/7529/7 "2002-11-02T11:27:45Z")

</div>

i cant find it :evil: ☹ \*\*\*\* thing… please can u help me?

---

<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:** [November 2, 2002, 11:29am UTC](https://forum.kirupa.com/t/actionscript-i-think/7529/8 "2002-11-02T11:29:59Z")

</div>

Oups, sorry. The post that says “There” is a link to the tutorial. I should have made something more obvious :-\

---

<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:** [November 2, 2002, 11:30am UTC](https://forum.kirupa.com/t/actionscript-i-think/7529/9 "2002-11-02T11:30:44Z")

</div>

dohhh, im silly  
thanks buddy 🙂

---

<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:** [November 2, 2002, 11:39am UTC](https://forum.kirupa.com/t/actionscript-i-think/7529/10 "2002-11-02T11:39:57Z")

</div>

now i cant figure it out…

on (release) {  
loadText = new loadVars();

```
                                       site where the txt file is located
loadText.load("http://ngsf.ausgamers.com/iansrealm/stuff.txt");
// creating the loadVarsText function
loadText.onLoad = function() {
      dynamic text box whats this?
    boxtext.text = this.kirupatext;
};

```

}

🙂

---

<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:** [November 2, 2002, 5:07pm UTC](https://forum.kirupa.com/t/actionscript-i-think/7529/11 "2002-11-02T17:07:56Z")

</div>

Tell us more. What’s wrong exactly?

---

<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:** [November 5, 2002, 3:39pm UTC](https://forum.kirupa.com/t/actionscript-i-think/7529/12 "2002-11-05T15:39:20Z")

</div>

hi… i have followed the dynamic text scroller example in this site… and i managed to work it out on my had disk, it works… the txt file loads into the swf.  
But when i upload both the swf and txt file in the same directory in the server and it does not seem to work… at first i thought it was loading but, fifteen minute for a 3kb txt file… thats not right… or is it? can you please help me out here?

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:** [November 5, 2002, 9:02pm UTC](https://forum.kirupa.com/t/actionscript-i-think/7529/13 "2002-11-05T21:02:13Z")

</div>

in the text file, for example sake, we will call it NEWS.  
in the first line of the txt file, have  
NEWS=  
info info info  
bla bla bla  
etc etc etc…  
so,  
on (release) {  
loadText = new loadVars();

site where the txt file is located  
loadText.load(“[http://url/news.txt](http://url/news.txt)”);  
// creating the loadVarsText function  
loadText.onLoad = function() {  
dynamic text box whats this?  
name of dynamic text box.text = this.NEWS;  
};  
}

this should work

---

<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:** [November 6, 2002, 10:21am UTC](https://forum.kirupa.com/t/actionscript-i-think/7529/14 "2002-11-06T10:21:42Z")

</div>

hey Ian thanks for the reply, the thing i dont get is in the code the on (release)? is the text load function on a button… or is the scrip in the first frame of the movie. and yes in the text file (i call te text var ‘news’) in the first line of the txt file i have ‘news=’ but it still doesnt work.  
Is it due to the server or anything like that…? do i need to set the permissions of the txt file?  
so any ideas?.. i actually uploaded the source file available in this site with the same code and the txt file… and it still does not work! waaah:(

---

<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:** [November 6, 2002, 10:38am UTC](https://forum.kirupa.com/t/actionscript-i-think/7529/15 "2002-11-06T10:38:52Z")

</div>

well, thats just wacked.  
Its a button, definatly… might need to ask someone that actually knows Actionscript 🙂

---

<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:** [November 6, 2002, 10:56am UTC](https://forum.kirupa.com/t/actionscript-i-think/7529/16 "2002-11-06T10:56:21Z")

</div>

there was some error with ur code, just paste this code into ur MAIN Timeline and define the variables from ur textfile!

```php
buttonInstanceName.onRelease = function (){ // The New MX Callback Feature! new kind of event
loadText = new LoadVars();// sets a new LoadVars Object called loadText
loadText.onLoad = function(success) {// Create onLoad, ill define a success parameter
if (success){// it will show if the loading success
	DynamicTextFieldInstance.text = TextFileVariable//plz create a dynamic text field and define an instance name to it, 
	//and then just paste ur external variable name into the code
}else{
	DynamicTextFieldInstance.text = "Error Loading File";
	//it will show on the text field error if it was unable to load!
}
};
loadText.load("http://url/news.txt");//now we could simply load our file
}

```

this should work!

hope ull find this post useful!

yours,  
h88
