2007年10月
不知道为什么textinput一直没有垂直居中的属性.于是就自己写了个类,支持垂直居中 :
package com.sandy.global.view.component.textinput
...{
import mx.controls.Text;
import mx.controls.TextInput;
public class VerticalMiddleTextInput extends TextInput
...{
public function VerticalMiddleTextInput()
...{
super()
}
override protected function createChildren():void
...{
super.createChildren();
}
ov阅读全文>
发表于 @ 2007年10月31日 16:45:00|评论(loading...)|编辑
一个flex 调试工具, 很不错.可以在运行时时实改变各个属性 .
http://code.google.com/p/reflexutil/
阅读全文>
发表于 @ 2007年10月30日 15:55:00|评论(loading...)|编辑
1) , -keep-generated-actionscript=true :可以在编译的时候生成as代码, 放在src/generated中
2) , contributor name 添加到swf文件里,name是贡献者的名字
3) , creator name 添加到swf文件里,name是作者的名字
4) , date text 添加到swf文件里,text是数据的内容
5) , default-background-color int 默认背景颜色,默认为null,例如: -default-background-color=0xCCCCFF
6) , default-frame-rate int 设置帧数,默认为24
7) , description text 添加到swf文件里的描述内容,text是描述的内容
8) , dump-config filename 将次配置内容输出到filename的文件里,如:mxmlc -dump-config myapp-config.xml
9) , show-binding-wa阅读全文>
发表于 @ 2007年10月30日 13:38:00|评论(loading...)|编辑
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.managers::DragManager$/get isDragging()
at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::dragScroll()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at ()
at flash.utils::SetIntervalTimer/flash.utils:SetIntervalTimer::onTimer()
at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
at flash.utils::Timer/flash.utils:Timer::tick() 阅读全文>
发表于 @ 2007年10月29日 19:21:00|评论(loading...)|编辑
Boostworthy Animation System (as 缓动特效)
一套as3写的缓动特效.但好象里面有些类在flex里不起作用.还要再研究一下.
还是很不错的. 下面是一个 test ,里面的就是用path做的一个测试,当鼠标按下的时候,那个方块就会沿着这个圆圈转动和移动,要看清楚哦,方块在移动的时候也会转动方向的.
path类里内容比较少,然后我就在里面加了个drawCircle
/**
* draw circle
*/
public function drawCircle(_w:int ,_h:int):void
{
moveTo(_w,0);
for (var r:Number=Math.PI *2; r>=0 ; r-=Math.PI/18 )
{
curveTo( _w*Math.cos (r+Math.PI /36) , _h*Math.sin (r+Math.PI /36),_w*Math.cos(r),_h*Math.sin (r));
}
}
阅读全文>
发表于 @ 2007年10月25日 15:26:00|评论(loading...)|编辑
正如flash player一直都是可以在线安装的.但好象并不会自动帮你更新到最新版本.AIR当然也会如此....
在线安装AIR:
http://www.cornilliac.com/blog/2007/07/how-to-creating-an-air-express-install-badge/
阅读全文>
发表于 @ 2007年10月24日 20:29:00|评论(loading...)|编辑
不知道有没有人也老是碰到这种情况.对于程序员来说.有时没有项目的时候,就会想自己做个好玩的项目.然后放到自己的空间去炫耀一下.好.这样的话,可能你会在公司的时候和在家的时候都会写这个项目,可现在就出现问题了.你在公司写了代码,然后回到家,可忘了公司里改的代码在哪几个文件了.OK.有人可能会拿这个项目的文件在公司和家里两边拷贝.可当越来越多的时候,就会发现很麻烦了.
今天介绍一下这个:FTP Synchronizer ,---ftp同步工具.(我的csdn空间里有) ..可以把代码放在网上的一个地方,那样只要同步一下.就成最新的了.很方便的.....
阅读全文>
发表于 @ 2007年10月22日 20:05:00|评论(loading...)|编辑
可以直接用httpservice 查询这个地址 :http://www.time.ac.cn/timeflash.asp?user=flash' .
返回的是一个xml:
-
-
2007
10
21
17
48
25
阅读全文>
发表于 @ 2007年10月21日 17:48:00|评论(loading...)|编辑
最近都是被一个问题搞的头大了。一个项目,不知道怎么回事。老是报内部错误。找了老半天也没有找到。今天终于解决了。 少了一个括号。可我就晕了。为什么会报内部错误。一点都不人性话。
如果有人碰到这个问题。可以看看这个
http://rjowen.wordpress.com/2007/06/21/internal-build-error-or-classes-must-not-be-nested-error/
阅读全文>
发表于 @ 2007年10月19日 15:36:00|评论(loading...)|编辑