# Help me,please about combobox

**URL:** <https://forum.kirupa.com/t/help-me-please-about-combobox/237086>\
**Category:** Uncategorized\
**Created:** [August 27, 2007, 5:40am UTC](https://forum.kirupa.com/t/help-me-please-about-combobox/237086 "2007-08-27T05:40:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![little\_prince41](https://avatars.discourse-cdn.com/v4/letter/l/0ea827/32.png) [@little\_prince41](https://forum.kirupa.com/u/little_prince41)\
**Post date:** [August 27, 2007, 5:40am UTC](https://forum.kirupa.com/t/help-me-please-about-combobox/237086/1 "2007-08-27T05:40:34Z")

</div>

hello…  
I have problem about combobox.  
I have one combobox and in labels “Underdamped,Overdamped,Undamped,Crittally damped”  
I want then select “Crittally damped” in combobox .It plot graph red line and then I select “Underdamped” it show plot graph blue line and red line dont lost.  
  
first then select “Crittally damped”  
  
two then select “Underdamped”  
this is code

> this.createEmptyMovieClip(“graph\_mc”,this.getNextHighestDepth());  
> this.createEmptyMovieClip(“graph1\_mc”,this.getNextHighestDepth());  
> this.createEmptyMovieClip(“graph2\_mc”,this.getNextHighestDepth());  
> this.createEmptyMovieClip(“graph3\_mc”,this.getNextHighestDepth());  
> LO = new Object();  
> LO.change = function(EO)  
> {  
> c1Value= c1.getSelectedItem().label;  
> checkValue();  
> };  
> graph\_mc.moveTo(100,300);  
> graph1\_mc.moveTo(100,300);  
> graph2\_mc.moveTo(100,300);  
> graph3\_mc.moveTo(100,300);  
> graph\_mc.lineStyle(2,0xff0000);  
> graph1\_mc.lineStyle(2,0xFFFFFF);  
> graph2\_mc.lineStyle(2,0xCCCCCC);  
> graph3\_mc.lineStyle(2,0x0000FF);  
> var t:Number = 0;  
> var i:Number =-98;  
> this.onEnterFrame=function()  
> {  
> if(i\<148&&c1Value==“Critically damped”)  
> {  
> Go=(3_Math.exp(-3_t)+Math.exp(-3_t))/5;  
> graph\_mc.lineTo(201+i,140-260_Go/150\*i);  
> t+=1/12;  
> i=i+3;

```
  }

```

if(i\<139&&c1Value==“Undamped”)  
{  
G1=(1+Math.sin(3_t-19.4));  
graph1\_mc.lineTo(209+i,300-80_G1);  
t+=1/20;  
i=i+3;

```
  }

```

if(i\<148&&c1Value==“Underdamped”)  
{  
Go=1.5\*(1.06\*Math.exp(-t)_Math.cos(Math.sqrt(8)t-19.47));  
graph2\_mc.lineTo(198+i,140-190Go/150_i);  
t+=1/7;  
i=i+3;

```
  }

```

if(i\<148&&c1Value==“Overdamped”)  
{  
Go=(0.171_Math.exp(-7.854_t)+1.171_Math.exp(-1.146_t))/1.8;  
graph3\_mc.lineTo(202.5+i,140-260_Go/150_i);  
t+=1/12;  
i=i+3;

```
  }

```

}  
\_root.c1.addEventListener(“change”, LO);

can you help me?  
thanks you for help me.
