# Variables

**URL:** <https://forum.kirupa.com/t/variables/168600>\
**Category:** Uncategorized\
**Created:** [November 8, 2005, 4:49pm UTC](https://forum.kirupa.com/t/variables/168600 "2005-11-08T16:49:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Terry\_elekes](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@Terry\_elekes](https://forum.kirupa.com/u/Terry_elekes)\
**Post date:** [November 8, 2005, 4:49pm UTC](https://forum.kirupa.com/t/variables/168600/1 "2005-11-08T16:49:04Z")

</div>

I am new to flash and I was reading about variable objects. Here is the code That I put on a movieclip to see if it would make the movie clip move.  
onClipEvent (load) {  
pos = {x:10, y:300};  
}  
onClipEvent (enterFrame) {  
this.pos.x += 5;  
trace(pos.x);  
}

It works in the output window but moviclip does not move. I know there is a easier way to make it move i was just trying to understand about variable objcets I also attached a small file
