CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2005
    Posts
    115

    Width / Height Dimensions

    Is it possible to get the width and height dimensions from a flash file such as a swf. Because I know this is possible with the getimagesize() for images but I tried it for a swf file and obvioulsy it didn't work since it isn't an image does anyone know a way to do it?

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: Width / Height Dimensions

    Well, Flash is vector based so it has no defined size. The size is defined when the params are set.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Jun 2005
    Posts
    115

    Re: Width / Height Dimensions

    oh so its not possible? cause im making a script that uploads swf files and then puts it on a page of its own centered (got everything working) i just don't to restrict the swf files to a standard size but to there original size.

  4. #4
    Join Date
    May 2002
    Posts
    10,943

    Re: Width / Height Dimensions

    No. What I am saying is that you have to specify it when you embed the flash.

    Code:
    <embed src="main.swf" quality="high" loop="false" menu="false" bgcolor="#000000" width="550" height="400" name="flshmain" type="application/x-shockwave-flash">
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  5. #5
    Join Date
    Jun 2005
    Posts
    115

    Re: Width / Height Dimensions

    but im using one script to pull different ones instead of having 10000 different files for each flash file and i don't want a standard size to be set if you understand me.

  6. #6

    Re: Width / Height Dimensions

    Quote Originally Posted by Forsakenblade
    Is it possible to get the width and height dimensions from a flash file such as a swf. Because I know this is possible with the getimagesize() for images but I tried it for a swf file and obvioulsy it didn't work since it isn't an image does anyone know a way to do it?
    The following links might help...

    http://www.php.net/manual/en/functio...size.php#55503
    http://www.sephiroth.it/phpBB/archiv...hp/t-3646.html
    A few friendly reminders:
    * Use Code Tags when posting code.
    * Rate good replies/post by clicking "Rate this Post" and leaving a positive feedback.
    * Things should be made as simple as possible, but not any simpler. -- Albert Einstein

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured