Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 移动图形的Staling被切断_Ios_Actionscript 3_Starling Framework - Fatal编程技术网

Ios 移动图形的Staling被切断

Ios 移动图形的Staling被切断,ios,actionscript-3,starling-framework,Ios,Actionscript 3,Starling Framework,使用Flashdevelop,我成功地在我的starling项目中添加了一个jpg: [Embed(source = "../../../../lib/table_org_img_retouched_900.png")] private static const Graphic:Class; ... // create a Bitmap object out of the embedded image var sausageBitmap:Bitmap = new Sausag

使用Flashdevelop,我成功地在我的starling项目中添加了一个jpg:

[Embed(source = "../../../../lib/table_org_img_retouched_900.png")]
        private static const Graphic:Class;

...

// create a Bitmap object out of the embedded image
var sausageBitmap:Bitmap = new Sausage();

            // create a Texture object to feed the Image object
            var texture:Texture = Texture.fromBitmap(sausageBitmap);

            // create a Image object with our one texture
            var image:Image = new Image(texture);

            //image.width = 1000;

            // show it
            addChild(image);
最后我得到的是:


为什么我的png被切断了?

可能是当你开始椋鸟时,你的舞台尺寸不准确

_starling = new Starling(Game, stage);
_starling.start();
我建议你在创作中追踪你传递给Starling的舞台的大小,如果它与你的设备大小不一致,那么你应该推迟一点Starling的创作