# Flash translation

**URL:** https://forum.kirupa.com/t/flash-translation/8399
**Category:** Uncategorized
**Created:** [November 20, 2002, 4:57am UTC](https://forum.kirupa.com/t/flash-translation/8399 "2002-11-20T04:57:39Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Neo\_Clone01](https://avatars.discourse-cdn.com/v4/letter/n/a183cd/32.png) [@Neo\_Clone01](https://forum.kirupa.com/u/Neo_Clone01)
#### Post date: [November 20, 2002, 4:57am UTC](https://forum.kirupa.com/t/flash-translation/8399/1 "2002-11-20T04:57:39Z")

</div>

would somebody please, as detailed as possible, translate these lines of code into english

```auto

j++;
if(j<20){
	_root.box.duplicateMovieClip("box"+j,j);
	
}

```

i have seen ’ i ’ before, but i have never seen ’ j ’

the action is placed on the first frame and obviously manipulates the instance of an MC named ‘box’  
i know “what” it does, as i see that the box is duplicated and spewed across the stage  
i ws just wondering when and why use ’ j ’  
thx all u flash gurus!!

---

<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 20, 2002, 5:07am UTC](https://forum.kirupa.com/t/flash-translation/8399/2 "2002-11-20T05:07:25Z")

</div>

j is just a variable. make it h for all it matters…lol.

“i” is the standard variable used in Flash, if “i” is taken, then “j” is usually used after that, then “k”, then “l”, etc.

---

<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 20, 2002, 8:08pm UTC](https://forum.kirupa.com/t/flash-translation/8399/3 "2002-11-20T20:08:26Z")

</div>

oh, so ‘i’ can just as easily be replaced as ‘j’, it just happens to be what everyon euses  
i see  
the person who made this has no ‘i’ variable, i guess they dont like that letter hehe

correct me if im wrong, but dont you have to define a variable?

from the look of the script which this came from, it looks like he just started right off with j++

---

<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 20, 2002, 8:11pm UTC](https://forum.kirupa.com/t/flash-translation/8399/4 "2002-11-20T20:11:59Z")

</div>

j++ means j = j+1

If j is undefined, it is automatically zero, so j++ makes it 1 right from the start.

---

<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 20, 2002, 8:20pm UTC](https://forum.kirupa.com/t/flash-translation/8399/5 "2002-11-20T20:20:23Z")

</div>

cool
