A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Get dimensions of externally loaded .jpg

  1. #1
    Senior Member
    Join Date
    Feb 2001
    Posts
    180

    Get dimensions of externally loaded .jpg

    Hey is it possible to get the height & width of an externally loaded .jpg BEFORE it's fully loaded in an empty movie clip using "loadMovie()"?
    Last edited by frreestyle; 02-13-2006 at 11:00 AM.

  2. #2
    Senior Member
    Join Date
    Feb 2001
    Posts
    180
    Bump

  3. #3
    FK Slacker
    Join Date
    Jun 2000
    Location
    vancouver
    Posts
    3,208
    Not with Flash. You'll either need to wait until the image has fully loaded to get its dimensions, or use a server side script like PHP to pull the dimensions and return them to Flash before you call loadMovie...

    K.

  4. #4
    Senior Member
    Join Date
    Feb 2001
    Posts
    180
    ah ok. do u know where i can find a simple php script that does just that?

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

HTML5 Development Center