player 11.5: stack traces in release
You would have hoped that there be stack traces in the release version of Flash Player 11.5, but there aren't.
♥0 |
Line 25 |
Modified 2012-12-13 11:47:19 |
MIT License
archived:2017-03-20 14:38:21
ActionScript3 source code
/**
* Copyright wh0 ( http://wonderfl.net/user/wh0 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/wAllp
*/
package {
import flash.display.Loader;
import flash.system.Capabilities;
import com.actionscriptbible.Example;
public class FlashTest extends Example {
public function FlashTest() {
var version:uint = loaderInfo.bytes[3];
if (version < 18) {
loaderInfo.bytes[3] = 18;
var l:Loader = new Loader();
addChild(l);
l.loadBytes(loaderInfo.bytes);
} else {
trace('player version ' + Capabilities.version);
trace('SWF version ' + loaderInfo.bytes[3]);
try {
null[0];
} catch (e:Error) {
trace(e);
trace(e.getStackTrace());
}
}
}
}
}