You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pu...@apache.org on 2021/03/12 15:38:13 UTC
[royale-asjs] branch develop updated: Update SWFLoader added load
This is an automated email from the ASF dual-hosted git repository.
pushminakazi pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new a9e4edc Update SWFLoader added load
a9e4edc is described below
commit a9e4edc0dc911ba1c51661728d6f7d93d3bc9066
Author: pashminakazi <42...@users.noreply.github.com>
AuthorDate: Fri Mar 12 20:38:04 2021 +0500
Update SWFLoader added load
---
.../src/main/royale/mx/controls/SWFLoader.as | 26 ++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/SWFLoader.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/SWFLoader.as
index 29513a7..2bf4c7b 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/SWFLoader.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/SWFLoader.as
@@ -494,6 +494,32 @@ public class SWFLoader extends UIComponent //implements ISWFLoader
dispatchEvent(new Event("sourceChanged"));
}
}
+
+ private var isContentLoaded:Boolean = false;
+ private var brokenImage:Boolean = false;
+ private var useUnloadAndStop:Boolean;
+
+ public function load(url:Object = null):void
+ {
+ if (url)
+ _source = url;
+
+ //unloadContent();
+
+ isContentLoaded = false;
+ brokenImage = false;
+ useUnloadAndStop = false;
+
+ // Prevent double loading an app when properties are set and
+ // then load() is called directly from application code instead
+ // of from commitProperties().
+ contentChanged = false;
+
+ if (!_source || _source == "")
+ return;
+
+ // loadContent(_source);
+ }
}
}