# Updating function values

**URL:** <https://forum.kirupa.com/t/updating-function-values/226441>\
**Category:** Uncategorized\
**Created:** [May 21, 2007, 2:55pm UTC](https://forum.kirupa.com/t/updating-function-values/226441 "2007-05-21T14:55:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![halian](https://avatars.discourse-cdn.com/v4/letter/h/45deac/32.png) [@halian](https://forum.kirupa.com/u/halian)\
**Post date:** [May 21, 2007, 2:55pm UTC](https://forum.kirupa.com/t/updating-function-values/226441/1 "2007-05-21T14:55:30Z")

</div>

I have 3 variables on the \_root timeline.

var a = 50;  
var b = 75;  
var c = 100;

then i have a prototype which uses those

MovieClip.prototype.myName = function(a,b,c){  
…  
}

I then have 3 sliders which change the values or a,b and c.

My question is: How do I get the prototype to update the values of a,b and c as the sliders change the values of the variables?

-Regards,  
Halian
