# Duplicate "background"

**URL:** <https://forum.kirupa.com/t/duplicate-background/97021>\
**Category:** Uncategorized\
**Created:** [December 16, 2003, 8:24pm UTC](https://forum.kirupa.com/t/duplicate-background/97021 "2003-12-16T20:24:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerry](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jerry](https://forum.kirupa.com/u/jerry)\
**Post date:** [December 16, 2003, 8:24pm UTC](https://forum.kirupa.com/t/duplicate-background/97021/1 "2003-12-16T20:24:37Z")

</div>

Hey there!  
I’ve made a gradient background image (background.gif) for html use, with the following size (width: 2 height: 1500) - the thing is, that I would like to translate the following html code into flash:

```php
<body background="background.gif">

```

Which means, that I need to know how to duplicate (using AS) the background MC (background.gif converted to MC) let’s say 50 times, starting with the first MC with a x value of 0, second MC with a x value of 2… and so on!  
Hope you got the idea, else take a look at the attached .fla to see what I’m thinking of…

Any help would be nice!

---

<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:** [December 17, 2003, 9:44am UTC](https://forum.kirupa.com/t/duplicate-background/97021/2 "2003-12-17T09:44:53Z")

</div>

That’s some nice coding - but also a bit hardcore! :ne:  
Would I be worng saying that there must be a more simple and less “hardcore” solution to get the desired result!?

But thanks for the reply, I’ll try to see if I can get something out of the little class you wrote! :-\
