flash->load jpgs

Out of context: Reply #8

  • Started
  • Last post
  • 18 Responses
  • brokenimage0

    swish is a program that produces swf files. it's kind of a dumbed down version of flash (haven't tried it, just read about it).

    You should load the jpeg into an empty movieclip and check to see how much has been loaded into the clip inside an onEnterFrame function. (mcLoader.loadMovie("pic.jpg");
    mcLoader.getBytesLoaded();
    mcLoader.getBytesTotal();)

    then if get bytes loaded is >= get total bytes > play();
    but you'll want to test to see if the total bytes is greater than 5 or something like that, cause sometimes it can start out at 0 and get bytes will be 0 too.

    i don't know if this helps, but you can definitely find a shit load of resources about this stuff online. try kirupa.com flash forums.

View thread