# Is loadVariablesNum function only can use inside button?

**URL:** <https://forum.kirupa.com/t/is-loadvariablesnum-function-only-can-use-inside-button/87903>\
**Category:** Uncategorized\
**Created:** [April 25, 2005, 3:51am UTC](https://forum.kirupa.com/t/is-loadvariablesnum-function-only-can-use-inside-button/87903 "2005-04-25T03:51:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssheng27](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@ssheng27](https://forum.kirupa.com/u/ssheng27)\
**Post date:** [April 25, 2005, 3:51am UTC](https://forum.kirupa.com/t/is-loadvariablesnum-function-only-can-use-inside-button/87903/1 "2005-04-25T03:51:23Z")

</div>

Hi.  
I have problem with using loadVariablesNum function.  
My problem is, i can’t use it inside my MC. But it works in my button.

Why i want to put loadVariablesNum function inside my MC, is because i want my MC keep moving once i press “W” key although i had released.

on (keyPress “w”){  
\_root.x\_value= \_root.car.\_x;  
\_root.y\_value= \_root.car.\_y;  
loadVariablesNum(“[http://172.16.218.13:8080/abc/Insert.jsp",0,"post](http://172.16.218.13:8080/abc/Insert.jsp%22,0,%22post)”);  
}  
This coding works. But it only work once. But i would like to let it keep sending the latest position to my database.

Anyone got any suggestion to help me solve this problem??  
Thanks a lot…  
Thank…
