In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

crash test

Get Adobe Flash player
by makc3d 01 Dec 2010
  • Related works: 2
  • Talk

    yonatan at 02 Dec 2010 08:32
    ok, i gotta ask. how the hell did you come up with those numbers???
    zob at 02 Dec 2010 10:18
    probably from the processing of motion detection? thru video?
    makc3d at 03 Dec 2010 01:47
    yeah, this is from webcam app. some outside-of-bitmapdata rectangles do crash, some don't, so I just saved a dozen through trace() and pasted back here.
    makc3d at 21 Dec 2010 10:04
    does not crash IE/10,1,85,3

    Tags

    Embed
// this crashes my debug player,
// let's see if browser plugin is any better
package {
    import flash.display.*;
    import flash.events.*;
    import flash.geom.*;
    public class CrashTest extends Sprite {
        public var bd:BitmapData;
        public function CrashTest () {
            bd = new BitmapData (640, 480, false, 0);
            stage.addEventListener (MouseEvent.CLICK, crash);
        }
		public var rects:Vector.<Rectangle> = Vector.<Rectangle>([
new Rectangle (64.65979381443299, 27.71134020618554, 570.0618556701031, 543.340206185567), // 640 x 480
new Rectangle (71.25773195876289, 23.752577319587616, 570.0618556701031, 561.1546391752577), // 640 x 480
new Rectangle (62.02061855670101, 38.59793814432989, 581.938144329897, 561.1546391752577), // 640 x 480
new Rectangle (114.8041237113402, 31.670103092783506, 581.938144329897, 570.0618556701031), // 640 x 480
new Rectangle (124.04123711340208, 31.670103092783506, 570.0618556701031, 570.0618556701031), // 640 x 480
new Rectangle (0, 0, 640, 480), // 640 x 480
new Rectangle (71.25773195876289, 38.59793814432989, 570.0618556701031, 561.1546391752577), // 640 x 480
new Rectangle (68.61855670103091, 38.59793814432989, 581.938144329897, 561.1546391752577), // 640 x 480
new Rectangle (77.85567010309279, 38.59793814432989, 570.0618556701031, 561.1546391752577), // 640 x 480
new Rectangle (68.61855670103091, 45.52577319587628, 581.938144329897, 552.2474226804123), // 640 x 480
new Rectangle (68.61855670103091, 45.52577319587628, 581.938144329897, 552.2474226804123), // 640 x 480
new Rectangle (135.91752577319588, 136.57731958762884, 308.7835051546392, 409.7319587628866), // 640 x 480
new Rectangle (179.46391752577324, -18.804123711340218, 439.42268041237116, 329.5670103092784) // 640 x 480
		]);
        public function crash (e:Event):void {
			for each (var r:Rectangle in rects) bd.histogram (r);
        }
    }
}