Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Call to a possibly undefined method removeMovieClip and createEmptyMovieClip.

Guest
Mar 12, 2014 Mar 12, 2014

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?

TOPICS
ActionScript
356
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Mar 13, 2014 Mar 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.

Translate
LEGEND ,
Mar 13, 2014 Mar 13, 2014
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines