Starling项目启动时报错This application is not correctly embedded (wrong wmode value)
在项目配置文件中加
params.wmode = "direct"
<param name="wmode" value="direct" />
手机配置文件中加
<renderMode>direct</renderMode>
this.theme.setInitializerForClass(Button, initializerFun, name);
在主题中设置Button的name对应的样式
调用button.nameList.add(name),就可设置button的样式
Texture.fromColor(width:int, height:int, color:uint = 0xffffffff, optimizeForRenderToTexture:Boolean = false, scale:Number = -1):Texture
创建某一尺寸、颜色的空纹理。
颜色参数需要制定为ARGB格式。