摘要: var b:ByteArray = new ByteArray(); b.writeByte(1); b.writeByte(2); b.writeByte(3); b.writeByte(4); b.position = 0; var c:uint = b.re... 阅读全文
posted @ 2014-05-19 16:12 mnxue 阅读(183) 评论(0) 推荐(0)
摘要: 2 阅读全文
posted @ 2013-03-09 09:01 mnxue 阅读(112) 评论(0) 推荐(0)
摘要: private var domain:ApplicationDomain = new ApplicationDomian();privatre var context:LoaderContext;context = new LoaderContext(false, domain);loader.load(new URLRequert(url), context);var mc:displayObjiect = new (domian.getDefinition("ui.bag.BagWindowPanel") as class);overide public functio 阅读全文
posted @ 2013-02-22 09:59 mnxue 阅读(209) 评论(0) 推荐(0)
摘要: //====================================其中this就代表该标签而不用getelementById();<input type="button" value="确定" onclick="alert(this.value)" />/=====================================tab切换 a.active优先级别比普通意义的a要高;ul.tabs li a {background-color:#464c54;color:#ffebb5;background-po 阅读全文
posted @ 2012-05-26 09:29 mnxue 阅读(137) 评论(0) 推荐(0)
摘要: //=====================================图片绑定[Embed(source="../assets/hello.png")]public var Hello:Class;上图在四条红线的位置把图片块成的 9 块,四个角,四条边和中间一块,在缩放的时候,四个角始终不变,两条横向边只缩放宽度,高度不变,两条纵向的边只缩放高度,宽度不变,中间一块宽和高同时缩放,这就是 9 切片缩放的原理。使用这种技术一般是在使用图片做控件的皮肤时使用,很多控件的样式四个角是圆的或不规则的,所以使用这种缩放技术可以保证控件与图片的大小不一致的时候,图片看起来也不 阅读全文
posted @ 2012-04-20 11:31 mnxue 阅读(230) 评论(0) 推荐(0)
摘要: //=====================================底图截取background-position:-570px -410px;//=====================================border 宽度不算在width里面;var temp7 = document.getElementById("anav7"); temp7.style.backgroundImage = "url(/QW2012/images/top_Bg_current.jpg)"; temp7.style.backgroundPosi 阅读全文
posted @ 2012-04-20 11:30 mnxue 阅读(510) 评论(0) 推荐(0)