-
This is not advisable to go into a long speech, so try to keep it simple.
Select the Window-Align command, open the Align & Info & Warp panel, and click Align Left and Align Up so that the component center point is in the upper left corner of the cabinet.
Back in the main scene, click on the Text tool in the toolbox, draw an empty text box with an appropriate percentage size in the center of the stage, and on the Properties panel, set the type to "Dynamic Text" and the variable to "p" to represent the percentage progress.
Replace the component bar"Drag and drop it onto the stage, open the Properties panel, set the instance name to "bar", then use the box tool, set the stroke color to xx color (this is the outer color of the **bar) fill color to none, and draw a box outside the bar.
Extend the keyframe to the third frame on the Timeline panel.
Create another layer, name AS, insert three blank keyframes on this layer, select the first one, open the Actions panel, and copy these down-
bar._xscale=0;
b=;On the as layer, hit the action panel with the second blank keyframe
a=this._getbytesloaded();
pp=int(a/b)*100:
bar._xscale=pp;
p=pp+“%"
In the third blank keyframe -
if(pp<100)
gotoandplay(2);
elseplay();
You can just use the auto-apply format yourself.
Take the animation you did to Scene 2 or do it in Scene 2 and put it on the action in the last frame of your animation.
gotoandplay(1);
That's it. I'm so tired of typing, so let's give it some points!!
-
What do you think of this? I think I'll tell you how to do it in detail.
-
I'll take the addition of a progress bar to an existing work as an example. (The software is using flash 8).
Tutorial content: 1. Add scene 2 and set it as the main scene:
1. Run the flash software, open your original work file, and click the menu "Insert" - "Scene". Figure 1
2. Click the menu "Window" - "Other Panels" - "Scene". Figure 2
3. Jump out of the interface, Figure 3
Hold down "Scene 2" with the left mouse button and drag it up to the top of "Scene 1", Figure 4
and close the interface. 2. Create a "Progress Bar" movie clip:
1. Click the menu "Insert" - "New Component". Figure 5
2. Fill in the name "Progress Bar" and type "Video Clip" in the pop-up interface, and click the "OK" button. Figure 6
3. Set two layers on the stage of the progress bar. Figure 7
4. On the first frame of layer 1, use the rectangle tool to draw a rectangle, 300 pixels wide and 20 pixels high, with the border set to green and the fill color to red. The left edge aligns with the center point of the stage. FIGURE 8
5. Use the arrow tool to select the red part of the fill color block in the middle, press Ctrl+X to cut.
6. Go to the first frame of layer 2 and click the menu ""-Paste to Current Position".
8. Layer 2 creates a shape tween. FIGURE 10
9. The 100th frame of layer 1 is inserted. 3. Assembling:
1. Back to scene 2, there are also two layers, the first layer is the progress bar layer, and the second layer is the as** layer.
2. On the first frame of the first layer, drag the progress bar movie clip from the library into the scene, put it in the appropriate position, and write the instance name "progress bar" on the properties panel"。FIGURE 11
3. Select the text tool "A", add a dynamic text box at a suitable position on the stage, and set the text type on the properties panel: dynamic text; Font: arial; Variable name: jd; Single; The font size and color are customized. FIGURE 12
3. In the first frame of the second layer, add as**, select the first frame in the properties panel "Frame Label", and write it"bo", Figure 13
Then open the action panel, copy the ** below and paste. FIGURE 14
total = _;
loaded = _;
load = int(loaded/total*100);
loadtxt = "loading"+load+"%";
The progress bar jumps to the corresponding frame by percentage at the same time;
root.Progress bar. gotoandstop(load);
4. In the second frame of the second layer, insert a blank keyframe, add as**, if (loaded == total) else {
gotoandplay("bo");
5. Finally, change the background color, feel free.
Fourth, the test: you can see the whole process.
1. There is no need to install a progress bar for small files.
2. The progress bar can also be made into various effects, but the bytes occupied by the progress bar should not be too large, otherwise the cart before the horse.
Depending on your requirements for air conditioning, foreign ones include Mitsubishi, Daikin, etc., and domestic ones are dominated by Gree and Midea. According to 300 yuan per square, it is about 15 million.
My personality is very the same as you, really, I also worked as a salesman for two months, I didn't do it, I learned computers, but I didn't learn home, and then I taught myself a lot of computers, and now I'm doing my old job, hehe, do what you like to do, don't force yourself, it's boring to live like that,
The classic sentence of what money is empty and scattered is as follows: >>>More
I advise you not to count the five elements, the eight characters and the crape myrtle horoscope. I have a lot of old books in my house, the kind of vertical type. I've seen some, and it's very clear that those who leak the secret of heaven are vulnerable to God's curse! >>>More
Hehe, the current relationship is relatively innocent, there can be many ways, writing a letter is a good idea, it won't be as embarrassing as saying it in person, you can also ask her to go to the movies on the weekend, and then send her home after watching the movie, when the atmosphere is very good, it is better to ask her if she is willing to be your girlfriend than to ask her suddenly. It is a good thing to boldly confess your love, I wish you success...