# \[FLASH CS3\] Really need some help assigning actions to dynamic movieclips

**URL:** <https://forum.kirupa.com/t/flash-cs3-really-need-some-help-assigning-actions-to-dynamic-movieclips/288221>\
**Category:** flash\
**Created:** [May 13, 2009, 12:34am UTC](https://forum.kirupa.com/t/flash-cs3-really-need-some-help-assigning-actions-to-dynamic-movieclips/288221 "2009-05-13T00:34:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nige1](https://avatars.discourse-cdn.com/v4/letter/n/9dc877/32.png) [@nige1](https://forum.kirupa.com/u/nige1)\
**Post date:** [May 13, 2009, 12:34am UTC](https://forum.kirupa.com/t/flash-cs3-really-need-some-help-assigning-actions-to-dynamic-movieclips/288221/1 "2009-05-13T00:34:10Z")

</div>

Hello,

Really need some help on this - it’s driving me mad. Everthing below works fine apart from the:

**movBlank[‘image’+i].onRelease = function() {  
trace(“MC Pressed”);  
}**

When I run the file the image appears but isn’t clickable.

The full code is below. I’m no Flash guru so anyone’s help would be most appreciated:

//create image array  
btnImages = new Array();

btnImages[1] = “BathR1L”;  
btnImages[2] = “BathR2L”;  
btnImages[3] = “BedR21L”;  
btnImages[0] = “Extern1”;  
btnImages[5] = “Land3L”;  
btnImages[6] = “LoftUC1”;  
btnImages[7] = “Mbedroom1L”;  
btnImages[8] = “Mbedroom3L”;

var $startx = 0;

imagePath = “projects/”;

//  
var mcl = new MovieClipLoader();  
mcl.addListener(myListener);  
myListener.onLoadInit = function(mc) {  
mc.\_width = 110;  
mc.\_height = 110;  
mc.\_x = $startx + 80;  
mc.\_y = -mc.\_height / 2;  
};

for (var i = 0; i \< btnNames.length; i++) {

```
movBlank.createEmptyMovieClip("image"+i, i);

mcl.loadClip(imagePath + btnImages*+"_small.jpg", movBlank['image'+i]);

movBlank['image'+i]._x = $startx;

**movBlank['image'+i].onRelease = function() {
    trace("MC Pressed");
}**

$startx = $startx + 80;

```

}
