Create a buffer album with Flash MX 2004 textbook

Source: Internet
Author: User
Tags copy modify window

Effect Display:

Material File: Buffer album material. RAR

  The effect of an instance is a square-view of the photo, 45 photos are divided into 9 directions, Basket crystal ball has 9 buttons to control the location, each small photo click can be enlarged to view, enlarged after the photo interface with the previous one and the Next button, you can browse all the enlarged bitmap, Click the Reset button to return to the main scene square coordinates of the large photo.

After decompression with Flash to open the source files, there is a good deal of the unified size of the bitmap 45, a picture frame bitmap and has done a part of the simple components, the scene size has been set well.

  First, create components

1, the new film clip components, the name is called "MC" bar:

Add to 3 layers in the edit stage of the MC component, change the layer name, photo, picture frame, transparent button, the picture in the library 1, photo frame, transparent button components dragged into the corresponding layer of the first frame, change the size of 175*135 pixels and all center, then select the first frame of all layers, hold down the ALT key, Use the left mouse button to drag out 4, arrange the following figure:

Our goal is to do 9 groups of photos into 3 rows of 3 columns, a total of 45 photos, because the photo phalanx is too wide, in the MC scene may not be complete, we can first of the first group of photos of the MC dragged into the main scene, double-click the main scene of the MC, you can control the main scene to the Panorama to edit the photo phalanx. Below Please enter the master scene, the library of the MC components dragged into the main scene of the first frame, and change the layer named MC, all centered, and then double-click the scene of the MC components, which entered the MC components of the editing stage, the view to 25%, now our editing stage is not very big? OK, go ahead, select the first frame of all layers, hold down the ALT key, and use the left mouse button to hold the group (5 pictures) to the left and right to drag one, into a line of 3 groups, leaving a certain gap in the middle, the first frame selected all layers, hold down the ALT key, with the left mouse button to live this line of photos up and down each drag one, And adjust the gap, now become 3 Rows 3 columns, a total of 45 photos, close the frame and transparent button layer of the eyes and lock, swap pictures, because now our 45 pictures are the same one, we want to the 2nd to 45th picture one by one, method: Only select the first group of the second picture, in the attribute point Exchange, Select the second picture in the pop-up dialog box to swap. And so on, swap out all 45 photos. The order of Exchange was 5 in the first group--5 in the second group--the third group and 5 to the Nineth Group 5

2, in the transparent button layer; Open all layer eyes and lock, add the statement to the 45 transparent buttons:
The first button is

On (release) {
_root.gotoandplay ("P1");
}

Add the statement to the button in order, and the last button statement is

On (release) {
_root.gotoandplay ("P45");
}

After that, select the first frame of all layers again, point to modify the combination under the menu, open the Alignment panel, point left alignment, up alignment, arrange the following figure:

3. Add the As layer, add a layer to the transparent button layer, change the layer name as, and enter the statement on the first frame of the as layer:

X_vel = (xvel-_x) *0.2;
Y_vel = (yvel-_y) *0.2;setproperty ("", _x, Number (x_vel) +number (_x));
SetProperty ("", _y, Number (y_vel) +number (_y));

In the second, insert the blank key, and enter the statement on the second frame:

gotoAndPlay (1);
}

Production of MC Components finished

  Second, scene organization

1, layer arrangement, build 6 layers, a layer named MC (already have), the MC components are all centered, and an instance name a.
The second floor named Crystal Pictures, the library has a bitmap basket crystal ball dragged into the position in the fifth group of photos in the blank, three-layer named Halo Animation, the library of the Halo animation elements placed in the middle of the small crystal ball. The following figure:

Four layers named Crystal button, first to add a stop on the first frame (), the statement, the button in the library dragged into the scene, the size of the 25*25 pixel, just cover the middle of the small crystal ball, give the button temporarily to the following statement:

On (release) {
A.xvel =-506;
A.yvel =-228;
}

Copy and paste this button, each small crystal ball is covered with a button, a crystal ball corresponding to a position, the number and direction of each button statement corresponds. (At the back we change the appropriate number in the debug)

Five floors can be put into the name of the creator, the location of their own arrangements

Six layer name photo frame, insert blank keyframe on second frame, and drag into frame to change size to 550*400

Left-aligned, vertically centered, inserted into the General Zhen in the 46th.

2, operation steps and methods;

In the Crystal button layer, the second frame inserts the blank keyframe, drags in the picture one, puts in the photograph box position, the Gar Action statement stops (), from the library drags in the button gelleft, adjusts the size, rotates the button, lets the button arrow direction downward, puts in the scene's lower right corner. Enter the statement for this button:

On (release) {
NextFrame ();
}

Copy this button and paste it, rotate it 180 degrees, and place it in the upper-right corner of the scene. To modify the statement for this button to

On (release) {
Prevframe ();
}

Drag the button Gelrecord from the library, resize it, place it in the right middle of the scene, and enter the statement:

On (release) {
gotoAndPlay (1);
A.xvel = 30;
A.yvel = 56;
}

In this Zhen (or second) add the frame label "P1". Copy the second, paste to the third, copy two or three paste to the four, copy 第二、三、四、五 paste to the sixth Zhen, repeatedly pasted until 46 Zhen. So from the second to the 46th, there are pictures 1, three buttons. The statement, the sentence, and the binding label on the button. In the 46th, delete the downward button (the button in the lower right corner) delete the up button in the second chapter (the button in the upper right corner)

3, adjust the statement and Exchange pictures;

Or in the Crystal button layer, the second one on the picture does not exchange, from the beginning of the third, on each frame right click on the picture, choose to exchange pictures, in turn, the 2nd to 45th picture on the 3 to 46 frames, and 2 to 46 frame of the frame label, 2 frame corresponding hardwood label p1,3 frame corresponding to the frame label P2 ... 46 frame corresponding to hardwood label P45

Return to the first frame click on the MC component, remember at this time the MC x, Y coordinate value, (note that at this time the MC is in the global state), click the Crystal button in the middle of that button, open the Action panel, change the original x, Y values in the statement just remember that value, in the second selected scene of the MC components, and drag to the lower right corner to let the first group (upper right corner) of the five photos just in the middle of the main scene, remember at this time the MC x, Y coordinate value, click on the Crystal button in the upper left corner of the button, open the Action panel, change the original x, Y values in the statement is just remember the value, and so on, One by one corresponding to the modification of all 9 buttons on the statement in the X, y values, test the film to see 9 crystal button is not able to follow the directions to control the correct location of the MC display. After normal, we modify the X and Y values in the Gelrecord statement of the return button on the second to 46th chapter, according to the principle of returning the main screen, the X and Y values in the Gelrecord statement of the second to sixth are the X in the "upper left Corner" of the 9 crystal buttons, The Y value (that is, the first group), the X and Y values in the Gelrecord statement of the seventh to 11th, are the x and Y numbers in the statement in the "upper middle" button in the 9 crystal buttons (that is, the second group). The X and Y values in the Gelrecord statement of the 42nd to 46th are the X, Y value in the statement in the "lower right corner" of the 9 crystal buttons (that is, the Nineth group), and one by one corresponds to the x, Y values of the return button statement. Completed after the winner scene

Finally, the test disk, in the release settings, the JPEG quality to 60-70 can compress the photos appropriately, reduce the size of the SWF file.

Note: Everyone can put their own or the beauty of the family in advance to cut the size (size of 513*384), after the compression into a folder to save to your computer, in the library to select the attributes of the picture, with the import method, the original picture in the library one by one to replace their own photos, made a complete album, To your friends and family or your "fans" but if there is a violation of the portrait of things happen, I am totally dissatisfied with the responsibility Oh, hey!!!



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.