# Please HELP ME with the WITH() statement

**URL:** https://forum.kirupa.com/t/please-help-me-with-the-with-statement/212765
**Category:** flash
**Created:** [January 14, 2007, 2:21am UTC](https://forum.kirupa.com/t/please-help-me-with-the-with-statement/212765 "2007-01-14T02:21:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![iolas](https://avatars.discourse-cdn.com/v4/letter/i/9de0a6/32.png) [@iolas](https://forum.kirupa.com/u/iolas)
#### Post date: [January 14, 2007, 2:21am UTC](https://forum.kirupa.com/t/please-help-me-with-the-with-statement/212765/1 "2007-01-14T02:21:41Z")

</div>

I have 12 mc named 1 to 12, and this function to pass a string into each one, but i cano’t make it work… ☹  
I believe that the problem is the target assigment (the i var number isn’t recognized as target), Any help around 🙂

// Carga las 12 fotos del nivel  
function loadFotos (stringNivel) {  
if (dir==0) {  
dir="";  
}  
var i:Number=1  
do {  
link=String(stringNivel + i + “.jpg”);  
destino=String(“clip” + i);  
loadMovie(link , destino);  
trace(link);

```
	with (i) {
		var aLink:String=link;
	}
	
	i++;
} while (i&lt;13);

```

}

Thanks for your help!!
