放一个amfphp+flex3的相册源码
作者:灰色的狼 日期:2008-06-27 01:06
fp的执行顺序
作者:灰色的狼 日期:2009-11-23 18:16
as3优化的文章
作者:灰色的狼 日期:2009-10-11 21:03
FB 4 插件-Blueprint
作者:灰色的狼 日期:2009-09-27 11:22
安装很简单,会用eclipse的就会安装了。
安装地址:http://download.macromedia.com/pub/labs/blueprint/
Installing Blueprint - Step 1
Go to the Help > Software Updates > Find & Install
Installing Blueprint - Step 2
Select Search for new features to install and then click Next
Installing Blueprint - Step 3
Click on New Remote Site
In the dialog box type:
Name: blueprint
URL: http://download.macromedia.com/pub/labs/blueprint/
You should see a new site listed with the name blueprint. Click on Finish
Installing Blueprint - Step 4
A new dialog should appear shortly after you press Finish, that lists blueprint (see below).
Select blueprint and click Next.
Installing Blueprint - Step 5
After reading the license agreement, select I accept the terms in the license agreement and click Next
Installing Blueprint - Step 6
If you want to change the location of the Blueprint plugin, you can do so here.
Click Finish.
Don't worry about the Verification screen. Go ahead and click Install.
Congratulations! You have now installed Blueprint!
Check out the Blueprint Getting Started Guide for instructions on using Blueprint.
转:Flash开发MMORPG的时候一些技术障碍
作者:灰色的狼 日期:2009-07-29 23:54
2. 每次HTTP加载资源时,会卡一下,大量实时加载资源时,用户感受会差到家。采用独立的SWF来下载。相当于多线程。
3. MovieClip的资源泄露,加载外部swf中的MC时,会有一些内存泄露。解决方案就是能不用就不用
4. IE与FF两大系列对Flash控件的内存管理机制不一样,说到底是Flash的ActiveX和Plugin的区别,IE下,工作集比较小,运行时感觉有点卡;FF会好些。控制内存使用是王道,做手游和DOS游戏的一定感同身受。 5. 鼠标右键支持与中文输入支持的二者不可兼得。众所周之,Flash自身是不支持鼠标右键自定制消息的,为了支持这一功能,需要设置Flash的wmode,以无窗口模式运行,但是这样一来,有两大问题,IE下Flash的性能会下降不少(现在只有《天书》是运行在该模式下,因此只有《天书》支持右键,其它几款如果运行在这个模式下,会更卡的),第二,在Firefox下,Flash无法中文输入。因为天书开始的策划是传统2D MMORPG出身,比较希望看到右键的使用,为了解决第一个问题,《天书》进行了各种优化,最终使得鼠标右键成为可能。为了解决第二个问题,《天书》开发了Flash内置的输入法来解决FF/Safari/Chrome的问题。
又一次遭遇低级错误
作者:灰色的狼 日期:2008-06-12 15:45
曾经结合Fluorine用.net存图,效果挺好。速度也快。
谁知道用同样的amf3方式传输,却怎么也存不上,图象数据老是php的变量类型。
问了google大爷,百度大叔,甚至连远方亲戚yahoo舅舅都请出来了,也不得其法.
一次偶然的测试...居然是...掉了data这个方法...寒...看来要好好熟悉下php的语法了。
MindMap 完成.
作者:灰色的狼 日期:2008-05-12 08:53
------------------------------------------------------------------------

创建结点

访问地址:http://www.evimdv.com:8686/mindmap/index.html
mindMap 和 asp 交互的编码问题。
作者:灰色的狼 日期:2008-05-09 10:36
于是和公司的网络部门同事,用了极端的方法。
在刚开始使用post时候,as推数据到 asp,然后返回值,打开 System.useCodePage = true 能顺利解析,但是,就是查询不到数据。
只有做了一下存入数据库测试,而存入的值在推到asp时,变成了乱码,而相同的乱码返回给as的时候,又自动解析回来。很怪的问题。
最后解决方案。as 调用 js, js执行asp,asp写流数据到xml,as网络调用xml文件,根据xml的头文件来确定是否有数据,有的话然后取出。
也就是避开了as直接调用asp会出现的乱码问题。不可谓不极端。测试效率尚可。也算一种另类的方法吧。
最后的编码为:
AS --> UTF-8
ASP --> BIG5
传输方式 --> GET (Post 表单的使用总是存在乱码问题)

------------------------------------------------ 啥也不说了的分割线 ----------------------------------------------------
不怕麻烦的人,智慧是无穷的,卡卡。
行动条码 读取 KAYWA QR-Code API测试
作者:灰色的狼 日期:2008-05-06 17:35
风行日本、台湾等地的行动条码,成了手机玩家的新宠。国内叫二维码。可以广泛应用在身份识别,名片等。
找到一个提供免费API的网站(http://www.kaywa.com/)。采用日本的QR编码形式。只是免费用户功能很少。只能玩玩。毕竟这里面的前景利益很广泛啊。
试着用AS3读取了提供的部分API..只可惜沙箱限制,所以只能在家里玩玩。
贴一下核心代码:
- private function createCode(evt:MouseEvent):void
- {
- var request:URLRequest = new URLRequest("http://decode.kaywa.com/api/createCode?API-KEY=ebeb09564d901ff68d770d5e98a1d82a&code="+_txt1.text+"&URL="+_txt3.text);
- request.method = "GET";
- var _load:URLLoader = new URLLoader();
- _load.addEventListener(Event.COMPLETE, completeHandler);
- _load.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
- _load.load(request);
- _txt2.text="creating..."
- }
- private function deCode(evt:MouseEvent):void
- {
- var request:URLRequest = new URLRequest("http://decode.kaywa.com/api/decodeCode?API-KEY=ebeb09564d901ff68d770d5e98a1d82a&code="+_txt1.text);
- request.method = "GET";
- var _load:URLLoader = new URLLoader();
- //_load.dataFormat = URLLoaderDataFormat.VARIABLES;
- _load.addEventListener(Event.COMPLETE, completeHandler);
- _load.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
- _load.load(request);
- _txt2.text="deing..."
- }
- private function getLevel(evt:MouseEvent):void
- {
- var request:URLRequest = new URLRequest("http://decode.kaywa.com/api/getCustomerLevel?API-KEY=ebeb09564d901ff68d770d5e98a1d82a");
- request.method = "GET";
- var _load:URLLoader = new URLLoader();
- _load.addEventListener(Event.COMPLETE, completeHandler);
- _load.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
- _load.load(request);
- _txt2.text="get Level...";
- }
- private function goURL(evt:MouseEvent):void
- {
- var request:URLRequest = new URLRequest("http://qrcode.kaywa.com/img.php?d="+_txtURL);
- navigateToURL(request,"_blank");
- }
----------------------------- 亢奋的分割线 ------------------------------
这个是软件生成的我的二维条码

- 1








