[Xerte] Another SWF problem in Xerte

Deborah Delin admin at strivney.com
Sat Jul 16 12:03:59 BST 2011


Hi,
You guys have been great in helping me solve my SWF/Xerte glitches.  Hope
you might know the answer to this one.

I have a little game where a figure is activated by the keyboard arrows
using the code below.  In Xerte, the figure only becomes reactive after one
clicks anywhere on the SWF.  Outside of Xerte it reacts as it should do.
 File size is 150 kb.

Many thanks for your help.

Deborah

onClipEvent(load){
speed = 7;
jspeed = 0;
jumping = false;
startY = this._y;
}
onClipEvent(enterFrame){
if(jumping){
this._y += jspeed;
jspeed++;
if(this._y > startY){
this._y = startY;
jumping=false;
}
}else if(Key.isDown(Key.SPACE)){
jumping = true;
jspeed=-20;
}
if(Key.isDown(Key.RIGHT)) this._x += speed;
if(Key.isDown(Key.LEFT)) this._x -= speed;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110716/9aa4ade4/attachment.html>


More information about the Xerte mailing list