Home

Submit

Source

Feeds
Report a broken link
You are about to report the tutorial shown below for review. Please only report if there is a problem with it.
Thanks.
Adobe Flash Dynamic Content
Checking if a file exists with ActionScript
Adobe Flash / Dynamic Content
Sometimes it is necessary to determine if a file exists using actionscript, for example when you have a preloader cue, that loads a series of .jpgs one after another, if one of the files doesnt exist then the cue wouldnt traverse any further, you could of course use a timeout in that scenario but why not just check if the file exists before loading it, so that if necessary you can move onto the next item in the cue almost instantly. It is possible to determine whether a file exists using the success parameter of the onLoad event handler, the problem lies in the fact that the onLoad event handler for movieclips doesnt work, so to check if an .swf file exists, or an image, you will need to use this method...

Site: www.flashvista.com - Report

What's wrong with the tutorial? Write below.

Site Search

 
Categories
2D Graphics 3D Graphics Office Applications Databases Desktop Programming Web Development