我有一个非常简单的AS3应用程序,使用绘图应用程序接口绘制几个圆,并显示一个嵌入的纯SVG文件(这也是一个较小半径的圆)。图形在模拟器上看起来很好(当我在FlashBuilder中更改不同的皮肤时),但在实际设备上看起来相当糟糕。我试了两台HTC迅雷和华硕ePad。我没有缩放任何东西,即使我会,我认为这将是位图的问题,但不是基于矢量的图形。有没有人知道是怎么回事?还是我错过了什么?
package
{
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
public class bootest extends Sprite
{
[Embed(source="circle.svg")]
private var BackUp:Class;
public function bootest()
{
super();
// support autoOrients
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
var front:Sprite = new Sprite();
front.graphics.beginFill(0x0000ff, 1);
front.graphics.drawCircle(0, 0, 70);
front.graphics.endFill();
front.graphics.beginFill(0xffff00, 1);
front.graphics.drawCircle(0, 0, 60);
front.graphics.endFill();
front.x = 150;
front.y = 150;
addChild(front);
var svg:Sprite = new BackUp();
svg.x = front.x;
svg.y = front.y + front.height + 25;
addChild(svg);
}
}
}

左侧仿真器与设备的右侧屏幕截图
发布于 2012-01-21 11:32:58
这只是个大概的猜测,但可能值得一试。空中移动舞台质量默认为中,尝试使用高,或最佳。
关于移动端和矢量的快速警告,它们可以让移动应用程序运行得相当快,如果可能的话,最好使用位图。
https://stackoverflow.com/questions/8950092
复制相似问题