Forum Moderators: coopster

Message Too Old, No Replies

Detect the dimensions of a flash movie?

         

havoc

1:07 pm on Jun 20, 2003 (gmt 0)

10+ Year Member



I am going to display a few flash files from a dynamic page
i was pondering and i relised i would need to be able to detect the dimensions of a flash movie and output it to the page occordinally . I checked google and it had one script but it was 25 bux! damn!

anyone got any ideas?

lorax

10:00 pm on Jun 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I haven't worked with the latest version of Flash but I think what you need to do is to export the movie's dimension out to the script using Action Script code.

But it strikes me that an easier way to do this might be to write the dimensions into the file name and have the script parse the name to get what it needs. Just a thought.

havoc

7:22 am on Jun 21, 2003 (gmt 0)

10+ Year Member



hrmmmm orrighty then

richardb

9:00 am on Jun 21, 2003 (gmt 0)

10+ Year Member



If you are using asp, FSO_upload will allow you to specify height, width, colour depth, file size... Which allows you to display images, swf's... on the fly.

Rich

jatar_k

7:25 pm on Jun 21, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Haven't looked through these much myself but maybe there is something in here

PHP Shockwave Flash functions
[ca.php.net]