I've just had to make a short presentation, and I was going to do it in PowerPoint - certain things, like making your bullet points appear one after the other, are very quick to do in PowerPoint.
But positioning things, and making the exact transitions that you want, are very difficult. So I switched to Flash. I thought I'd publish it as an executable, so it would work on anything WIndows.
I laid out my 'slides' as frames on the root timeline, each with an animated clip that contained the transitions that would occur within a slide. I named each of these movie clips 'clp'. The first frame and the last frame appear in one go, so they didn't have a 'clp' movie clip on them.
The main timeline has to stop at the beginning, so I used stop(). And each of the 'clp's is set to play, with stop frames within it.
Making it go forward when you click on the screen:
You can make a transparent movieclip that covers the screen and give it a name, e.g 'fwd'.
On the frame (this is AS2 code):
fwd.OnRelease = function() {
_____if(_root.clp._currentframe < _root.clp._totalframes) {
___________root.clp.play();
_____}else{
___________root.nextFrame();
_____}
}
The if statement only returns true if the movieclip exists and it isn't on its last frame, so in that case it advances the animated slide, otherwise, it goes to the next slide on the root timeline.
If this was AS3, then Flash would get upset everytime the movieclip didn't exist.
I also made other clips to give a finer control of the going backwards and forwards of the presentation, using similar code.
Making it go to full screen:
On the first frame, on the root timeline, I used fscommand("fullscreen",true);
Making it respond to a clicker:
This was the cool bit. A clicker is a little hand held device, you plug the USB port into your laptop/whatever, and it has forward and back buttons that the powerpoint presentation responds to, and usually a laser pointer as well, so you can walk around the stage while you present.
The forward and back buttons are actually registering on the computer as PageUp and PageDown buttons.
To get your Flash executable to respond to these buttons:
On the first frame of the root timeline:
var keyListener:Object = new Object();
keyListener.onKeyUp = function() {
_____if(Key.getCode() == 34) {
__________fwd.onRelease();
_____}
}
Key.addListener(keyListener);
34 is the keycode for the page forward button, and the code above tells the executable to do whatever it is that the fwd button would normally do when it is clicked.
I was under the impression that when fullscreen, flash wouldn't accept keyboard events, but perhaps this doesn't apply to the page up etc type buttons.
No comments:
Post a Comment
Please enter your message here...