fscommand2 的背光与振动控制
作者:jack 日期:2006-03-20
很喜欢能控制手机振动的 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 为成功
可惜试了两台手机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 为成功
Tags: fscommand2 背光 振动 控制







