Frame 1
var Frame = 0;
var Frame2 = 0;
var Speed = 0.5;
var Speed2 = 1;
var Strength = 0;
var Quality = 0;
var Stride = 0.1;
var Distance = 0;
_root.btnReset._visible = false;
this.onEnterFrame = function () {
var _local3 = Speed * Strength;
var _local4 = new flash.filters.BlurFilter(_local3, 0, Quality);
var _local2 = [_local4];
Distance = Math.round(Distance * 100) / 100;
_root.txtDistance.text = ("You have suffered " + Distance) + " meters";
_root.mcRun.mcRunner.gotoAndStop(Frame);
Frame = Frame + Speed;
if (Frame > 10) {
Frame = 0;
}
_root.mcRun.gotoAndStop(Frame2);
Frame2 = Frame2 + Speed2;
if (Frame2 > 75) {
Frame2 = 0;
}
_root.mcRun.filters = _local2;
_root.btnBoost.onRelease = function () {
Speed = 1;
Speed2 = 2;
Strength = 8;
Quality = 4;
Stride = 0.2;
_root.btnBoost._visible = false;
_root.btnReset._visible = true;
};
_root.btnReset.onRelease = function () {
Speed = 0.5;
Speed2 = 1;
Strength = 0;
Quality = 0;
Stride = 0.1;
_root.btnBoost._visible = true;
_root.btnReset._visible = false;
};
};
Symbol 39 MovieClip Frame 1
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 2
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 3
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 4
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 5
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 6
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 7
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 8
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 9
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 10
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 11
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 12
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 13
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 14
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 15
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 16
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 17
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 18
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 19
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 20
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 21
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 22
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 23
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 24
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 25
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 26
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 27
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 28
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 29
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 30
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 31
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 32
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 33
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 34
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 35
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 36
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 37
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 38
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 39
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 40
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 41
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 42
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 43
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 44
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 45
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 46
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 47
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 48
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 49
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 50
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 51
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 52
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 53
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 54
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 55
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 56
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 57
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 58
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 59
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 60
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 61
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 62
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 63
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 64
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 65
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 66
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 67
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 68
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 69
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 70
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 71
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 72
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 73
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 74
_root.Distance = _root.Distance + _root.Stride;
Symbol 39 MovieClip Frame 75
_root.Distance = _root.Distance + _root.Stride;