Flash scene with a film loading

xiaoxiao2021-04-04  237

Flash scene with a film loading

Loading has many practices. Here I gave you a simple example, the basic principle you can understand after understanding. Flashmx provides a very good object to design loading. First of all, you have to understand that making loading is needed to fill a new scene in your movie (INSERT - SCENE), then activate the scene panel with Shift F2, put the newly inserted scene to the top position . Start in this scenario: 1. Use the rectangle tool to draw a fill bar with a border, only select the fill portion, F8 converted into MC, and a name "Bar 'in the properties panel, remember to set the registration point when converting For the left center, (Loading strikes from left to right) .2. New layer, drag out a text domain with dynamic text box, set the corresponding font size, font and color, color to be compared with the background color. Then The instance name named "Percent" in the attribute bar is used to display the percentage of downloads. Put this text box below "Bar" or right square .3.ctrl f8 Create an empty MC without design Anything, returns a scene. Place this empty MC in the library in any position in the scene, name "Kongzhi" in the properties panel. Click Right-click on the script: OnClipEvent (Enterframe) {xiazaik = _root .getbytesloaded () / 1024; zongk = _root.getibytestotal () / 1024; dlpercent = int (xiazaik / zongk * 100); _ root.percent.text = dlpercent "%"; _ root.bar._xscale = DLPERCENT;} 4. Fill a layer in the scene, insert the keyframe in the second frame, other layers insert a normal frame in the second frame. Add scripts in this empty key frame: if (Kongzhi.dlpercent == 100) {nextscene (); Else {gotoandPlay (1);} 5.ok. But when you test, because it is in the local machine test, you must select View - show streaming after Ctrl Enter, you can see your loading animation.

转载请注明原文地址:https://www.9cbs.com/read-131942.html

New Post(0)