fscommand2 的背光与振动控制

很喜欢能控制手机振动的 StartVibrate 命令,想想做游戏用它多爽!
可惜试了两台手机6260 与 3230 都不支持,ExtendBacklightDuration
背光也是这样虽然支持,但返回值是0。你试试?

fscommand2("FullScreen", true);
lightStatus = fscommand2("ExtendBacklightDuration", 10);
vibrateStatus = fscommand2("startVibrate", 2500, 1000, 2);
time = getTimer();
this.onEnterFrame = function() {
t3.text = Math.abs((getTimer()-time)/1000);
};
t1.text = lightStatus;
t2.text = vibrateStatus;


返回 -1 不支持,0 出错,1 为成功


[本日志由 jack 于 2006-06-29 02:45 PM 编辑]
文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags: fscommand2 背光 振动 控制
相关日志:
评论: 0 | 引用: 0 | 查看次数: -
发表评论
昵 称:
密 码: 游客发言不需要密码.
内 容:
验证码: 验证码
选 项:
虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.