首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > flex >

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

2012-06-26 
flex4.5移动设备开发-添加应用背景图片【转】http://spy6.blogspot.com/2011/07/adding-background-to-mobil

flex4.5移动设备开发-添加应用背景图片
【转】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;}

热点排行