# Checking the pixels of a swf file

**URL:** <https://forum.kirupa.com/t/checking-the-pixels-of-a-swf-file/309889>\
**Category:** flash\
**Created:** [May 27, 2010, 12:47am UTC](https://forum.kirupa.com/t/checking-the-pixels-of-a-swf-file/309889 "2010-05-27T00:47:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashdaddy](https://avatars.discourse-cdn.com/v4/letter/f/e36b37/32.png) [@flashdaddy](https://forum.kirupa.com/u/flashdaddy)\
**Post date:** [May 27, 2010, 12:47am UTC](https://forum.kirupa.com/t/checking-the-pixels-of-a-swf-file/309889/1 "2010-05-27T00:47:48Z")

</div>

Hi All,

This is a tricky one and I’m hoping one of you can help me out. I have a swf file that’s (for example) 500px wide, however, the viewing area (meaning the viewable content) of the swf is 300. The other 200px is masked out. If I try to align the viewing area, then it doesn’t work because the alignment is based on a 500px width, not 300px. Normally, I’d just do a little math to make the 200px adjustment, but in my case, I don’t know what the size of the actual viewing area is (because the swf is being loaded dynamically). Is there a way I can check color of the pixels, or check to see if there is some type of transparency occurring at a certain point?

Hopefully i’m not the only one in the world who’s ever ran across this. I look forward to hearing back, thanks in advance.
