2013年5月22日

摘要: var tileSprite:CitrusSprite = new CitrusSprite("tile_bg_sprite_0", { x:0, y:0, parallax:0.6 } );var tileSystem:StarlingTileSystem = new StarlingTileSystem(MovieClip(_level.getChildByName("tile_background_0"))); tileSystem.parallax = 0.6;tileSystem.name = "tile_bg_tiles_0&quo 阅读全文
posted @ 2013-05-22 16:49 苍蝇也是鸟 阅读(428) 评论(1) 推荐(0)
摘要: 1.给sprite设置背景色给sprite设置背景色,spr.opaqueBackground = 0xFFCC33,在尺寸变化的时候自动重绘背景。需要注意的是背景不能接受鼠标事件,接受鼠标事件的话,需要用graphics绘制背景。2.在ByteArray里writeUTF("中方汉字"),输出长度为12,一个汉字占了3字节。writeMultiByte("中方汉字","gb2312"),输出长度为8,一个汉字占2字节。writeMultiByte("中方汉字","utf-8"),输出长度为12 阅读全文
posted @ 2013-05-22 13:42 苍蝇也是鸟 阅读(401) 评论(0) 推荐(0)

导航