flash - Counting all 'drawing objects' on stage -
flash - Counting all 'drawing objects' on stage -
i have little problem counting all elements on stage. flash, unfortunately counting objects on stage without drawn objects (all shapes, including drawing objects, rectangles etc) missed. there way count them?
thanks in advance.
if referring drawing primitives, such lines , circles, no, there no way. can address , modify container (shape, sprite, movieclip, etc.), 1 time primitive vector element drawn, lose reference it. can modify bitmap data.
you could, create own class , maintain counter elements flash player doesn't recognize - increment count whenever drawn , reset on graphics.clear()
.
flash actionscript-3 count
Comments
Post a Comment