Skip to content
Permalink
Browse files
Add a bit more flexibility in loading load - mostly for better 3rd pa…
…rty support
  • Loading branch information
justinmclean committed Oct 12, 2014
1 parent e9c8726 commit faa11c6a3f011ef376094582553d4c9abfbf9cd6
Showing 2 changed files with 13 additions and 3 deletions.
@@ -89,7 +89,12 @@
private function loadApp(application:String, source:String):void
{
swfLoader.loadApp(application + ".swf");
if (application.indexOf(".swf") > 0) {
swfLoader.loadApp(application);
}
else {
swfLoader.loadApp(application + ".swf");
}
vs.loadSource(application, source);
}
@@ -32,7 +32,12 @@
{
var files:Array = new Array();
// the first file shown will be the mxml source
files[0] = appUrl + ".mxml";
if (appUrl.indexOf(".mxml") >= 0 || appUrl.indexOf(".as") >= 0) {
files[0] = appUrl;
}
else if (appUrl.indexOf(".swf") == 0) {
files[0] = appUrl + ".mxml";
}
if (srcUrl != null && srcUrl != "")
{
@@ -41,7 +46,7 @@
files = files.concat(otherSrc);
}
for (var i:int ; i < files.length ; i++)
for (var i:int = 0; i < files.length ; i++)
{
tabs[i] = new SourceTab();
tn.addChild(tabs[i]);

0 comments on commit faa11c6

Please sign in to comment.