Ios 移动图形的Staling被切断
使用Flashdevelop,我成功地在我的starling项目中添加了一个jpg: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
[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的创作