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

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -