Thursday, July 22, 2010

Flash simulation of the old movie playback



Childhood memories are always good, remember when watching outdoor movie in the playground scene it? Today I teach you how to use Flash to achieve the effect of the old movie player.

Production Tips:

In fact, the effect of the old films, mainly to seize the old movie playing, a little shake, and by dark features in Flash using actionscript code to move the picture position to simulate the jitter occur, while the change can be achieved with transparency .

1. Set the scene size is 500 * 360 pixels, black background. Frame rate to 15fps.

2. Pressing the shortcut keys Ctrl + F8 to open the "Create a new component" panel, create a "film" of the video clip components. Then edit the scene in the Press shortcut keys Ctrl + R to import a picture (old films best picture). Note that the upper left corner of the picture so that the center vertex and scenes overlap, shown in Figure 1. Pressing the shortcut keys Ctrl + I can open the "Information" panel supporting settings, shown in Figure 2. This is to allow components into the main scene, the programming is more convenient to determine their coordinates.

3. Back to the main scene, pressing the shortcut keys Ctrl + L open the "Library" panel, the "library" in the "film" drag and drop components into the scene 1. Click the Scene 1 of "movie" elements, shortcut keys Ctrl + K to open "Align" panel, click the "relative to stage" button, then click the "Horizontal Alignment" and "Vertical Alignment" two buttons, make the film "components" in the center within the scene.

4. Click the Scene 1 of "movie" elements, according to F9 key to open the "Action" panel, and "expert mode" type the following code:

/ / Make "movie" elements of the position, transparency changes
onClipEvent (enterFrame) (
this._x = Math.random () * 2 + 90;
this._y = Math.random () * 2 + 60;
this._alpha = Math.random () * 30 + 50;
)

Code, onClipEvent event handler is used to trigger a movie clip instance to the definition of the action; This is used to reference an object or movie clip instance; _x, _y property can change the location of components, _alpha property to change the transparency of components; Math.random generate a number between 0 and 1.

In this case the production method and simple code very little, you can effortlessly to learn, the key is we need to carefully observe and think. The following are results presentation and source files download address.







Recommended links:



Anti-Virus Tools Catalogs



Top Religion



psp 6000



Convert dvd to wmv



How to Rip AC3 Maker



Unicom IPhone Pricing And The New Packages Have All Been Questioned



avi To 3gp



Wu Jinglian, old Men!



YUVsoft Super Resolution Demo



FrontPage production of special Effects button



SuperAVConverter



Photoshop retouching images (8) to adjust brightness



convert flv to avi



Compare Covert Surveillance



Play THE right to recover the main impact of CCTV IPTV



No comments:

Post a Comment