# Targeting AS generated movieClips instance names

**URL:** <https://forum.kirupa.com/t/targeting-as-generated-movieclips-instance-names/243418>\
**Category:** flash\
**Created:** [November 6, 2007, 8:59pm UTC](https://forum.kirupa.com/t/targeting-as-generated-movieclips-instance-names/243418 "2007-11-06T20:59:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ricardinho](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@Ricardinho](https://forum.kirupa.com/u/Ricardinho)\
**Post date:** [November 6, 2007, 8:59pm UTC](https://forum.kirupa.com/t/targeting-as-generated-movieclips-instance-names/243418/1 "2007-11-06T20:59:42Z")

</div>

Right check this:

> 

/////////////////////////////////////  
/////////////////////////////////////  
///////////////FUSE//////////////////  
/////////////////////////////////////  
import com.mosesSupposes.fuse.\*;  
ZigoEngine.register(Fuse,PennerEasing, FuseFMP);

/////FMP FILTERS///////

FuseFMP.writeFilter(t, “Blur”, {blurY:0, blurX:0, quality:1});

///////////////////////

/////FUSE FUNCTIONS////

function scaleButtOver():Void{  
var f:Fuse = new Fuse();  
f.push({target:this , scale:120, Blur\_blurX:5, alpha:40, time:2, ease:“easeOutExpo”});  
f.start();  
}

function scaleButtOut():Void{  
var f:Fuse = new Fuse();  
f.push({target:this , scale:100, Blur\_blurX:0, alpha:100, time:2, ease:“easeOutExpo”});  
f.start();  
}

///////////////////////

/////////////////////////////////////  
///////////////FUSE//////////////////  
////////////////END//////////////////  
/////////////////////////////////////

/////////////////////////////////////  
/////////////////XML/////////////////  
/////////////////////////////////////  
/////////////////////////////////////  
/////SETUP VARIABLES  
var workXml:XML = new XML();  
workXml.ignoreWhite = true;  
/////SETUP VARIABLES ARRAYS  
var imgInfo:Array = new Array();  
/////THUMB SPACING VAR  
var thumbSpacing = 40;

//load variables object to handle loading of text  
var description\_lv = new LoadVars();  
description\_lv.onData = function(raw\_text){  
description\_txt.text = raw\_text;  
}

/////////////////////////////////////  
/////////////////////////////////////  
////////////XML FUNCTION  
function GenFolio(workXml){  
var folioContent:Array = workXml.firstChild.childNodes;  
/////////////////////////////////////  
/////////////////////////////////////  
///FOR LOOP  
for(i=0; i\<folioContent.length;i++){

```
	var cp = folioContent*;
	imgInfo.push(new Folio(cp.attributes.titles, cp.attributes.thumb, cp.attributes.descriptions, cp.attributes.image));
	
	/////////////////////////////////////
	/////////////////////////////////////
	/////////////////////////////////////
	/////////////////////////////////////
	
	var thumbMov:MovieClip = menu_mc.attachMovie("thumbMov", "thumbMov"+i, i); 
	thumbMov._x = i * thumbSpacing;
	
	
	
	
	
	/////////////////////////////////////
	/////////////////////////////////////
	
	
	thumbMov.createEmptyMovieClip("thumbContainer",0);
	thumbMov.thumbContainer.loadMovie(imgInfo*.thumb);
	
	/////////////////////////////////////
	/////////////////////////////////////
	
	thumbMov.titles = imgInfo*.titles;
	thumbMov.image = imgInfo*.image;
	thumbMov.descriptions = imgInfo*.des;
	
	
	
	
	
	/////////////////////////////////////
	/////////////////////////////////////
	/////////////////////////////////////
	/////////////////////////////////////
	thumbMov.onRollOver = thumbMov.onDragOver = function(){
		info_txt.text = this.titles;
		scaleButtOver(thumbMov);
		//cbutt.text = this._name;
	}
	thumbMov.onRollOut = thumbMov.onDragOut = function(){
		info_txt.text = "";
		scaleButtOut(thumbMov);
		//cbutt.text = "";
	}
	thumbMov.onRelease = function(){
		image_mc.loadMovie(this.image);
		description_lv.load(this.descriptions);
	}
	/////////////////////////////////////
	/////////////////////////////////////
	/////////////////////////////////////
	/////////////////////////////////////
}

```

}

**Now** … the problem im having is targeting the generated "thumbMov"s movieClips with FUSE.

> 

function scaleButtOver():Void{  
var f:Fuse = new Fuse();  
f.push({target:this , scale:120, Blur\_blurX:5, alpha:40, time:2, ease:“easeOutExpo”});  
f.start();  
}

function scaleButtOut():Void{  
var f:Fuse = new Fuse();  
f.push({target:this , scale:100, Blur\_blurX:0, alpha:100, time:2, ease:“easeOutExpo”});  
f.start();  
}

Above i set out my FUSE functions that i want to trigger on rollOver and rollOut of the thumbMovs

> 

thumbMov.onRollOver = thumbMov.onDragOver = function(){  
info\_txt.text = this.titles;  
scaleButtOver();

```
	}

```

thumbMov.onRollOut = thumbMov.onDragOut = function(){  
info\_txt.text = “”;  
scaleButtOut();

```
	}

```

But the problem is the thumbMov movies will obviously have a uniquely generated instance name i cant target directly due to the “for” loop…

**How** can i modify what ive done to target any of the thumbMovs with the FUSE functions?

Its a toughy to explain but hopefully someone will know what i mean??

if not let me know…

Cheers
