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

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

Anyone? help!!!!!!!!


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