By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,781 Members | 1,134 Online
Bytes IT Community
Submit an Article
Got Smarts?
Share your bits of IT knowledge by writing an article on Bytes.

How to Convert PowerPoint to Flash Manually

P: 2
Converting PowerPoint to Flash would absolutely be a good choice to distribute your bulky PowerPoint presentations.

You can do the whole PowerPoint to Flash conversion manually or with professional applications.

First, you'll need to prepare the PowerPoint files. Make sure you are not using any complicated gradients or animations. These will be interpreted poorly when they are brought into Flash. Also, make sure there are no objects that fall outside the confines of the slide area. This will ensure that all the slides align correctly when they are imported to Flash. Now, save a copy of your presentation without any background images. You may want to also choose a contrasting background color to easily see the content of each slide. You all import the background images into Flash at a later time.

Second, choose File > Save As... from your PowerPoint document and save the presentation as a Windows Metafile (*.wmf). This will save your entire presentation as a sequence of files. WMF files keep all text.

Next, create a new Flash Document and resize the Stage to 720 x 540. Change the background color to black. Choose File > Import > Import to Stage... and import the first WMF file. When asked to import all of the images in the sequence, choose Yes. This will place each slide from your presentation onto a sequence of frames.

Then, create a new layer under the slides layer and import the images to use for your background. You'll probably need two images, one for title slides and one for the regular slides.

Now it's time for some manual labor. You'll need to go through every frame of the movie and delete the solid background shape from your slides layer. Once this is complete, you should see the content of each slide with the correct background image behind it.

Finally, add a frame to the end of your movie. Place some static text on that frame that says something like "End of slideshow, click to exit."

Alright, now it's time to move on to some ActionScript. Create a new layer for your actions. There are a few statements you'll need to include right away. First, you want this movie to play full screen so add an fscommand.

Expand|Select|Wrap|Line Numbers
  1. fscommand("fullscreen","true")-;
To make sure the Stage resizes correctly specify the scaleMode.

Expand|Select|Wrap|Line Numbers
  1. Stage.scaleMode = "exactFit";
Finally, you don't want the movie to begin playing through all the slides right away before the user starts clicking, so add a stop function.

Expand|Select|Wrap|Line Numbers
  1. stop(); 
You'll need to include some functions that will be used frequently to navigate the presentation.

Expand|Select|Wrap|Line Numbers
  1. function gotoNextSlide():Void {
  2.    if (_currentframe < _totalframes) {
  3.       gotoAndStop(_currentframe + 1);
  4.   } else {
  5.       quit();
  6.   }
  7.  
  8. }
  9.  
  10. function gotoPreviousSlide():Void {
  11.   gotoAndStop(_currentframe - 1);
  12.  
  13. }
  14.  
  15. function gotoHome():Void {
  16.   gotoAndStop(1);
  17.  
  18. }
  19.  
  20. function gotoEnd():Void {
  21.   if (_currentframe < _totalframes) {
  22.    gotoAndStop(_totalframes - 1);
  23.  }
  24.  
  25. }
  26.  
  27. function quit():Void {
  28.  fscommand("quit");
  29.  
  30. }
Next, we need to handle all the keyboard and mouse events so that the user can navigate through the slides. We'll do this by creating a new listener object.

Expand|Select|Wrap|Line Numbers
  1. var myListener:Object = new Object();
  2.  
  3. myListener.onKeyDown = myOnKeyDown;
  4. myListener.onKeyUp = myOnKeyUp;
  5. Key.addListener(myListener);
  6.  
  7. myListener.onMouseUp = myOnMouseUp;
  8. Mouse.addListener(myListener);-Here are the listener functions.
  9.  
  10. function myOnKeyDown():Void {
  11.   if (Key.isDown(Key.DOWN) || Key.isDown(Key.PGDN)) {
  12.    gotoNextSlide();
  13.   } else if (Key.isDown(Key.UP) || Key.isDown(Key.PGUP)) {
  14.    gotoPreviousSlide();
  15.   } else if (Key.isDown(Key.END)) {
  16.      gotoEnd();
  17.   } else if (Key.isDown(Key.HOME)) {
  18.      gotoHome();
  19.   }
  20.  
  21. }
  22.  
  23. function myOnKeyUp():Void {
  24.   if (Key.getCode() == 27) {
  25.      quit();
  26.   }
  27.  
  28. }
  29.  
  30. function myOnMouseUp():Void {
  31.   gotoNextSlide();
  32.  
  33. }
If the steps below is too complicated to you, you can try some PowerPoint to Flash converters. Some free office applications like OpenOffice (http://www.openoffice.org) offers the output as SWF file, but without animations and effects. Also you can try commercial converters such as Wondershare PPT2Flash to output originals with animatinos. After all, these conversion tools can help you convert PowerPoint to Flash automatically without too much coding.
Jan 2 '08 #1
Share this Article
Share on Google+
3 Comments


P: 1
how to create input text box dynamicaly then drag the text box.
Jan 25 '08 #2

P: 1
how to use the script for u r giving the script functions
Mar 22 '08 #3

P: 1
Hi aaronkuttima,

The giving script will be added in the Adobe Flash Professional. If you don't have Flash Professional, you couldn't do it. A better way is to use the powerpoint to flash converter. It will be easier and quicker.

Download it from: http://www.sameshow.com/download/pow...-download.html

Hope it helps!

Sabrina
Sep 12 '08 #4