зеркало из https://github.com/mozilla/shumway.git
Fixes racing example
This commit is contained in:
Родитель
9f159ff9e3
Коммит
d5f840ecb7
|
@ -51,6 +51,8 @@
|
|||
<script src="../../src/flash/display/DisplayObjectContainer.js"></script>
|
||||
<script src="../../src/flash/display/Graphics.js"></script>
|
||||
<script src="../../src/flash/display/Sprite.js"></script>
|
||||
<script src="../../src/flash/display/Loader.js"></script>
|
||||
<script src="../../src/flash/display/LoaderInfo.js"></script>
|
||||
<script src="../../src/flash/display/MovieClip.js"></script>
|
||||
<script src="../../src/flash/display/Stage.js"></script>
|
||||
<script src="../../src/flash/ui/Keyboard.js"></script>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
function Stage() {
|
||||
this._loaderInfo = null; // TODO
|
||||
this._transform = [];
|
||||
this._color = 0xFFFFFFFF;
|
||||
}
|
||||
|
@ -216,6 +215,7 @@ Stage.prototype = Object.create(new DisplayObjectContainer, {
|
|||
var loader = new Loader();
|
||||
var stage = this;
|
||||
loader._onStart = function(root, loaderInfo) {
|
||||
stage._loaderInfo = loaderInfo;
|
||||
stage._stageWidth = loaderInfo.width;
|
||||
stage._stageHeight = loaderInfo.height;
|
||||
stage._frameRate = loaderInfo.frameRate;
|
||||
|
|
Загрузка…
Ссылка в новой задаче