Is there a method or function that will return the number of pixels?

Is there a function or method in ActionScript that can return the # of pixels used?
I’m doing an experimental project and i would like to know.

thank you,
byron
cadmiumgreen

As far as I know… no there is not.

number of pixels of what?

measurements in flash are based on (screen) pixels. Any width or height measurement is given in pixels. As long as your scaling is 100%, to find the number of pixels in say, an image, use _width*_height… though its probably not what you want I assume?

In general however, as lost was alluding to, per-pixel information cannot be determined in Flash.

Good point there Sen. I was assuming per-pixel information, I didn’t think of what you said.