# Beginer with actionscript

**URL:** <https://forum.kirupa.com/t/beginer-with-actionscript/255756>\
**Category:** Uncategorized\
**Created:** [March 26, 2008, 4:37pm UTC](https://forum.kirupa.com/t/beginer-with-actionscript/255756 "2008-03-26T16:37:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mushi206](https://avatars.discourse-cdn.com/v4/letter/m/9dc877/32.png) [@mushi206](https://forum.kirupa.com/u/mushi206)\
**Post date:** [March 26, 2008, 4:37pm UTC](https://forum.kirupa.com/t/beginer-with-actionscript/255756/1 "2008-03-26T16:37:40Z")

</div>

hi im fairly new to flash and will appreciate any and all help given.

my aim is to get the movie clip (bar shapes) to move up and down randomly over time.

this is the actionscript ive done so far.

by the way im using flash 8 so i beleive that its actionscript 2.

[COLOR=Red]on enterFrame

{  
var someValue:Number = Math.random()\*100;  
}

```
for (var k : Number = 0; k++; k&lt;10) 
{
"bar" + k + "_mc"._yscale = someValue;
};

```

\_root[“bar” + k + “\_mc”].\_yscale = 50;[/COLOR]
