Yeah, that was what I was using. But it seems to detect the current rotation of the phone, not its movement. Here, I use etRawAccelX() to offset a sprite:
SetErrorMode(2)
SetWindowTitle( "Mobile Flash" )
SetWindowSize(getDeviceWidth(),getDeviceHeight(),0)
SetWindowAllowResize( 0 )
SetVirtualResolution(100,100*(getDeviceWidth()/getDeviceHeight()) )
SetOrientationAllowed(1,0,0,0)
SetVSync (1)
SetScissor(0,0,0,0)
UseNewDefaultFonts(1)
picIID as integer
picIID = loadImage("bg.jpg")
picSID as integer
picSID = createSprite(picIID)
setSpriteSize(picSID, 100.0,100.0)
do
input_shakeMobile (picSID)
Sync()
loop
function input_shakeMobile (picSID as integer)
if GetAccelerometerExists ()
Print("X: "+STR(GetRawAccelX()))
Print("Y: "+STR(GetRawAccelY()))
Print("Z: "+STR(GetRawAccelZ()))
SetSpritePosition( picSID, getSpriteX(picSID)+GetRawAccelX(), getSpriteY(picSID) )
else
print ("Error: No Accelerometer found.")
endif
endfunction