release 0.5.4
[swfdec.git] / test / trace / loadobject.as
blob62acf8a8706c7d61765be9891cd58cd0bd922793
1 // makeswf -v 7 -r 1 -o loadobject-7.swf loadobject.as
3 var obj = new Object ();
5 obj.load = ASnative (301, 0);
7 obj.onData = function (str) {
8 trace ("Got: " + typeof (str) + " '" + str + "'");
9 trace ("Loaded: " + this._bytesLoaded);
10 trace ("Total: " + this._bytesTotal);
11 trace ("Is loaded: " + obj.loaded);
14 trace ("Loaded: " + obj._bytesLoaded);
15 trace ("Total: " + obj._bytesTotal);
16 trace ("Is loaded: " + obj.loaded);
17 trace (obj.load ());
18 trace ("Loaded: " + obj._bytesLoaded);
19 trace ("Total: " + obj._bytesTotal);
20 trace ("Is loaded: " + obj.loaded);
21 trace (obj.load ("loadobject.as"));
22 trace ("Loaded: " + obj._bytesLoaded);
23 trace ("Total: " + obj._bytesTotal);
24 trace ("Is loaded: " + obj.loaded);
25 trace (obj.load ("404"));
26 trace ("Loaded: " + obj._bytesLoaded);
27 trace ("Total: " + obj._bytesTotal);
28 trace ("Is loaded: " + obj.loaded);
30 function quit () {
31 loadMovie ("FSCommand:quit", "");
34 setInterval (quit, 1000);