# Loadvars and duplicate movie clip question

**URL:** https://forum.kirupa.com/t/loadvars-and-duplicate-movie-clip-question/42318
**Category:** Uncategorized
**Created:** [February 7, 2004, 7:07pm UTC](https://forum.kirupa.com/t/loadvars-and-duplicate-movie-clip-question/42318 "2004-02-07T19:07:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![REdefined](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@REdefined](https://forum.kirupa.com/u/REdefined)
#### Post date: [February 7, 2004, 7:07pm UTC](https://forum.kirupa.com/t/loadvars-and-duplicate-movie-clip-question/42318/1 "2004-02-07T19:07:19Z")

</div>

I’m having a couple problems with my news ticker. First, I can’t seem get the vars to load correctly. I would also like to create and array of movieclips, I’m not sure if this is possible, but I would like to have something along the lines of:  
newsArray\*.movieclip.textfirst.property

I’ve attached to movie and txt file, if anyone can take a look and point me in the right direction, I would greatly appreciate it

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: [February 8, 2004, 11:40am UTC](https://forum.kirupa.com/t/loadvars-and-duplicate-movie-clip-question/42318/2 "2004-02-08T11:40:24Z")

</div>

I’ve never used loadVars or anything before but I think i got it to load your txt file using:

[AS]  
var c = new LoadVars();  
c.load(“news.txt”);  
c.onLoad = function(success) {  
if (success) {  
// array to hold each of the news objects  
trace©;  
newsArray = new Array();  
for (i=0; i\<this.n; i++) {  
newsArray\* = new Ticker(Stage.width, Stage.height);  
newsArray\*.newsMsg.html = this[“item”+i];  
}  
} else {  
trace(“Error”);  
}  
};  
[/AS]

I didn’t change your array stuff since i’m not too sure what you actually want with it

---

<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: [February 8, 2004, 6:15pm UTC](https://forum.kirupa.com/t/loadvars-and-duplicate-movie-clip-question/42318/3 "2004-02-08T18:15:05Z")

</div>

thanks alot, that did fix the loadvars problem.

Now atleast I can try to figure out how this array will work. I’m not sure I can explain it very well, but here goes:

I would like an array of Ticker objects, and in each of those objects, I would like one of the movieclips in the time line [ticker]. Problem is I’m not sure how to add the movieclip itself to the object.

Let me know if anyone has any ideas on where to start, or a related tutorial would be great!

---

<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: [February 8, 2004, 6:23pm UTC](https://forum.kirupa.com/t/loadvars-and-duplicate-movie-clip-question/42318/4 "2004-02-08T18:23:06Z")

</div>

Here is a new copy of the fla as well, with blah-de-blah’s corrections.
