howdee :nat:
I have a MC, its a timeline which is pulled back and forth via a scrubber. Inside the timeline are 3 movieclips which sit on top of each other on 3 layers. What i would like to do is retrieve their widths, then set their x positions so they site end to end:
[mc_0][mc_1][mc_2]
When i look at the w+h properties on the flash panel, i know they are 1035, 1125, and 1195 pixels respectively.
I wrote a little loop try get that(the code is within the timeline mc), and it returned some weird values
for ( i=0 ; i < =2 ; i++ ) {
var num = getProperty(this["mc_"+i], _width);
trace(num);
}
So i brought it straight back fown to basics - thinking
var num = getProperty("mc_0", _width);
should return the right value - oooooh no! i get 3495.1 or sth ridiculous.
Not sure whats im doing wrong, its probably daft though, so if you have any ideas, im all ears!
Just to clarify, the location of the clips is within _level0.Timeline_mc