Showing posts with label Flash. Show all posts
Showing posts with label Flash. Show all posts

Sunday, June 28, 2009

Flash SWFs Slide Show in AS 3.0


Playing above is a set of “Car Driving” Animations that my students made.

Unfortunately there is sometimes a glitch when the slide show plays through the first time. As you may see above, it sometimes plays "one and a bit" of the movie, then does a wobbly jump to the next movie. This glitch does not occur when the Flash slide show is ran locally on a stand alone computer, and it stops occurring when the slides go through for their second and third times etc.

The first time through, this Blog page has to download the movies from the internet, and this probably causes the delay glitch. However, second time through, the browser is probably getting the images from the temp files on the user's hard drive, and so faster load speed, and no delay glitches.
(If I ever find out how to remove the glitch, I will go back and modify this blog page. Maybe I don't have my Browser buffering set up properly ?).

The main reason I needed to make a slide show was to be able to present some student work at an open day and/or school assembly. And running stand alone on my laptop, it works just fine with never a jumpy glitch. :)

In fact, I had been wondering for quite a while how to make a set of individual Flash SWF files into an automated slideshow.

The answer to these ponderings was found at the “Flash and Math” website, in their “External Clips in Flash CS3” tutorial. This tutorial goes through step-by-step, how to create a FLA project that uses Action Script 3.0 code that runs several SWF files one after each other.

The resulting SWF provides a looping slide show of our SWF files.

The component SWF files that are in the Slide Show, need to be ActionScript 3.0 SWF files that play in a continuous loop, and do not themselves contain any Actionscript.

The tutorial for making the Slide Show is in two parts, at these Web addresses:

http://www.flashandmath.com/intermediate/externalclips/ext_clip1.html

http://www.flashandmath.com/intermediate/externalclips/ext_clip2.html

(There are also some further Parts 3 and 4 tutorials, but these are on how to control FLV video files using Actionscript, and not about SWF files.)

The Parts 1 and 2 web pages also have downloadable finished “FLA” files.

So if you just need to animate some SWF files, (and don’t have time to learn the ActionScript code), then download their finished FLA file, and rename your SWF files to clip0.swf, clip1.swf, and clip2.swf. Then make sure these files are located in the same directory as the downloaded FLA file.

The “Car Driving” animations that the students made, were developed by following an excellent set of instructions by Denise Etheridge, located at:
http://www.baycongroup.com/flash/01_flash_5_tutorial.htm

The PDF document below, gives full instructions and details about setting up a Flash Slide Show of SWF files. It also includes how to put the end product onto the web in a blog page.




If you would like to have your own copy of this PDF, then simply click the save disk icon button on the PDF viewer, and you should be able to save it to your own hard disk.

Alternatively, you can view or save the PDF by clicking the link below:
(Click the Browser's Back Button to return to this Blog).



Enjoy,
Passy

Sunday, May 31, 2009

Inserting a Flash SWF into a Blogger Post


Maybe you are wondering exactly how the above Flash SWF animation file was embedded into this blog post.

Well it was done by editing the HTML of the post, to have an embedded flash object contained in it. This was done by typing in the following html:


(Click the above image to see it full size and read the text. )

The big potential drawback is that you need to have your swf file on a website somewhere that you can make a link to from within your blog html. My "beauty_beast" swf file is on an old unused website I have at:
http://www.passyworld.com/.

If you do not have a website to use, you might be able to make a free one at somewhere like: http://sites.google.com/,
http://geocities.yahoo.com/http://www.spaces.live.com/, or http://www.justfree.com/
Possibly you can then upload an swf file to the freesite, and then link to it from within a blog.

If anyone tries out a free site and loads up an swf for linkage, let me know if it works out ok.
I will also place it on my list of things to do sometime in 2009.

Enjoy,
Passy

The Wonders of OpenOffice.org


Open Office is great if you have Powerpoint Presentations, and you want to convert them into Flash SWF's that can be added to a web page.

Open Office is free and can be downloaded from here:
Click Here for Open Office Download Page

To convert a Powerpoint presentation, click on "Presentation" on the Open Office welcome screen. It is then a matter of browsing to your powerpoint and opening it up in Open Office :



This should bring the PPT into the presentation editor. To make the Flash SWF, all we have to do is do File > Export > (name of our file) and then change the "file format" output type from the default .xpm to Flash .swf, simply by clicking the drop down list of format types.

We will then have a SWF file produced like this one here:
(Click on the current slide below to advance to next slide).




The only drawback is that in the Flash version, we do not have all the slide transition effects of the original PowerPoint.

If you would like to download a copy of the above PowerPoint presentation, (in MS PPT 2003 format) then click the link below:
View the above "Fireworks" Presentation in PPT

If you would like to download a copy of the above Powerpoint presentation, (in Adobe PDF format) then click the link below:
View the PowerPoint Presentation as a PDF

If you are wondering how we inserted the SWF flash file into a blog; well that sounds like a good idea for my next post.



Enjoy,
Passy