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 16:27:15 UTC
[royale-asjs] branch develop updated: Update Image.as 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 ac74174 Update Image.as added load
ac74174 is described below
commit ac741749f3b8524941ed363e8105c280ff2f8d24
Author: pashminakazi <42...@users.noreply.github.com>
AuthorDate: Fri Mar 12 21:27:06 2021 +0500
Update Image.as added load
---
.../MXRoyale/src/main/royale/mx/controls/Image.as | 28 ++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Image.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Image.as
index af28071..c867212 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Image.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Image.as
@@ -950,6 +950,34 @@ public class Image extends UIComponent
}
}
+
+ private var brokenImage:Boolean = false;
+ private var useUnloadAndStop:Boolean;
+ private var _source:Object;
+ private var contentChanged:Boolean = false;
+
+ 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);
+ }
+
}