加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-15 01:24:39 所属栏目:百科 来源:网络整理
导读:【转】 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
【转】 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;
}

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读