# Help with targeting

**URL:** <https://forum.kirupa.com/t/help-with-targeting/197024>\
**Category:** Uncategorized\
**Created:** [August 12, 2006, 10:56pm UTC](https://forum.kirupa.com/t/help-with-targeting/197024 "2006-08-12T22:56:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichelleX](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@MichelleX](https://forum.kirupa.com/u/MichelleX)\
**Post date:** [August 12, 2006, 10:56pm UTC](https://forum.kirupa.com/t/help-with-targeting/197024/1 "2006-08-12T22:56:04Z")

</div>

I was hoping someone could help me out with this targeting issue (at least I think it’s targeting…).

I’ve got two swf’s - main (which holds a display\_mc for the displaying image) and  
thumbs. Below is the code I’m using for my thumbs - I just can’t seem to get it to load the image when you click on a thumbnail. display\_mc isn’t nested, and the thumbs are loaded via the loader component and into a thumbs\_mc on the main swf.

```auto

bdy1_btn.contentPath = "thumbs/body1.jpg";
bdy2_btn.contentPath = "thumbs/body2.jpg";
bdy3_btn.contentPath = "thumbs/body3.jpg";
bdy4_btn.contentPath = "thumbs/body4.jpg";
bdy5_btn.contentPath = "thumbs/body5.jpg";
bdy6_btn.contentPath = "thumbs/body6.jpg";

//This is where I think my problem lies

function portfolioLoader (image) {
_root.display_mc.contentPath = image;
}

bdy1_btn.onRelease = function (){
portfolioLoader("images/body1.jpg");
}
bdy2_btn.onRelease = function (){
portfolioLoader("images/body2.jpg");
}
bdy3_btn.onRelease = function (){
portfolioLoader("images/body3.jpg");
}
bdy4_btn.onRelease = function (){
portfolioLoader("images/body4.jpg");
}
bdy5_btn.onRelease = function (){
portfolioLoader("images/body5.jpg");
}
bdy6_btn.onRelease = function (){
portfolioLoader("images/body6.jpg");
}

```
