Skip to content Skip to sidebar Skip to footer

Flash.sensors.accelerometer On Android Within Web Browser

The Accelerometer UPDATE event never fires, tho isSupported returns true, when the flash app is running inside the android web browser. How can I make it work? this.accelerome

Solution 1:

You declared accelerometer as a local variable, so once it is out of scope it will no longer exist. Declaring the var as a class instance member ensures its existence until you no longer need it. http://forums.adobe.com/message/3363673#3363673

The fix was to declare the Accelerometer instance as a class member instead of a local variable.

Post a Comment for "Flash.sensors.accelerometer On Android Within Web Browser"