English Sentence Loading...
英语句子加载中...
  • 1 
预览模式: 普通 | 列表

放一个amfphp+flex3的相册源码

fp的执行顺序

FB 4 插件-Blueprint

可以在写代码的时候通过网络搜索到样例代码,对于不太熟悉一些api用法上可以带来帮助

安装很简单,会用eclipse的就会安装了。

安装地址:http://download.macromedia.com/pub/labs/blueprint/

Installing Blueprint - Step 1

Go to the Help > Software Updates > Find & Install

Image:blueprint_pic1_s.jpg

Installing Blueprint - Step 2

Select Search for new features to install and then click Next

Image:blueprint_pic2_s.jpg

Installing Blueprint - Step 3

Click on New Remote Site

Image:blueprint_pic3_s.jpg

In the dialog box type:

Name: blueprint

URL: http://download.macromedia.com/pub/labs/blueprint/

Image:blueprint_pic4_s.jpg

You should see a new site listed with the name blueprint. Click on Finish

Image:blueprint_pic5_s.jpg

Installing Blueprint - Step 4

A new dialog should appear shortly after you press Finish, that lists blueprint (see below).

Image:blueprint_pic6_s.jpg

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.

Image:blueprint_pic8_s.jpg

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的时候一些技术障碍

1. 单会话只允许对同一域名/ip两并发连接,这个过时的RFC规定,大大影响了Flash资源流化的并发性。解决方案是采用散列二级或者三级域名来访问图片,很多传统图片站,和外国的咨询站都是采用这种技术。
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的问题。

又一次遭遇低级错误

as3+afmphp存图.

曾经结合Fluorine用.net存图,效果挺好。速度也快。

谁知道用同样的amf3方式传输,却怎么也存不上,图象数据老是php的变量类型。

问了google大爷,百度大叔,甚至连远方亲戚yahoo舅舅都请出来了,也不得其法.

一次偶然的测试...居然是...掉了data这个方法...寒...看来要好好熟悉下php的语法了。

MindMap 完成.

mindMap 大功告成。  在距离职还剩下三天的时间,mindMap主要功能皆已具备,总算可以全身而退,剩下辅助、细节修改就简单许多了。 此项目基本能够满足老师的各种教学使用,并能通过mindMap搜索到公司平台的资源。 这个小东西花了将近一个月的开发时间。文件的存储和解析基本测试无误。所有数据均以xml入住数据库。 aswing对于不会美术设计的我来说简直是神来之笔。相比Flex的庞大,aswing灵活许多,也个性十足哈。
------------------------------------------------------------------------
  

创建结点


访问地址:http://www.evimdv.com:8686/mindmap/index.html

mindMap 和 asp 交互的编码问题。

公司老的平台是很多年用asp开发,又是繁体,而现在需要用到里面的资源库,asp貌似不具备.net、php...的自动转码。找到的函数也不太好用。
于是和公司的网络部门同事,用了极端的方法。

在刚开始使用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测试

风行日本、台湾等地的行动条码,成了手机玩家的新宠。国内叫二维码。可以广泛应用在身份识别,名片等。

找到一个提供免费API的网站(http://www.kaywa.com/)。采用日本的QR编码形式。只是免费用户功能很少。只能玩玩。毕竟这里面的前景利益很广泛啊。

试着用AS3读取了提供的部分API..只可惜沙箱限制,所以只能在家里玩玩。

贴一下核心代码:


  1. private function createCode(evt:MouseEvent):void
  2.  {
  3.  var request:URLRequest = new URLRequest("http://decode.kaywa.com/api/createCode?API-KEY=ebeb09564d901ff68d770d5e98a1d82a&code="+_txt1.text+"&URL="+_txt3.text);
  4.  request.method = "GET";
  5.  var _load:URLLoader = new URLLoader();
  6.  _load.addEventListener(Event.COMPLETE, completeHandler);
  7.  _load.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
  8.  _load.load(request);
  9.  _txt2.text="creating..."
  10.  }
  11.  
  12.  
  13.  private function deCode(evt:MouseEvent):void
  14.  {
  15.  var request:URLRequest = new URLRequest("http://decode.kaywa.com/api/decodeCode?API-KEY=ebeb09564d901ff68d770d5e98a1d82a&code="+_txt1.text);
  16.  request.method = "GET";
  17.  var _load:URLLoader = new URLLoader();
  18.  //_load.dataFormat = URLLoaderDataFormat.VARIABLES;
  19.  _load.addEventListener(Event.COMPLETE, completeHandler);
  20.  _load.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
  21.  _load.load(request);
  22.  _txt2.text="deing..."
  23.  }
  24.  private function getLevel(evt:MouseEvent):void
  25.  {
  26.  
  27.  var request:URLRequest = new URLRequest("http://decode.kaywa.com/api/getCustomerLevel?API-KEY=ebeb09564d901ff68d770d5e98a1d82a");
  28.  request.method = "GET";
  29.  var _load:URLLoader = new URLLoader();
  30.  _load.addEventListener(Event.COMPLETE, completeHandler);
  31.  _load.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
  32.  _load.load(request);
  33.  _txt2.text="get Level...";
  34.  
  35.  }
  36.  private function goURL(evt:MouseEvent):void
  37.  {
  38.  var request:URLRequest = new URLRequest("http://qrcode.kaywa.com/img.php?d="+_txtURL);
  39.  navigateToURL(request,"_blank");
  40.  }

  
----------------------------- 亢奋的分割线 ------------------------------
这个是软件生成的我的二维条码
attachments/200805/2807977859.jpg

标签: 行动条码
  • 1