From 54720c58bb5d2ffc2f9b3f0924463437655a0e1d Mon Sep 17 00:00:00 2001 From: Jeremy Penner Date: Fri, 4 Feb 2011 11:16:07 -0800 Subject: [PATCH] clean up warnings, make message fit in messagebar --- src/WorldStage.as | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/WorldStage.as b/src/WorldStage.as index 277a8bc..ffe8739 100644 --- a/src/WorldStage.as +++ b/src/WorldStage.as @@ -234,13 +234,14 @@ package dragView = null; } + var rgtok: Array; if (Input.mousePressed) { if (Input.check(Key.SHIFT)) // shift-click -- begin view dragging dragView = Drag.Claim(); else // click -- select a token { - var rgtok: Array = []; + rgtok = []; getLayer(LAYER_TOKENS, rgtok); tokSelected = null; // getLayer returns tokens in draw order, which means furthest back first @@ -269,7 +270,7 @@ package var fDirty:Boolean = false; if (!fForceQuit) { - var rgtok: Array = []; + rgtok = []; getLayer(LAYER_TOKENS, rgtok); for each (var tok:Token in rgtok) { @@ -283,7 +284,7 @@ package if (fDirty && !fForceQuit) { fForceQuit = true; - ShowMsg("Unsaved! Press ESC again to confirm.", function() { fForceQuit = false; }); + ShowMsg("Unsaved! Press ESC again to quit.", function():void { fForceQuit = false; }); } else FP.world = dgWorldPrev();