Flash Lite [10] Start/StopVibrate
When I try to add sound in the "Crazy Taxi", I found it will influence the performance. So I decide to use "vibrate" to be the feedback when user hit the obstacle.
Flash Lite has two actions about the vibrate
fscommand2( "StartVibrate" , time_on , time_off , repeat );
fscommand2( "StopVibrate" );
Use "StartVirate" to start vibrate, the time_on means when to start the vibrate, the time_off means when to stop thhe vibrate, and then repeat means how many times you would like to repeat. The unit is millseconds.You can see more details in the authoring guidelines p39.
You can use "StopVibrate" when the vibrate occurs.
PS. This function needs fash player support, so you need to test in your device.
Flash Lite has two actions about the vibrate
fscommand2( "StartVibrate" , time_on , time_off , repeat );
fscommand2( "StopVibrate" );
Use "StartVirate" to start vibrate, the time_on means when to start the vibrate, the time_off means when to stop thhe vibrate, and then repeat means how many times you would like to repeat. The unit is millseconds.You can see more details in the authoring guidelines p39.
You can use "StopVibrate" when the vibrate occurs.
PS. This function needs fash player support, so you need to test in your device.


0 Comments:
Post a Comment
<< Home