Hi,

I currently have a small game working in flash where you use the keyboard to move the character left and right, this works fine. I have also converted it through swiffy to run tablets, ok fine.

The issue is that it is the left and right keyboard keys which are used to move the character, and these aren't present on the tablet. So either I need to make it think the keys have been pressed, or replace the key press code with something else, any suggestions?

Here's the code on the movie clip (note the 'Raggles frame 2 is just a frame where the character animates)

Many thanks
Matt

onClipEvent (load) {
speed = 5;
var crash:String = undefined;
}
onClipEvent (enterFrame) {
trace(crash);
if (Key.isDown(Key.LEFT) && crash == undefined) {
tellTarget ("/Raggles") {
gotoAndStop(2);
}
preXcor = _x;
_x -= speed;
_xscale = 100;
if (_x<265) {
_x = preXcor;
}
}
if (Key.isDown(Key.RIGHT) && crash == undefined) {
tellTarget ("/Raggles") {
gotoAndStop(2);
}
preXcor = _x;
_x += speed;
_xscale = 100;
tot = _x+this._width;
if (_x>860) {
_x = preXcor;
}
}
}