I've got a 'powerpoint style' slideshow built in Flash CS5, AS3, using the basic template (ie as on frame 1 root to advance frames on cursor keys). All works perfectly until I get to a MC which has the following script (snippets):
There are a number of these on the MC timeline to advance to different frames in sequence. All works perfectly, except that when it gets to the last frame. I press the cursor right to advance to the next root slide and it works. However this slide hangs... whatever the content. I deleted the AS on this MC and all works fine so it is definitely a conflict between the script above and the template frame control script:
if(evt.keyCode == 37) // LEFT
else if (evt.keyCode == 39 || evt.keyCode == 32) // RIGHT OR SPACE
Any ideas. PS If I wait about a minute, it starts working again (ie the frames advance as normal).
thanks in advance
It is not clear what you mean when you say "I press the cursor right to advance to the next root slide". See if refocusing the stage helps. In the root frame after the mc's frame try adding this code and see if it helps...
stage.focus = this;
It worked! You beauty Ned... I've been banging my head on this for days
- taking it apart, rebuilding etc to no avail.
The kindness of strangers at Christmas... thanks so much and hope that
you have a great christmas and a happy new year (or as we say it here in
Wales - Nadolig Llawen a Blwyddyn Newydd Dda.
ho ho ho!
You're welcome - Nadolig Llawen a Blwyddyn Newydd Dda