# SetVariable & Flash player version

**URL:** <https://forum.kirupa.com/t/setvariable-flash-player-version/37252>\
**Category:** flash\
**Created:** [December 7, 2003, 10:40pm UTC](https://forum.kirupa.com/t/setvariable-flash-player-version/37252 "2003-12-07T22:40:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheEnemy](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@TheEnemy](https://forum.kirupa.com/u/TheEnemy)\
**Post date:** [December 7, 2003, 10:40pm UTC](https://forum.kirupa.com/t/setvariable-flash-player-version/37252/1 "2003-12-07T22:40:21Z")

</div>

I stumpled upon this odd problem. I guess when I make something with Flash MX, then IE and Flash Player version 6 should be enough to view and handle it correctly?

An example:  
On a HMTL page where the Flash is loaded, I have a JavaScript function along the lines:

var x = document.movie.GetVariable ("\_root.clip.\_x");

Which gives me the x-coordinate of the Movie Clip “clip”. This part works fine in Flash Player 6. However, if I try something along the following:

var x = “100”;  
document.movie.SetVariable ("\_root.clip.\_x", x);

It works fine in Flash Player 7 and the clip moves in the Flash Movie, but nothing happens in version 6.

Did I miss something or is version 7 just required for this?
