dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Check to see if asset is there before loadMovie?

Hybrid View

  1. #1

    Check to see if asset is there before loadMovie?

    Can you check to see if an asset is there (swf or jpg) before you start the loadMovie?

    I know just loading the movie and then using getBytesLoaded will check to see if it is actually loading, but I'd rather run of test of say, 10 assets to see which are present and then start loading them after I know which ones are there.

    Can this be done?

    Thanks,

    SD909

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    With php you could.

    gparis

  3. #3
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,876
    you can also ue the MovieClipLoader class to load assets instead of loadMovie. You will then have more control and be able to determine whether the file is missing, server is down etc

    http://livedocs.adobe.com/flash/9.0/...=00002000.html
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

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