i have a swf, that creates 12 buttons dynamically from sites.txt by duplicating b_transmitter, then it is positioned onscreen. when a button is Roledlover i want to create a movie clip that is 50px X 50px and positioned on top of the button that created it and centered.
ive had a go, but its a bit screwy. the newly created movieclip inherits some of the button features such as the rollover function and wont center on the button but rather top left aligned.
the swf can be found http://www.cghub.co.nz/ethermap/test/index.htm
they are not aligning the way you want them because your circle buttons have a centered registration point. Dynamically created mc's have a top left registration point. The mc's are inheriting properties, but you are creating it INSIDE the button... So either fix the reg point of your circles... and target the right layer to create the mc's on
or.....
try using this to create your square mc's instead:
Please DO NOT PM me simply for individual help. Post in the public forums...that's what they are for, and they allow others to benefit as well. - Thx
OS X 10.3.9 || Flash MX04 Pro
| del.icio.us || furl || Helpful Source Files || Free Pixel Fonts |
they are not aligning the way you want them because your circle buttons have a centered registration point. Dynamically created mc's have a top left registration point. The mc's are inheriting properties, but you are creating it INSIDE the button... So either fix the reg point of your circles... and target the right layer to create the mc's on
or.....
try using this to create your square mc's instead: