# getProperty?

**URL:** <https://forum.kirupa.com/t/getproperty/156394>\
**Category:** Uncategorized\
**Created:** [July 25, 2005, 4:13pm UTC](https://forum.kirupa.com/t/getproperty/156394 "2005-07-25T16:13:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OrganicCray](https://avatars.discourse-cdn.com/v4/letter/o/a3d4f5/32.png) [@OrganicCray](https://forum.kirupa.com/u/OrganicCray)\
**Post date:** [July 25, 2005, 4:13pm UTC](https://forum.kirupa.com/t/getproperty/156394/1 "2005-07-25T16:13:58Z")

</div>

Hi

I’m working on a project where mostly all the elements are created at runtime. I have to create almost 30 empty movieclips and now I want to arrange them. Since each movie’s size is different horizontally, I figured the easy way would be to get the width (in pixels) of the last clip created and then add 14 pixels as a spacer.

I read through the help files and it seems like getProperty can do this, but it doesn’t work. I get no actionscript errors but my syntax must be incorrect. Below is an example of what I’m trying to do.

Ideally I would like to scale the clips automatically so I don’t have to punch in the values, but all images laoding are different sizes, and all I know is they cannont be larger than 86 pixels high regardless of width. The scaling I have now has nothing to do with it, I am just shrinking the movieclpis because they are buttons with prototype tweens.

As the file progresses determining where to place each symbol on the \_x may be more complicated so any advice will help. I know there must be a simpler way than what I’m doing.

HERE’S A CHUNK OF THE SCRIPT including my comments for the client

// This creates an empty movieclip symbol for the logo image

this.createEmptyMovieClip(“logo2\_mc”, this.getNextHighestDepth());

// This specifies the absolute path of the logo image being loaded into the new movieclip

logo2\_mc.loadMovie(“[http://www.blahblah.com/cfusion/blah/lala/horsehead.jpg](http://www.blahblah.com/cfusion/blah/lala/horsehead.jpg)”);

// This sizes the movie clip

logo2\_mc.\_height == 86  
logo2\_mc.\_width == 86

// This scales the movieclip

logo2\_mc.\_xscale == 70  
logo2\_mc.\_yscale == 70

// This positions the movieclip by finding the width of the last movieclip and adding a spacing of an additional 14 pixels

logo2\_mc.\_x == 14 + (getProperty(logo1\_mc, \_width))  
logo2\_mc.\_y == 0
