getProperty?

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”);

// 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