Flashadvisor logo
:: Desktop Shortcut
:: Flash Help
Advices from Experts

 Submit Here! Link to Us Newsletter Tell a Friend

      Add Tutorial |

 

Advertise here

Create Speaking Characters for your website and Flash movies. 15 Day Free Trial




PHP Scripts

 

 Home > Tutorials  > ActionScript

How to Convert PowerPoint to Flash Manually

Author: William Peterson | Email
Website : www.sameshow.com/powerpoint-to-flash.html


Advertisement

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 will 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.

fscommand("fullscreen","true")-;


To make sure the Stage resizes correctly specify the scaleMode.

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.

stop();


You will need to include some functions that will be used frequently to navigate the presentation.


function gotoNextSlide():Void {
if (_currentframe < _totalframes) {
gotoAndStop(_currentframe + 1);
} else {
quit();
}

}

function gotoPreviousSlide():Void {
gotoAndStop(_currentframe - 1);

}

function gotoHome():Void {
gotoAndStop(1);

}

function gotoEnd():Void {
if (_currentframe < _totalframes) {
gotoAndStop(_totalframes - 1);
}

}

function quit():Void {
fscommand("quit");

}


Next, we need to handle all the keyboard and mouse events so that the user can navigate through the slides. We will do this by creating a new listener object.


var myListener:Object = new Object();

myListener.onKeyDown = myOnKeyDown;
myListener.onKeyUp = myOnKeyUp;
Key.addListener(myListener);

myListener.onMouseUp = myOnMouseUp;
Mouse.addListener(myListener);-Here are the listener functions.

function myOnKeyDown():Void {
if (Key.isDown(Key.DOWN) || Key.isDown(Key.PGDN)) {
gotoNextSlide();
} else if (Key.isDown(Key.UP) || Key.isDown(Key.PGUP)) {
gotoPreviousSlide();
} else if (Key.isDown(Key.END)) {
gotoEnd();
} else if (Key.isDown(Key.HOME)) {
gotoHome();
}

}

function myOnKeyUp():Void {
if (Key.getCode() == 27) {
quit();
}

}

function myOnMouseUp():Void {
gotoNextSlide();

}


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 (http://www.sameshow.com/powerpoint-to-flash.html) to output originals with animatinos. After all, these conversion tools can help you convert PowerPoint to Flash automatically without too much coding.

| 1 |

Rate This Tutorial :
We hope the information helped you. If you have any questions or comments, please don't hesitate to post them on the Forums section
Submit your Tutorial at Click Here
  

Home | About Us | Contact Us | Feedback | Advertise with us

Best viewed in 800x600 resolution with Internet Explorer.

Site Developed and Hosted by  ethicsolutions.com
All rights reserved with FlashAdvisor

Flash is a registered trademark of Adobe Systems, Inc.

9 users online