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

as.3通过SWF元数据控制舞台的高度与宽度

发布时间:2020-12-15 20:09:08 所属栏目:百科 来源:网络整理
导读:package{import?fl.controls.Label;import?fl.controls.TextInput;import?flash.display.Sprite;import?flash.events.Event;[SWF(backgroundColor='0x00FF00',width='400',height='400',frameRate='29')]public?class?Main?extends?Sprite?{private?var?user
package
{
	import?fl.controls.Label;
	import?fl.controls.TextInput;
	import?flash.display.Sprite;
	import?flash.events.Event;
	
	
	[SWF(backgroundColor='0x00FF00',width='400',height='400',frameRate='29')]
	public?class?Main?extends?Sprite?
	{
		
		private?var?userName:TextInput;
		private?var?userPassword:TextInput;
		
		private?var?userNameInfo:Label;
		private?var?userPasswordInfo:Label;
		
		public?function?Main()?
		{
			this.init();
		}
		
		private?function?init():void?{
			
		}
		
		
	}
	
}

如上,可以通过SWF元数据的width及height来设置舞台的高度与宽度

(编辑:李大同)

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

    推荐文章
      热点阅读