- 浏览: 57896 次
- 性别:
- 来自: 北京
最新评论
-
crush1101:
写个实例出来大家看看啊
解决flash中文bug的一个新思路
文章列表
转载
http://riaoo.com/?p=1970
来自Y.Boy's Blog
转
[AS3] Serializing Bitmaps (Storing BitmapData As Raw Binary/ByteArray)
http://www.ghostwire.com/blog/archives/as3-serializing-bitmaps-storing-bitmapdata-as-raw-binarybytearray/
[AS3] Serializing A Bundle Of Bitmaps As Data Objects
http://www.ghostwire.com/blog/archives/as3-serializing-a-bundle-of ...
xml to binary
- 博客分类:
- 游戏编程
转两篇不错的关于xml压缩成binary的文章
http://www.ghostwire.com/blog/archives/as3-saving-xml-as-binary/
http://www.ghostwire.com/blog/archives/as3-simple-editor-for-loading-and-saving-xml-as-binary/
puremvc,bulkload在线文档
- 博客分类:
- 游戏编程
pureMVC在线api
http://puremvc.org/pages/docs/AS3/standard/framework_asdoc/index.html?org/puremvc/as3/patterns/facade/Facade.html&org/puremvc/as3/patterns/facade/class-list.html
bulkload在线api
http://media.stimuli.com.br/projects/bulk-loader/docs/index.html?br/com/stimuli/loading/BulkProgressEvent. ...
发现一套不错的as3数据结构库
- 博客分类:
- 游戏编程
AS3 Data Structures For Game Developers (AS3DS)
http://lab.polygonal.de
http://www.emanueleferonato.com/2010/09/21/create-a-flash-game-like-pixel-purge-step-1-player-movement/
45度角地图人物行走寻路
- 博客分类:
- 游戏编程
iteye的博客太难编辑了,改天要换个地方了。
最近在研究45度地图,写了一个demo,
主要的类有两个,第一个,人物控制的类
package view
{
import com.friendsofed.isometric.IsoObject;
import constVars.Directions;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.DisplayObject;
import flash.display.Sprite;
...
AS3 经典的代码库(转载)
- 博客分类:
- 游戏编程
3D引擎
Papervision3Dhttp://blog.papervision3d.org/
Away 3D
http://www.away3d.com/
Sandy 3D
http://www.flashsandy.org/
Alternativa Platform
http://blog.alternativaplatform.com/en/
FIVe3D
http://five3d.mathieu-badimon.com/
WireEngine3D (we3d) – A lightweight and fast 3D Engine for Flash 8/9.
http://osfl ...
m_container.graphics.beginFill(0x000000,0);
m_container.graphics.drawRect(0, 0, 215, 275);
m_container.graphics.endFill();
this.addChild(m_container);
m_container.addEventListener(MouseEvent.MOUSE_OVER, onOverHandler);
as3中创建对象池
- 博客分类:
- actionscript3.0
创建对象池的代码如下:
import flash.display.DisplayObject;
public class SpritePool
{
private var pool:Array;
private var counter:int;
public function SpritePool(type:Class,len:int)
{
pool = new Array();
counter = len;
var i:int = len;
while (--i > -1)
{
pool ...
在for循环里删除原始,也要修改下标值,下面的代码演示不更新下标植变量出现的情况:
var numbers:Array=new Array(4,10);
numbers[4]=1;
trace(numbers);//显示:4,10,undefined,undefined,1
for(var i:int=0;i<numbers.length;i++){
if(number[i]==undefined){
numbers.splice(i,1);
}
}
trace(numbers);//显示:4,10,undefined,1
上面的代码本来是期望删除全部undefined ...
as3中如何设置嵌入字体
- 博客分类:
- actionscript3.0
代码如下
public static function setEmbedFontsTextFormat(size:Object, color:Object, bold:Object, font:String = EMBEDED_FONT_NAME):TextFormat
{
var textFormat:TextFormat = new TextFormat();
textFormat.size = size;
textFormat.bold = bold;
textF ...
MOUSE_LEAVE - 当光标离开舞台时触发(stage.addEventListener(Event.MOUSE_LEAVE,leaveHandler);)