A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: preloaders for dynamically loading jpg files

  1. #1
    Member
    Join Date
    Jun 2002
    Location
    Brixton, London UK
    Posts
    95
    does anyone know of what code I would need to use if i wanted a message like "Wait a minute, file is Loading..." displayed in a movie called text, before a jpeg called -"blood.jpg" is displayed in that same "text" movie.

  2. #2
    Junior Member
    Join Date
    Jun 2002
    Posts
    20
    What exactly are you looking for? The necessary code to load the JPEG dynamicly or how to make a preloader?

  3. #3
    Member
    Join Date
    Jun 2002
    Location
    Brixton, London UK
    Posts
    95
    the code is what I'm looking for

  4. #4
    Junior Member
    Join Date
    Jun 2002
    Posts
    20

    loadMovie

    In your local Flash help, if you look at:
    C:\Program%20Files\Macromedia\Flash%20MX\Help\Flas h\html\30_asd_06_g_to_l51.html

    it will show you loadMovie. That will do it. Now, creating a test to see if that JPEG is loading (which sounds like what you are reall after), is as simple as creating a two-frame movie clip (with one key frame) that checks the width of the movie that you load the JPEG into. Checking the size is somewhat unpredictable. So, you have this tester MC looping and then when it detects that the MC with the JPEG in it is >0 or whatever you tell it to look for, it can go to the next frame, where you do something with that JPEG.

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