# Customized shoe

**URL:** <https://forum.kirupa.com/t/customized-shoe/163092>\
**Category:** flash\
**Created:** [September 19, 2005, 7:36pm UTC](https://forum.kirupa.com/t/customized-shoe/163092 "2005-09-19T19:36:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![awholeuniverse](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@awholeuniverse](https://forum.kirupa.com/u/awholeuniverse)\
**Post date:** [September 19, 2005, 7:36pm UTC](https://forum.kirupa.com/t/customized-shoe/163092/1 "2005-09-19T19:36:00Z")

</div>

This is what I’m trying to do : a customizable shoe. There are 3 areas of the shoe . There are also three buttons … as you press a button and the an area of the shoe the area background “changes” to that of the button.  
Now I thaught of doing this in the following way :each part of the shoe has 4 different frames each with its own background, 3 corresponding to the 3 buttons and one independent state.  
As you press one button and then a certain area , the movie jumps to the corresponding frame of that part of the shoe…Hoewever it does not work.  
Code:

function selectPart()  
{  
currentSelection = this;  
}  
function selectColor()  
{  
if (currentSelection == null)  
{  
return(false);  
}  
var \_l2 = Number(this.\_name.slice(3));  
currentSelection.gotoAndStop(\_l2);  
}  
var currentSelection = null;  
c1.onPress = selectColor;  
c2.onPress = selectColor;  
c3.onPress = selectColor;  
part1.onPress = selectPart;  
part2.onPress = selectPart;  
part3.onPress = selectPart;

Thank you for your help!
