From 9ba2d0239a64e5c42031fc3dc870bf96d99f76d6 Mon Sep 17 00:00:00 2001 From: Ram Vibhakar Date: Wed, 19 Aug 2015 19:09:18 +0800 Subject: [PATCH] open sketch offline --- .../src/sg/edu/smu/ksketch2/KSketchGlobals.as | 2 +- .../canvas/controls/KSketch_CacheControl.as | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/KSKInterface/src/sg/edu/smu/ksketch2/KSketchGlobals.as b/KSKInterface/src/sg/edu/smu/ksketch2/KSketchGlobals.as index ee44b531..888313a9 100755 --- a/KSKInterface/src/sg/edu/smu/ksketch2/KSketchGlobals.as +++ b/KSKInterface/src/sg/edu/smu/ksketch2/KSketchGlobals.as @@ -63,7 +63,7 @@ package sg.edu.smu.ksketch2 public static function setView():void { - if(Capabilities.playerType != "PlugIn" && Capabilities.playerType != "Desktop") + if(Capabilities.playerType != "PlugIn")// && Capabilities.playerType != "Desktop") { if(Capabilities.screenResolutionX > Capabilities.screenResolutionY) { diff --git a/KSKInterface/src/sg/edu/smu/ksketch2/canvas/controls/KSketch_CacheControl.as b/KSKInterface/src/sg/edu/smu/ksketch2/canvas/controls/KSketch_CacheControl.as index d44880d6..b3be2654 100644 --- a/KSKInterface/src/sg/edu/smu/ksketch2/canvas/controls/KSketch_CacheControl.as +++ b/KSKInterface/src/sg/edu/smu/ksketch2/canvas/controls/KSketch_CacheControl.as @@ -243,6 +243,18 @@ package sg.edu.smu.ksketch2.canvas.controls } } } + } else { + var arr:Array = cachedDocuments; + if(arr !=null){ + for(var i:int=0;i