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 <[email protected]>
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);
+    }
 }
 
 }

Reply via email to