黄龙的Blog

一个小小的程序员

公告

统计

2012年3月1日

aswing JTextArea 自动滚动至底部

aswing的组件通常都是都有java的swing的组件的方法.但是我用到JTextArea的时候发现了问题.
采用以下的代码可以实现这个功能.
当JTextArea的内容发生改变时执行如下代码
JTextArea.getTextField().scrollV = JTextArea.getTextField().maxScrollV;

posted @ 2012-03-01 12:23 黄龙 阅读(29) 评论(0) 编辑

2011年10月9日

Alternativa3D 8.12.0发布!支持Flash Player 11 Beta2

请注意,我们将介绍最新的支持Flash Player 11 Beta 2的Alternativa3D 8.12.0引擎。这个版本完全兼容现在最新的Flash Player版本。我们还提高的鼠标事件系统的速度,并且为camera加入了正交模式。

 

更新列表:

 

支持Flash Player 11 Beta 2

为Camera3D加入了正交模式

优化和加速了MouseEvent系统

更新了AlternativaPlatform的Logo

当一个对象被加入父对象的显示列表或从父对象的显示列表中移除时,会发送

Event3D.ADDED或Event3D.REMOVED事件。

加入了在创建之后把renderToBitmap属性改变为View的能力。

View的高和宽最小值被限制为50x50。

修复了在鼠标事件中当使用divide()进行皮肤分割的bug。

修复了Decal中的一个bug。

更换了一个更精确的皮肤光照算法。

ParserCollada:修复了一个解析对象的顶点的副法线向量的bug。

View构造方法中的backgroundAlpha的默认值改为1.0。

MouseEvent3D从alternativa.engine3d.core移到了alternativa.engine3d.core.events

修复了Object3D.dispatchEvent()中的一个bug。

在Decal的构造方法中加入了offset属性,并且它是强制使用的。

View类的中ratio属性被移除。

VertexLightTextureMaterial可以在有皮肤的最大骨骼数大于33个时使用。

 

原文:

 

Alternativa3D 8.12.0 update with support for Flash Player 11 Beta 2

01.09.2011 Roman Epishin

 

To your attention we introduce the new public engine build Alternativa3D 8.12.0 which supports the Flash Player 11 Beta 2. So this version of the engine is completely compatible with the latest Flash Player build at the present moment. We have also accelerated the mouse events system and added the orthographic mode to the camera.

 

Complete list of changes

 

  The public version Flash Player 11 Beta 2 is now supported.

  The orthographic mode has been added to the Camera3D.

  The MouseEvent system has been optimized and accelerated.

  Logo "AlternativaPltaform" has been updated.

  Now when objects are added and removed from the parent, the event will be sent (Event3D.ADDED, Event3D.REMOVED).

  The ability to change the property renderToBitmap into View after creating has been added.

  The height and width of the View has been limited to the minimum size of 50×50.

  Bug in mouse events system when used skins divided on surfaces by divide() was fixed.

  A bug has been fixed in Decal.

  Skin lighting algorithm changed to more precise one.

  ParserCollada: Fixed a bug when binormal vector of the vertices of the object was incorrectly parsed.

  The value of backgroundAlpha in the View constructor changed to 1.0 by default.

  VertexLightTextureMaterial now draws correctly without lights in scene.

  MouseEvent3D was moved from alternativa.engine3d.core to alternativa.engine3d.core.events.

  A bug has been fixed in Object3D.dispatchEvent().

  The offset property has been added to the constructor Decal and it is compulsory.

  Now the offset property can be copied using the clone () method of class Decal.

  The ratio property has been removed from View class.

  VertexLightTextureMaterial now can be used with skin with the maximum number of bones in surface no more than 33.

 

原文地址:http://blog.alternativaplatform.com/en/2011/09/01/alternativa3d-8120-update-with-support-for-flash-player-11-beta-2/

转帖地址:http://bbs.9ria.com/thread-96553-1-3.html

posted @ 2011-10-09 20:36 黄龙 阅读(59) 评论(0) 编辑

2011年7月8日

javaScript的面向对象的写法

function student()
{
this.name="黄龙";
this.age=22;
this.speak=function()
{
document.write(this.name+this.age);
}
}
var myStudent=new student();
myStudent.age=23;
myStudent.speak();


通过 Wiz 发布


posted @ 2011-07-08 20:21 黄龙 阅读(20) 评论(0) 编辑

2011年3月28日

45度+自动寻路



最近做的45度角和自动寻路的例子

主要采用的是 as3isolib和astar,

模型是网上找的大话西游的人物模型!如果有版权问题请联系我,我会及时删除!

posted @ 2011-03-28 13:38 黄龙 阅读(180) 评论(0) 编辑

2011年3月1日

flash中的一些写法

序列化的对象调用。
this['a'+i]=i
在循环中调用,很方便!其实把对象当数组用就行了!

posted @ 2011-03-01 00:18 黄龙 阅读(16) 评论(0) 编辑

2011年2月12日

[转]仿百度文库或豆丁网在线浏览doc.pdf.xls.txt源码

摘要: 仿百度文库或豆丁网在线浏览doc.pdf.xls.txt源码(自动在线转换DOC.PDF.xls等文件本地生成SWF文件)原理:通过PHP调用FlashPaper软件对DOC.PDF.XLS.TXT等文件进行转换,实现在线浏览功能和豆丁。GOOGLE等文库系统在线浏览相似,转换文件服务器本地存储,不需要通过其他网站转换提高浏览速度.《-------------------FlashPaper软件说明------------------------------》:Macromedia FlashPaper2.2和contribute3.1一样都是Studio 8里的组件,FlashPaper的作阅读全文

posted @ 2011-02-12 20:11 黄龙 阅读(550) 评论(0) 编辑

2010年12月1日

wm6.5串口工具

摘要: 最近写了个在mobile上运行的串口工具也不知道是做什么用的,别人让写就写好了。但是发现个问题好像不能用button一用就出错。原因貌似是没有触摸屏的手机的某些属性是没有的调用就会出错,然后就是在魅族的M8上用不了。原因貌似是需要安装.NET EF。代码就不贴了,太简单了。记录一下以便以后查看。注:使用¥360的WM6.5系统手机编写以上内容阅读全文

posted @ 2010-12-01 19:32 黄龙 阅读(128) 评论(3) 编辑

2010年9月6日

Jquery的Socket插件

摘要: 这几天有个想法想让jquery实现socket功能做一个socket的插件。具体的思路大概是这样的1.在flash里面写一个方法,然后公开接口给js调用。2.利用jquery的扩展性写一个扩展的jquery的socket插件。目前只是个思路,阅读全文

posted @ 2010-09-06 10:55 黄龙 阅读(265) 评论(0) 编辑

2010年5月26日

导航条效果的代码

摘要: <div class="all"> <div class="m1">标题1</div> <div class="m2">标题2</div> <div class="m3">标题3</div> <div class="m4">标题4</div> <div class="m5">标题...阅读全文

posted @ 2010-05-26 11:41 黄龙 阅读(68) 评论(2) 编辑
导航条的效果

摘要: 标题1标题2标题3标题4标题5标题6进入之后才能看到效果!阅读全文

posted @ 2010-05-26 11:28 黄龙 阅读(264) 评论(0) 编辑