Frame 49
stop();
Frame 85
function main(puzzleNumber) {
_root.startClock();
_root.initiateArrays(puzzleNumber);
_root.BoardPositionX = _root.myBoard._x;
_root.BoardPositionY = _root.myBoard._y;
i = 0;
while (i < 81) {
if (_root.startArray[i] == 1) {
_root.attachMovie("sq" + _root.puzzleArray[i], "piece" + i, 200 + i);
_root["piece" + i]._x = (_root.BoardPositionX + (_root.SquareSize * (i % 9))) + (_root.SquareSize / 2);
_root["piece" + i]._y = (_root.BoardPositionY + (_root.SquareSize * Math.floor(i / 9))) + (_root.SquareSize / 2);
_root["piece" + i].gotoAndPlay("StartTile");
_root["piece" + i]._alpha = 0;
new mx.transitions.Tween(_root["piece" + i], "_alpha", Weak.easeIn, 0, 100, 0.3, true);
}
i++;
}
j = 1;
while (j < 10) {
_root.generateTile(j);
j++;
}
}
function generateTile(myType) {
i = _root.getNextHighestDepth();
_root.attachMovie("sq" + myType, "tile" + i, i);
_root["tile" + i]._x = (tileBoard._x + (_root.SquareSize / 2)) + 6;
_root["tile" + i]._y = (tileBoard._y + (_root.SquareSize / 2)) + (40 * (myType - 1));
_root["tile" + i].baseX = _root["tile" + i]._x;
_root["tile" + i].baseY = _root["tile" + i]._y;
_root["tile" + i].myNumber = myType;
_root["tile" + i].myPosition = "";
_root["tile" + i].onPress = function () {
startDrag (this);
this.swapDepths(_root.getNextHighestDepth());
userArray[this.myPosition] = 0;
this.fromX = this._x;
this.fromY = this._y;
};
_root["tile" + i].onRelease = function () {
stopDrag();
xNum = _root.closestXNum(this._x);
yNum = _root.closestYNum(this._y);
if (_root.inRange(this._x, this._y) and (!isPositionTaken(xNum, yNum))) {
this._x = _root.closestX(this._x);
this._y = _root.closestY(this._y);
this.myPosition = xNum + (9 * yNum);
userArray[this.myPosition] = this.myNumber;
_root.generateTile(this.myNumber);
if (compareArrays()) {
_root.finished.swapDepths(_root.getNextHighestDepth());
new mx.transitions.Tween(_root.finished, "_alpha", Weak.easeIn, 0, 100, 0.3, true);
_root.finished.solved.text = "Congratulations you've solved the puzzle in: " + _root.myClock.text;
clearInterval(_root.myTimer);
}
} else {
this._x = this.baseX;
this._y = this.baseY;
if ((this.fromX != this.baseX) and (this.fromY != baseY)) {
this.removeMovieClip();
}
}
};
}
function isPositionTaken(xNum, yNum) {
if (userArray[xNum + (9 * yNum)] != 0) {
return(true);
}
return(false);
}
function closestXNum(xPos) {
i = 0;
while (i < 9) {
positionI = (_root.BoardPositionX + (_root.SquareSize * i)) + (_root.SquareSize / 2);
if (Math.abs(xPos - positionI) <= (_root.SquareSize / 2)) {
return(i);
}
i++;
}
}
function closestYNum(yPos) {
i = 0;
while (i < 9) {
positionI = (_root.BoardPositionY + (_root.SquareSize * i)) + (_root.SquareSize / 2);
if (Math.abs(yPos - positionI) <= (_root.SquareSize / 2)) {
return(i);
}
i++;
}
}
function closestX(xPos) {
i = 0;
while (i < 9) {
positionI = (_root.BoardPositionX + (_root.SquareSize * i)) + (_root.SquareSize / 2);
if (Math.abs(xPos - positionI) <= (_root.SquareSize / 2)) {
return(positionI);
}
i++;
}
}
function closestY(yPos) {
i = 0;
while (i < 9) {
positionI = (_root.BoardPositionY + (_root.SquareSize * i)) + (_root.SquareSize / 2);
if (Math.abs(yPos - positionI) <= (_root.SquareSize / 2)) {
return(positionI);
}
i++;
}
}
function inRange(xPos, yPos) {
if ((xPos < (BoardSize + BoardPositionX)) and (xPos > BoardPositionX)) {
if ((yPos < (BoardSize + BoardPositionY)) and (yPos > BoardPositionY)) {
return(true);
}
} else {
return(false);
}
}
function initiateArrays(puzzleNumber) {
i = 0;
while (i < 81) {
_root.puzzleArray[i] = _root["puzzleArray" + puzzleNumber][i];
_root.startArray[i] = _root["startArray" + puzzleNumber][i];
if (_root.startArray[i] == 1) {
_root.userArray[i] = _root.puzzleArray[i];
} else {
_root.userArray[i] = 0;
}
i++;
}
}
function compareArrays() {
i = 0;
while (i < 81) {
if (_root.userArray[i] != _root.puzzleArray[i]) {
return(false);
}
i++;
}
return(true);
}
function clearBoard() {
for (clips in _root) {
_root[clips].removeMovieClip();
}
clearInterval(_root.myTimer);
}
function startClock() {
function wait() {
mySeconds++;
if (mySeconds == 60) {
myMinute++;
mySeconds = 0;
}
if (mySeconds < 10) {
myZero = 0;
} else {
myZero = "";
}
if (myMinute < 10) {
myZero2 = "0";
} else {
myZero2 = "";
}
_root.myClock.text = (((myZero2 + myMinute) + ":") + myZero) + mySeconds;
}
_root.myClock.text = "00:00";
mySeconds = 0;
myMinute = 0;
_root.myTimer = setInterval(wait, 1000);
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function solveBoard() {
i = 0;
while (i < 81) {
_root.attachMovie("sq" + _root.puzzleArray[i], "piece" + i, 200 + i);
_root["piece" + i]._x = (_root.BoardPositionX + (_root.SquareSize * (i % 9))) + (_root.SquareSize / 2);
_root["piece" + i]._y = (_root.BoardPositionY + (_root.SquareSize * Math.floor(i / 9))) + (_root.SquareSize / 2);
_root["piece" + i]._alpha = 0;
new mx.transitions.Tween(_root["piece" + i], "_alpha", Weak.easeIn, 0, 100, 0.3, true);
if (_root.startArray[i] == 1) {
_root["piece" + i].gotoAndPlay("StartTile");
}
i++;
}
}
_root.SquareSize = 40;
_root.BoardSize = 9 * _root.SquareSize;
_root.numberOfPuzzlesAvailable = 7;
var puzzleArray1 = [9, 6, 3, 1, 7, 4, 2, 5, 8, 1, 7, 8, 3, 2, 5, 6, 4, 9, 2, 5, 4, 6, 8, 9, 7, 3, 1, 8, 2, 1, 4, 3, 7, 5, 9, 6, 4, 9, 6, 8, 5, 2, 3, 1, 7, 7, 3, 5, 9, 6, 1, 8, 2, 4, 5, 8, 9, 7, 1, 3, 4, 6, 2, 3, 1, 7, 2, 4, 6, 9, 8, 5, 6, 4, 2, 5, 9, 8, 1, 7, 3];
var startArray1 = [0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1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, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0];
stop();
var userArray = new Array();
var puzzleArray = new Array();
var startArray = new Array();
_root.whichPuzzle = random(numberOfPuzzlesAvailable) + 1;
_root.main(_root.whichPuzzle);
Instance of Symbol 48 MovieClip in Frame 85
on (release) {
_root.clearBoard();
_root.main(_root.whichPuzzle);
}
Instance of Symbol 50 MovieClip in Frame 85
on (release) {
_root.clearBoard();
_root.whichPuzzle = random(_root.numberOfPuzzlesAvailable) + 1;
_root.main(_root.whichPuzzle);
}
Instance of Symbol 52 MovieClip in Frame 85
on (release) {
_root.clearBoard();
_root.solveBoard();
}
Instance of Symbol 57 MovieClip in Frame 85
on (release) {
_root.Rules.swapDepths(_root.getNextHighestDepth());
new mx.transitions.Tween(_root.Rules, "_alpha", Weak.easeIn, 0, 100, 0.5, true);
}
Instance of Symbol 62 MovieClip "finished" in Frame 85
onClipEvent (load) {
this._alpha = 0;
}
Instance of Symbol 64 MovieClip "Rules" in Frame 85
onClipEvent (load) {
this._alpha = 0;
}
Symbol 7 MovieClip [sq1] Frame 1
stop();
Symbol 7 MovieClip [sq1] Frame 20
stop();
Symbol 9 MovieClip [sq2] Frame 1
stop();
Symbol 9 MovieClip [sq2] Frame 20
stop();
Symbol 11 MovieClip [sq3] Frame 1
stop();
Symbol 11 MovieClip [sq3] Frame 20
stop();
Symbol 13 MovieClip [sq4] Frame 1
stop();
Symbol 13 MovieClip [sq4] Frame 20
stop();
Symbol 15 MovieClip [sq5] Frame 1
stop();
Symbol 15 MovieClip [sq5] Frame 20
stop();
Symbol 17 MovieClip [sq6] Frame 1
stop();
Symbol 17 MovieClip [sq6] Frame 20
stop();
Symbol 19 MovieClip [sq7] Frame 1
stop();
Symbol 19 MovieClip [sq7] Frame 20
stop();
Symbol 21 MovieClip [sq8] Frame 1
stop();
Symbol 21 MovieClip [sq8] Frame 20
stop();
Symbol 23 MovieClip [sq9] Frame 1
stop();
Symbol 23 MovieClip [sq9] Frame 20
stop();
Symbol 74 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 75 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 76 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 77 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 78 MovieClip [__Packages.mx.transitions.easing.Elastic] Frame 0
class mx.transitions.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static var version = "1.1.0.52";
}
Instance of Symbol 36 MovieClip in Symbol 37 MovieClip Frame 1
on (release) {
_root.gotoAndPlay("Start");
}
Instance of Symbol 60 MovieClip in Symbol 62 MovieClip Frame 1
on (release) {
new mx.transitions.Tween(this._parent, "_alpha", mx.transitions.easing.Strong.easeIn, 100, 0, 0.7, true);
}
Instance of Symbol 36 MovieClip in Symbol 64 MovieClip Frame 1
on (release) {
new mx.transitions.Tween(this._parent, "_alpha", mx.transitions.easing.Strong.easeIn, 100, 0, 0.7, true);
}
Symbol 71 MovieClip Frame 1
mc_badge1.onRollOver = function () {
var _local1 = new mx.transitions.Tween(mc_badge1, "_xscale", mx.transitions.easing.Elastic.easeOut, mc_badge1._xscale, 150, 1, true);
_local1 = new mx.transitions.Tween(mc_badge1, "_yscale", mx.transitions.easing.Elastic.easeOut, mc_badge1._yscale, 150, 1, true);
};
mc_badge1.onRollOut = function () {
var _local1 = new mx.transitions.Tween(mc_badge1, "_xscale", mx.transitions.easing.Elastic.easeOut, mc_badge1._xscale, 100, 1, true);
_local1 = new mx.transitions.Tween(mc_badge1, "_yscale", mx.transitions.easing.Elastic.easeOut, mc_badge1._yscale, 100, 1, true);
};
mc_badge1.onPress = function () {
getURL ("http://www.play-sudoku.com/download.html", "_blank");
};
Instance of Symbol 70 MovieClip "mc_badge1" in Symbol 71 MovieClip Frame 1
onClipEvent (mouseMove) {
play();
}