Category Archives: code

Creating a Flash Game “Main Loop” Example

A very typical game programming approach is to have a main loop that executes once per frame.  After playing around for a few hours with Flash CS4, I figured out how to do it with flash+actionscript. 1. Get the Flash … Continue reading

Posted in code, flash, games | 4 Comments

Script: picture to powerpoint slide

ActivePresentation.Slides.Add(Index:=ActivePresentation.Slides.Count + 1, Layout:=ppLayoutText).Select ActiveWindow.Selection.SlideRange.Shapes.AddPicture(FileName:=”C:\filename.png”, _ LinkToFile:=msoFalse, SaveWithDocument:=msoTrue, _ Left:=0, Top:=0, Width:=720, Height:=540).Select Width 720 and height 540 make the pic fill the whole slide.

Posted in code | Tagged | Leave a comment