# \[CS3\] attachmovie help!

**URL:** https://forum.kirupa.com/t/cs3-attachmovie-help/254601
**Category:** flash
**Created:** [March 13, 2008, 2:45pm UTC](https://forum.kirupa.com/t/cs3-attachmovie-help/254601 "2008-03-13T14:45:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kosciuszko](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@kosciuszko](https://forum.kirupa.com/u/kosciuszko)
#### Post date: [March 13, 2008, 2:45pm UTC](https://forum.kirupa.com/t/cs3-attachmovie-help/254601/1 "2008-03-13T14:45:07Z")

</div>

[FLASH CS3/ACTIONSCRIPT 2.0]

I’m trying to attach a movie clip titled “mc\_charCirc” to the stage, but no matter what i do, I can’t seem to get the movie clip to appear on the stage. I’ve commented in what codes I’ve tried to get it to work too. Any help would be greatly appreciated!

> stop ();

trace(“frame 5:”+url);

mc\_2.onRelease = function () {  
url = “”;  
gotoAndStop(1);  
}

displayUrl.text = url;

this.createTextField(“displayText”, 1, 10, 10, 400, 250);  
//instance name, depth, x, y, width, height  
[//displayText.autoSize](https://displayText.autoSize) = “left”;  
displayText.border = false;  
displayText.multiline = true;  
displayText.wordWrap = true;

var lorem\_lv:LoadVars = new LoadVars();  
lorem\_lv.onData = function (src:String):Void {  
if (src != undefined) {

```
	//for (var i:Number = 0; i &lt; src.length-1; i++) {
	for (var i:Number = 0; i &lt; 100; i++) {
	
	var srcChar:String = src.charAt(i);
	var srcCharAdd:String;
	srcChar.toLowerCase();
	trace("char at: "+i+" "+"is: "+srcChar);
	
	if (srcChar == "a") {
	// CODE I'VE TRIED
	// help file arguments: this.attachMovie("linkageName", "instance1", this.getNextHighestDepth());
	// this.attachMovie("mc_charCirc", "charA"+i, i);
	// _level0.attachMovie("mc_charCirc", "charA"+i, 10000+i, {_x:xPos, _y:yPos, _alpha:10+Math.random()*40, _xscale:scale, _yscale:scale});
	_level0.attachMovie("mc_charCirc", "charA"+i, 10000+i);

	}
	
	displayText.text = src;

	
	}
} else {
	src = "Unable to load text.";
	
	for (var i:Number = 0; i &lt; src.length-1; i++) {
	
	var srcChar:String = src.charAt(i);
	srcChar.toLowerCase();
	trace("char at: "+i+" "+"is: "+srcChar);
	
	
	if (srcChar == "a") {
	_level0.attachMovie("mc_charCirc", "charA"+i, 10000+i);
	}
	
    	displayText.text = "Unable to load text.";
}
}

```

}  
lorem\_lv.load(url);

mc\_1.swapDepths(900);  
inputUrlBox.swapDepths(1100);  
mc\_text.swapDepths(1000);  
displayText(10);

//“[http://www.helpexamples.com/flash/lorem.txt](http://www.helpexamples.com/flash/lorem.txt)”
