# Dementions via class

**URL:** <https://forum.kirupa.com/t/dementions-via-class/320965>\
**Category:** Uncategorized\
**Created:** [April 6, 2011, 11:13pm UTC](https://forum.kirupa.com/t/dementions-via-class/320965 "2011-04-06T23:13:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![radi](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@radi](https://forum.kirupa.com/u/radi)\
**Post date:** [April 6, 2011, 11:13pm UTC](https://forum.kirupa.com/t/dementions-via-class/320965/1 "2011-04-06T23:13:55Z")

</div>

im trying to make a simple sprite sheet, first to test it i made it as its own .FLA  
and it worked (the only script was)

```auto

addEventListener(Event.ENTER_FRAME, eFrameEvents);

 function eFrameEvents(e:Event):void
        {
            
            sprite.x += 128
            if(sprite.x > 0){sprite.x = -1280}
        
        }

```

and i was able to set the document property dimensions to 128px / 128px  
(the size of a single frame)  
and it worked, looks perfect, however to use it in the way i intended i load the image as a child of a movie clip , how would i go about setting the dimensions of a movie clip that isn’t the main timeline ?(in CS5)
