Dynamically loaded SWFs - dimensions?

Anyone know a way to get the dimensions of a SWF using ruby on rails.
Similar php’s getImageSize() function that can read swf files.

i know about this for images; jpg, gif, png:
http://snippets.dzone.com/posts/show/805 from
How to get image properties - Rails - Ruby-Forum

I need a solution for dynamically loaded SWF flash files that my users
will be uploading; without making them enter the dimensions for every
swf file. any sort of solution, such as a javascript one would be
great…

Anyone? help!!!

http://code.google.com/p/ruby-imagespec/source/checkout

a coworker of mine made this. its the only straightforward solution for
reading swfs issue that i’ve found.