bthj872gv's Avatar
bthj872gv 4
1 Asked
26 Answered
0 Best
0
No one has voted on this question yet :(
3 years, 4 months ago

How do you align duplicated movie clips in a circular alignment using Flash AS3?

for (var i = 0; i<=total; i++) {
    bar.duplicateMovieClip("bar"+i, i);
    peak.duplicateMovieClip("peak"+i, 100+i);
    this["peak"+i]._x = this["bar"+i]._x = this["bar"+(i-1)]._x+11;
}
bar._visible = 0;
peak._visible = 0;
Tip for best answer: M$5.00
Separate topics with commas, or by pressing return. Use the delete or backspace key to edit or remove existing topics.

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$

What is Your Answer?

0
0
0

2 Answers

0
jeethukarthik's Avatar
jeethukarthik | 3 years, 4 months ago
4
ActionScript 3 no longer has a duplicateMovieClip method for MovieClip instances (or any DisplayObject instances). Instead, it's suggested that you just create a new instance of the display object you wish to duplicate using its constructor.

I assume that the MovieClip you want to duplicate is "bar".
I assume that you have changed the movieclip's properties from the library to allow it to be accessible from actionscript code. iF you havent then right click the movieclip in the library. Choose Properties. Make sure you are in Advanced view. Select the Export for actionscript checkbox.

Now you can use any logic to generate movieclips along a circle.

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$

Report Abuse

Post Reply Cancel
2
raven's Avatar
raven | 3 years, 4 months ago
0

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$

Report Abuse

Post Reply Cancel

Learn something new with our FREE educational apps!

Private lessons in the comfort of your own home. Get back in shape or finally pick up a guitar with our great experts guiding you the whole way!
Learn Guitar
Learn Hip Hop
Learn Pilates