Skip to main content
March 13, 2014
Answered

Call to a possibly undefined method removeMovieClip and createEmptyMovieClip.

  • March 13, 2014
  • 1 reply
  • 371 views

Hi All,

I face the error while designing a Progress bar.

Error at this line of code(highlighted in RED😞

function clearCircles(circleArray:Array) {

                                        for(var i:Number = circleArray.length - 1; i >= 0; i--){

removeMovieClip(circleArray.pop());

                                        }

                                        //onEnterFrame = null;

                                        root.addEventListener(Event.ENTER_FRAME,null);

                              }

and

for (i = 0; i < numCircles; i++) {

                                                  circles.push(createEmptyMovieClip('circle' + i, i));

                                                  drawCircle(circles,4,0x99FF00,100);

                                                  circles._x = centerX + Math.sin(radians * i) * radius;

                                                  circles._y = centerY + Math.cos(radians * i) * radius;

                                                  circles._alpha = i * (100 / numCircles);

                                        }

Could you please help me with this?

This topic has been closed for replies.
Correct answer Ned Murphy

If you are intending to work in AS3 then the problem is you are using AS2 code.  If you intend to use the code you show, be sure to select AS2 as the version you are publishing for and post any further questions in the AS2 forum.

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
March 13, 2014

If you are intending to work in AS3 then the problem is you are using AS2 code.  If you intend to use the code you show, be sure to select AS2 as the version you are publishing for and post any further questions in the AS2 forum.