Class OneShot
-------------
Loads a specific URL in to a new MovieClip and deletes itself when finished (if possible). Intended for use
as a quick way to load one specific image of SWF where a MovieClipLoader is needed, but the re-usability is not.
Usage: new OneShot( url, [parent], [mc_name], [depth], [successFunction], [failureFunction] );
Options in [] are optional and will be calculated by the following rules:
parent - If nothing is passed, _root is assumed
depth - If nothing is passed, calls parent's getNextHighestDepth() function
mc_name - If nothing is passed, the name will be oneshot + "parent's name" + depth, e.g. oneshotmcBall1000
successFunction - If nothing is passed, no call back is available
failureFunction - If nothing is passed, no call back is available
successFunction will receive the targetMC when the MovieClipLoader enters the onLoadInit function
-- after movie is loaded, and first scene is displayed
failureFunction will receive three parameters: targetMC, ErrorCode (string), HTML Error Code (number)
Granted, using OneShot is not as flexible as the MovieClipLoader object, but can be used for a quick, one-time load
where error checking is not necessarily needed. The OneShot object *does not* provide feedback mechanisms for
watching the loading progress; wrapping all the features of the MovieClipLoader object defeats the purpose.
This class is intended primarily as a learning resource. It's functionality is not designed to replace any
part of the Flash ActionScript language. Use at your own risk.