Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting swf height and width

Status
Not open for further replies.

mrfundeath

Programmer
Sep 5, 2001
12
US
is there a way to get the height and width of a flash movie?
 
array getimagesize (string filename [, array imageinfo])

Returns an array with 4 elements. Index 0 contains the width of the image in pixels. Index 1 contains the height. Index 2 a flag indicating the type of the image. 1 = GIF, 2 = JPG, 3 = PNG, 4 = SWF. Index 3 is a text string with the correct "height=xxx width=xxx" string that can be used directly in an IMG tag.
Example 1. GetImageSize (file)

<?php $size = GetImageSize (&quot;img/flag.jpg&quot;); ?>
<IMG SRC=&quot;img/flag.jpg&quot; <?php echo $size[3]; ?>


From the PHP4 manual.


 
ooooooh thanks! i didnt know i could get the height and width for a flash movie with getimagesize()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top