# Very annoing problem with paths Please help!

**URL:** <https://forum.kirupa.com/t/very-annoing-problem-with-paths-please-help/66109>\
**Category:** flash\
**Created:** [October 2, 2004, 5:58pm UTC](https://forum.kirupa.com/t/very-annoing-problem-with-paths-please-help/66109 "2004-10-02T17:58:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rave\_t](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@rave\_t](https://forum.kirupa.com/u/rave_t)\
**Post date:** [October 2, 2004, 5:58pm UTC](https://forum.kirupa.com/t/very-annoing-problem-with-paths-please-help/66109/1 "2004-10-02T17:58:25Z")

</div>

Hej!

I’ve got a mc which should send its own name to a combobox thru a variable. The Code for the MC looks like this:

onClipEvent (load) {  
tellTarget (this.\_parent.color\_combo) {  
myTarget=this.\_name;   
trace(myTarget);  
}  
}

and for the combobox:

on (change) {  
myColor = new Color(this.\_parent.myTarget.fill\_mc);  
myColor.setRGB(this.value);  
trace(myTarget);  
delete farg;  
}  
The problem is that the line myColor = new Color(this…);  
doesnt work but i get the same values from both trace functions.  
Cant i use the variable myTarget in the path in the combobox?

If i make the path static and only for one MC, (myColor = new Color(this.\_parent.myMC.fill\_mc); then it works but i will duplicate my mc and the combobox should work for all mc:s then the path has to be dynamic.

How should I solv this?
