Copy link to clipboard
Copied
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?
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.
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now