存档
FlashDevelop3 使用 Adobe开源工具(FLEX PMD)
Flex PMD是一个代码质量检查工具。
可以跟踪你编写代码的陋习,并且帮你审核源文件,然后把如下一些常见的错误显示出来:
未使用的代码(函数、变量、常量等等)
低效率的代码(动态过滤的误用、繁琐的构造函数)
过于复杂的代码(嵌套循环、太多的条件表达式等等)
超长的代码(类,方法等等)
Flex组件生命周期的不正确使用(不正确的属性等等)
FlashDevelop发布了一个插件,让您可以在FD3 IDE中使用FlexPMD,并且可以把正确的结果显示在FD3的Output窗口中。
安装:
1.FD(FLexPMD插件) : http://www.kemelyon.com/flashdevelop/flashdevelopPMD.zip
2.拷贝PMD.dll到FD软件中的plugins文件夹中。
3.从Adobe Labs下载flexPMD
http://opensource.adobe.com/wiki/display/flexpmd/Downloads
设置 “PMD jar的位置” : Tools -> Settings -> FlexPMD 为“flex-pmd-command-line-1.0.RC3.jar”的位置。
用法
按Ctrl – Shift – A运行当前的项目FlexPMD。此版本只检查“src”文件夹里面的代码
InfoQ: 企业级RIA应用的发展——专访Adobe技术专家董龙飞
Debugging Flex and PHP
10件高级Flash开发者应该知道的事
原文:http://pv3d.org/2009/08/28/10-things-every-senior-flash-developer-should-know/
I’ve interviewed quite a few Flash/Flex developers as potential employees for Roundarch. The hard part for me is knowing exactly what questions to ask to be able to gauge a Flash dev’s skill level.
So, I made a list. From my experience this list allows me to judge the skill level and experience of the devs I interview.
If you’re not quite “Senior” level yet, read through the list and study up from the links. If this stuff is “old hat” to you, please critique this list add more references in the comments.
1. The Elastic Racetrack
You need to understand when events fire, when code is executed, and when the player renders. It’s really the foundational concept of Flash Player.
http://www.craftymind.com/2008/04/18/updated-elastic-racetrack-for-flash-9-and-avm2/
2. FlexSDK, mxmlc, compc, and all that jazz
You need to know what’s going on when you hit that “run” button in Eclipse.
http://www.senocular.com/flash/tutorials/as3withmxmlc/
http://livedocs.adobe.com/flex/3/html/help.html?content=apparch_08.html
3. Player Events, Custom Events, Event Bubbling
I can’t imagine where flash player would be without frames and mouse clicks.
http://www.adobe.com/devnet/actionscript/articles/event_handling_as3_03.html
http://livedocs.adobe.com/flex/3/langref/flash/events/package-detail.html
http://www.tink.ws/blog/custom-events-in-as-30-dont-forget-to-override-the-clone-method/
http://jacwright.com/blog/70/how-to-listen-to-flash-events-that-dont-bubble/
4. Statements, Keywords, and Directives
You should never be surprised by a new “word” in as3. If you don’t know what “static” or “override” or others are, learn them.
http://livedocs.adobe.com/flex/2/langref/statements.html
5. ASDoc
Someday, you’ll re-read your code and have no idea what it does. The stress here is on proper documenting, but generating asdocs is nice too.
http://livedocs.adobe.com/flex/3/html/help.html?content=asdoc_3.html
6. Managing visual assets (images, fonts, CSS, etc)
Flash is visual. So you need to know how to manage assets with code.
http://www.gskinner.com/talks/flexlovesflash/
http://code.google.com/p/queueloader-as3/
http://code.google.com/p/bulk-loader/
7. Arrays, Collections, Dictionaries, Mapping
You’re not just working with one MovieClip here, so you need to know how to control multiple objects at once.
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Array.html
http://www.gskinner.com/blog/archives/2006/07/as3_dictionary.html
http://code.google.com/p/as3ds/
8. Programmatic motion (tweening, easing)
If you wanted things to stay still, you should’ve stuck with HTML
http://blog.greensock.com/tweenmaxas3/
http://www.amazon.com/Foundation-Actionscript-3-0-Animation-Making/dp/1590597915/ref=sr_1_1?ie=UTF8&s=books&qid=1243014431&sr=8-1
9. OOP and Coding Against Frameworks
The days of a one huge .as file are over. You need to smartly move your code into organized and reusable objects. Also, now there are plenty of popular as3 frameworks to help manage your code. Read up on them and start using one.
http://www.adobe.com/devnet/actionscript/articles/oop_as3.html
http://www.actionscript.org/resources/articles/684/1/Object-Oriented-Programming-in-AS3/Page1.html
10. Version control
Unless you think your code is worthless, you need to learn how to back it up properly.
http://tortoisesvn.net/downloads
http://versionsapp.com/
http://en.wikipedia.org/wiki/Revision_control
http://git-scm.com/
http://www.nongnu.org/cvs/
基于Facebook和Flash平台的应用架构解析(二)
使用flex和actionscript开发游戏教程
用Flex开发的企业架构应用
Flex企业架构应用程序说明:
1、通过拖放来组织层级架构
2、可整体移动及放大和缩小、切换连线的显示方式
3、可对单个结点进行修改,增加附属信息
4、对某个父节点进行操作,底下的所有子节点及孙节点等,也会同时进行相同操作
5、所有数据均来自数据库,可进行前台的操作,将数据存回到数据库
6、加入了关系类型的自定义,让您的架构一目了然,一看就知道它和它的上一级是什么关系
Flex Builder 小提示
在手动编译(Ctrl+B)的时候,自动先保存文件:
Window->Preferences->General->Workspace 中 勾选 Save automatically before build
