# Getting MCs with dynamic content to respond?

**URL:** <https://forum.kirupa.com/t/getting-mcs-with-dynamic-content-to-respond/121915>\
**Category:** Uncategorized\
**Created:** [September 8, 2004, 3:16pm UTC](https://forum.kirupa.com/t/getting-mcs-with-dynamic-content-to-respond/121915 "2004-09-08T15:16:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![7even](https://avatars.discourse-cdn.com/v4/letter/7/5f9b8f/32.png) [@7even](https://forum.kirupa.com/u/7even)\
**Post date:** [September 8, 2004, 3:16pm UTC](https://forum.kirupa.com/t/getting-mcs-with-dynamic-content-to-respond/121915/1 "2004-09-08T15:16:05Z")

</div>

Hi there!  
I’m currently working on a rather complex picture gallery and I’ve run across a problem I just can’t seem to solve:  
The galleries (there are a lot of them, that’s why I want to use AS in the first place) consist of 20 MCs that lie in another MC called “gal”. The thumbnails are loaded via script:

for (i in \_root.gal) {  
var link = “Pics/”+\_root.gallery+"/k/"+_+".jpg";  
var ziel = “\_root.gal.”+_;  
loadMovie(link, ziel);  
}

That part (I know the var strings don’t make sense without further knowledge) works perfectly fine. Of course, clicking a thumb should open the full pic and I just can’t get that part to work. I tried the following script (and ALOT of variations):

for (i in \_root.gal) {  
var link = “Pics/”+\_root.gallery+"/k/"+_+".jpg";  
var ziel = “\_root.gal.”+_;  
loadMovie(link, ziel);  
var extrakt = substring (_,2,2);  
var big = “Pics/”+\_root.gallery+"/g/"+extrakt+".jpg";  
gal_.onPress = function() {  
loadMovie(big, “\_root.full”);  
\_root.gotoAndStop(“vollbild”);  
}  
}

Unfortunately, the MCs don’t respond to the onPress-action. They only do, if I remove the first part (loading the thumbs), which of course is not an option.  
Any ideas???

You can mail me at webmaster(at)[soonmusic.net](http://soonmusic.net)

Thanx alot guys,  
7even
