# Save infromation in variable

**URL:** <https://forum.kirupa.com/t/save-infromation-in-variable/200381>\
**Category:** flash\
**Created:** [September 11, 2006, 8:20pm UTC](https://forum.kirupa.com/t/save-infromation-in-variable/200381 "2006-09-11T20:20:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![modelreject](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@modelreject](https://forum.kirupa.com/u/modelreject)\
**Post date:** [September 11, 2006, 8:20pm UTC](https://forum.kirupa.com/t/save-infromation-in-variable/200381/1 "2006-09-11T20:20:08Z")

</div>

Hello again,  
I was wondering if someone has an idea how to capture the “progressbar\_mc.\_xscale” on the fly, on a button press and store that info in a variable.  
My head is about to blow and I just can’t get my head round the idea.

snd.onEnterFrame = function() {  
this.loaded = this.\_sound.getBytesLoaded()/this.\_sound.getBytesTotal();  
progressbar\_mc.\_xscale = loadingbar\_mc.\_xscale\*this.position/this.\_sound.duration;  
this.updateTime();  
};

Any help would be greatly appreciated!  
Thanks  
M
