A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: loading external jpeg problem(s).. pls help

  1. #1
    Junior Member
    Join Date
    Apr 2005
    Posts
    6

    loading external jpeg problem(s).. pls help

    Hello folks, me again

    Quick question...

    I'm having some trouble here, using this code:

    container_1_mc.loadMovie("1.jpg");

    When l test the movie the 1.jpg shows up fine no problems at all.
    However if l change it to 2.jpg (which is an existing file within the same folder) the movieClip just goes 'blank'...

    here's an upload of both the images.
    This one works fine: http://img208.echo.cx/img208/2532/13nm.jpg
    this one (for some reason, doesn't): http://img208.echo.cx/img208/3138/bg5fv.jpg

    And all l've done to the actionscript command is change the '1' to a '2', respectfully. They're both nearly the same size... I honestly can't figure it out.

    Samantha Gram

  2. #2
    Senior Member
    Join Date
    Aug 2004
    Posts
    289
    When you have a link to an external .jpg file, I have learned (through this board) that when you 'save for web'--the photograph-- in photoshop, you must un-click the 'progressive' box. Otherwise, it doesn't show up.

    I hope that helps.

    bluej2

  3. #3
    Junior Member
    Join Date
    Apr 2005
    Posts
    6
    Yes, that was the problem... Thank you for the help.
    I dont understand why there isn't a little more information available about this. I've spent hours looking through flash sites, and thumbing through my flash books trying to figure out what l was doing wrong, and didn't see anything about progressive vs. standard file formats.

    Samantha Gram

  4. #4
    Member
    Join Date
    Nov 2004
    Posts
    46
    Grayscale JPEG files cannot be loaded dynamically too.

    This becomes a problem when you don't know what type of JPEG files u're going to load. (e.g. user avatar)

    One way is to let your server convert the image into SWF. :P

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