dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Can an image file like jpg or gif be loaded to a movie??

  1. #1
    Junior Member
    Join Date
    May 2001
    Posts
    24
    Can an image file like jpg or gif be loaded to a movie, as an external file?

  2. #2
    NerdInside's Avatar
    Join Date
    May 2001
    Location
    Penguin Island
    Posts
    3,439
    use the loadMovie and loadMovieNum to load a outside JPG or GIF. It has to be in the same domain as your movie.

  3. #3
    Junior Member
    Join Date
    May 2001
    Posts
    24
    mmm...i just tried it, it doesn't work..

    loadMovie("pic.gif", "_root.loadhere");


    pic.gif is in the same folder as the .swf
    loadhere is an mc i want to load the pic in.

    and it doesn't work

  4. #4
    NerdInside's Avatar
    Join Date
    May 2001
    Location
    Penguin Island
    Posts
    3,439
    Try

    loadMovieNum("pic.gif", "_root.loadhere");

  5. #5
    gskinner.com
    Join Date
    Feb 2002
    Location
    N.America
    Posts
    455
    FinalHit,

    Flash will only load non-interlaced JPGs.

    Your code should work fine, as long as you are loading a JPG and you have an MC instance named loadhere on the root:

    _root.loadhere.loadMovie("pic.jpg");

    Cheers,
    ZE.

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