-
-
Notifications
You must be signed in to change notification settings - Fork 822
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core/avm2: Support accessing applicationDomain on a LoaderInfo before…
… load starts/finishes; also improve Loader.unload stub.
- Loading branch information
1 parent
1f4bfcf
commit 89b9bc3
Showing
9 changed files
with
86 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package { | ||
import flash.display.Loader; | ||
import flash.display.Sprite; | ||
import flash.net.URLRequest; | ||
import flash.system.ApplicationDomain; | ||
import flash.system.LoaderContext; | ||
|
||
public class Test extends Sprite { | ||
public function Test() { | ||
var appDomain:ApplicationDomain = new ApplicationDomain(); | ||
var loader:Loader = new Loader(); | ||
trace(loader.contentLoaderInfo.applicationDomain); | ||
loader.load(new URLRequest("loadable.swf"), new LoaderContext(null, appDomain)); | ||
trace(loader.contentLoaderInfo.applicationDomain); | ||
loader.contentLoaderInfo.addEventListener("complete", function(e:*) { | ||
trace(loader.contentLoaderInfo.applicationDomain); | ||
loader.unload(); | ||
trace(loader.contentLoaderInfo.applicationDomain); | ||
trace(loader.contentLoaderInfo.bytesLoaded); | ||
trace(loader.contentLoaderInfo.bytesTotal); | ||
}); | ||
addChild(loader); | ||
} | ||
} | ||
} | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
null | ||
null | ||
[object ApplicationDomain] | ||
null | ||
0 | ||
0 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
num_ticks = 2 |