`
keren
  • 浏览: 1558124 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

flex4.5移动设备开发-添加应用背景图片

    博客分类:
  • Flex
 
阅读更多
【转】http://spy6.blogspot.com/2011/07/adding-background-to-mobile-flex-45.html
package skins
{
import models.Icons;
import mx.core.BitmapAsset;
import spark.components.Image;
import spark.skins.mobile.ViewNavigatorApplicationSkin;

public class AppSkin extends ViewNavigatorApplicationSkin
{
private var image:Image;

public function AppSkin()
{
 super();
}

override protected function createChildren():void {
 image = new Image();
 image.source = (new Icons.background() as BitmapAsset);
 image.height = 600; //Set image size here. You can also use percentWidth
 image.width = 1024;
 this.addChild(image);

 super.createChildren();
}
}
}

@namespace s "library://ns.adobe.com/flex/spark";

s|View {
 backgroundAlpha: 0;
}
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics