SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot af11kcc's Avatar
    Join Date
    Oct 2003
    Location
    South of Rio Grande
    Posts
    124
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Reading file dimensions (wxh) of a swf file

    Hello All,
    I am uploading some banners to my server on an application, I am using ASPUpload.
    Everything works fine, I am using the component properties: File.ImageType, File.ImageWidth, and File.ImageHeight.
    My problem is that this properties only support file types:GIF, JPEG, BMP and PNG.
    I am using also Flash banners on the site (SWF)...
    How can I determine the banner dimensions (width and height in pixels) after uploading the .swf file?
    Thanks in advance?

  2. #2
    SitePoint Wizard bronze trophy JRMillion's Avatar
    Join Date
    Apr 2004
    Location
    Arlington VA
    Posts
    2,094
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You might want to put this question in the ASP board too...
    I am a Flash person, and this is a good question, but I am not sure of the answer.

  3. #3
    SitePoint Zealot af11kcc's Avatar
    Join Date
    Oct 2003
    Location
    South of Rio Grande
    Posts
    124
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks JRMillion, it is also there but we (developers) can't seem to find a solution, so we are coming to you Flash Guru's....have a good one

  4. #4
    SitePoint Wizard bronze trophy JRMillion's Avatar
    Join Date
    Apr 2004
    Location
    Arlington VA
    Posts
    2,094
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I do similar stuff with uploading images using PHP and the GD library, but I have never read the dimensions of swf files... If I think of something I will post it.
    You could have the swf files report their dimensions when they are displayed, but that would require modification of the actual flash file and would probably no work for what you are doing...

  5. #5
    SitePoint Wizard bronze trophy JRMillion's Avatar
    Join Date
    Apr 2004
    Location
    Arlington VA
    Posts
    2,094
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think I found what you need.
    http://www.4guysfromrolla.com/webtec...102001-1.shtml
    You could possibly run into a version problem with the newer versions of flash, but you'll have to test it and find out.


Bookmarks

Posting Permissions

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