摘要: If you aren’t using an MVC framework like Cairngorm, Model-Glue, Guasax, or PureMVC for your Flex development, you really should think about starting. Our adoption of PureMVC at andCulture has allowed us to structure our ideas around a concrete paradigm and move on to arguing about more important th 阅读全文
posted @ 2012-10-13 11:32 zihol 阅读(161) 评论(0) 推荐(0) 编辑
摘要: Think in (Pure)MVCHow do I start using PureMVC? Short answer: Just think in (Pure)MVC! As its named says, PureMVC based on the classic Model-View-Controller design meta-pattern. Using the Facade-pattern you don’t instantiate the core actors directly, but every member of PureMVC has its own and clear 阅读全文
posted @ 2012-10-12 12:29 zihol 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 在机子上写代码测试socket经常遇到问题,为了观察socket通信就安装了个wireshark,可是wireshark不能监视loopback ,因为win7默认没有安装loopbackadapter。那就得添加一个:The key step I was missing was how to find the Hardware Wizard:Click the Start menu.Search for “cmd".Right-click on “cmd” and select “Run as Administrator”Enter “hdwwiz.exe”From that po 阅读全文
posted @ 2012-10-07 17:58 zihol 阅读(450) 评论(0) 推荐(0) 编辑
摘要: 位图文件大小的精准计算方法发布时间:2011-11-20 5:27:00 8位(bit)位图:彩色版中有2^8=256种颜色,具体哪256种颜色可由调色板灵活规定,因此每个像素点最多有256种情况(颜色),故刚好可用两位十六进制码(16^2=256)表示,占1字节。一幅512×512的8位位图大小计算方法:位图文件头(14字节)+位图信息头(40字节)+调色板(256×彩色表4字节)+实际像素点占内存(512×512×1字节)=263 222字节(Byte)。 24位位图:又名RGB真彩色图,含2^24=16 777 216=16M色,没有彩色表,原因上 阅读全文
posted @ 2012-09-28 23:08 zihol 阅读(9180) 评论(0) 推荐(0) 编辑
摘要: var memoryHash:String;try{ FakeClass(anyObjectToKnowItAllocationHash);}catch(e:Error){ memoryHash =String(e).replace(/.*([@|\$].*?) to .*$/gi,'$1');}internal final classFakeClass{} 阅读全文
posted @ 2012-09-26 15:36 zihol 阅读(231) 评论(0) 推荐(0) 编辑
摘要: STUN简介 【复制过来的】STUN(SimpleTraversal of UDP over NATs,NAT的UDP简单穿越)是一种网络协议,它允许位于NAT(或多重NAT)后的客户端找出自己的公网地址,查出自己位于哪种类型的NAT之后以及NAT为某一 个本地端口所绑定的Internet端端口。这些信息被用来在两个同时处于NAT 路由器之后的主机之间建立UDP通信。该协议由RFC 3489定义。... 阅读全文
posted @ 2010-09-18 14:28 zihol 阅读(2053) 评论(0) 推荐(0) 编辑