# How reset movie of graph?

**URL:** <https://forum.kirupa.com/t/how-reset-movie-of-graph/237450>\
**Category:** Uncategorized\
**Created:** [August 30, 2007, 1:27pm UTC](https://forum.kirupa.com/t/how-reset-movie-of-graph/237450 "2007-08-30T13:27:19Z")\
**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 30, 2007, 1:27pm UTC](https://forum.kirupa.com/t/how-reset-movie-of-graph/237450/1 "2007-08-30T13:27:19Z")

</div>

hello…

I have problem about reset movie of graph.  
I have one combobox and in labels is “—select—,Underdamped”  
then seclet “underdamped” in lables of combobox it plot graph one line.  
then click button “reset” and it reset line of graph.I want reload then select “underdamped” in lables of combobox .but it will dont work.  
why?. I dont understand.  
how i write actionscript ?  
can someone help me?  
thanks yous  
this is code

> this.createEmptyMovieClip(“graph\_mc”,this.getNextHighestDepth());  
> graph\_mc.moveTo(100,300);  
> graph\_mc.lineStyle(2,0xff0000);  
> var t:Number = 0;  
> var i:Number =-98;  
> var start\_bn:Boolean=true;  
> LO = new Object();  
> LO.change = function(EO)  
> {  
> c1Value= c1.getSelectedItem().label;  
> checkValue();  
> };  
> this.onEnterFrame=function()  
> {  
> Go=1.5\*(1.06\*Math.exp(-t)\*Math.cos(Math.sqrt(8)\*t-19.47));  
> if(c1Value==“Underdamped”)  
> if(i\<148)  
> {

graph\_mc.lineTo(198+i,140-190_Go/150_i);  
t+=1/7;  
i=i+3;

}  
}  
reset\_btn.onPress=function(){  
unloadMovie(graph\_mc);  
t= 0;  
i=-98;  
start\_bn=false;

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