宋欢的博客
flash webgame 开发 svn:http://riainsandy.googlecode.com/svn/trunk/
登录
注册
全站
当前博客
空间
博客
好友
相册
留言
用户操作
[即时聊天]
[发私信]
[加为好友]
宋欢
ID:songhuanren
共
46470
次访问,排名
2611
,好友
25
人,关注者
24
人。
RIA,FLASH,FLEX,ASWING,AS3,flash webgame开发
songhuanren的文章
原创 167 篇
翻译 0 篇
转载 13 篇
评论 57 篇
宋欢的公告
QQ:170360104
MSN:songhuan_ren@hotmail.com
专长主要是AS3,FLEX,FMS,ASWING,webgame开发
开发视频聊天室
最近评论
ematrix001:
Happy Birthday!!!
helios:
你好,我想问一个关于flickr的问题,因为有可能上传一个bmp格式的文件吧,那么相应的链接的也应该是一个bmp格式的文件,这个要怎么区别?
丫丫:
用你的方法试过了,可是不好用。。
丫丫:
用你的方法试过了,可是不好用。。
丫丫:
用你的方法试过了,可是不好用。。
文章分类
AIR
(RSS)
ajax
(RSS)
arithmetic
(RSS)
as2.0
(RSS)
as3.0
(RSS)
aswing
(RSS)
blazeds
(RSS)
computer
(RSS)
flashGame
(RSS)
flex
(RSS)
flex3
(RSS)
FMS
(RSS)
haxe
(RSS)
java
(RSS)
javascript
(RSS)
net
(RSS)
pv3d
(RSS)
ubuntu
(RSS)
杂七杂八
(RSS)
收藏
相册
music
http://www.8box.cn
存档
2008年12月(10)
2008年11月(17)
2008年10月(1)
2008年09月(1)
2008年08月(1)
2008年07月(4)
2008年06月(13)
2008年05月(16)
2008年04月(11)
2008年03月(16)
2008年02月(4)
2008年01月(1)
2007年12月(15)
2007年11月(5)
2007年10月(10)
2007年09月(2)
2007年08月(1)
2007年07月(6)
2007年06月(5)
2007年05月(9)
2007年04月(21)
2007年03月(11)
订阅我的博客
解决textinput没有垂直居中的属性
收藏
新一篇: flexchat
|
旧一篇: flex调试工具 -- reflexutil
不知道为什么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();
}
override
protected
function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):
void
...
{
super
.updateDisplayList( unscaledWidth, unscaledHeight );
this
.textField.height
=
this
.textField.textHeight ;
this
.textField.y
=
this
.height
/
2
-
this
.textField.height
/
2
}
}
}
发表于 @
2007年10月31日 16:45:00
|
评论(
loading...
)
|
编辑
新一篇: flexchat
|
旧一篇: flex调试工具 -- reflexutil
评论
#
沙沙 发表于2008-11-21 14:29:23 IP: 124.93.222.*
这个代码怎么用啊?
#
songhuanren 发表于2008-11-21 15:54:27 IP: 58.240.170.*
新建一个类啊。
#
沙沙 发表于2008-11-24 11:21:21 IP: 124.93.222.*
小妹愚笨,还是不太会用。
我用的flash,和flex是一样的吗?
发表评论
姓 名:
主 页:
校验码:
看不清,换一张
登录