How to make a flash preloader with Flash 8?
Computers & Technology → Multimedia
- Author Moyea Software
- Published January 12, 2009
- Word count 1,244
If you run a video website, you must notice that sometime, especially when the web speed is slow, your clients will not be able to watch the video immediately. They will go. It really brought very bad impact to your website and your wallet. How can we resolve this problem? A preloader can help you. When people can not watch video immediately, they will be attracted by the beautiful preloader.
Well, how to make a swf preloader for your web video? This article will show you the perfect way to add and create preloaders to your flash videos for online delivery. And you will also find the way to create one by yourself. I suggest you to use Flash Video MX Pro. This software provides many wonderful preloaders, which you can use directly. (More free flash preloaders can be found: http://www.video-to-flash.com/christmas2008.html )
Next, I will teach you how to use Flash Video MX Pro to create flash video with preloader first.
Step1. Download and launch the software. After you opened it you can see this interface.
Step2. Import the video you wish to convert.
By click "open" button, you can see this dialog box.
Choose the video and click "Open".
Step3. After you imported the video, click next, and you can see the setting interface, the preloader will appear in your video only when you choose Generate Flash with the option Progressive download from a web server or Embed the video in SWF and play in timeline in this interface.
Step4. Go on "Next", when you see this interface, congratulations you can add swf preloder to your video now.
Choose one you favorite, and click "Next"
Step5. Create flash video.
Just press "Start" and after a few minutes you can see your flash video, of cause with preloder.
Some in us always like to challenge, next I tell you how to make a simple preloader with Flash 8.
Step1. Creating the "loading bar" and the "dynamic text field".
Open a new Flash document. Call the first layer loading bar.
Select the Rectangle tool (R) and block the Outline color. Draw a 150 by 5 pixel rectangle and center it on stage. I suggest that you adjust these values by entering them in the appropriate fields in the Properties panel. You’ll find the width (W) and height (H) input fields in the bottom left part of the aforementioned panel.
Select the rectangle by clicking on it with the Selection tool (V). Select Modify > Convert to Symbol to make a movie clip out of your rectangle. In the dialog window that appears, select Movie clip as type and call it blue loading bar. In the registration portion of the Convert to Symbol window, click the middle left rectangle (see it on the image below).
With your newly made movie clip still selected on stage, go to the left side of the Properties panel below the scene and assign it an Instance name. Call it loadingBar.
Lock this layer. Make a new one and call it bytes info.
Select the Text tool (T). Go to the Properties panel once again, and select the following properties for your text field:
-
Set the type to "Dynamic text".
-
Select "_sans" as font type (it should be on top of the fonts list).
-
Select the "central alignment" for your text field.
-
Select the "Use device fonts" option.
-
Leave the "selectable text" option turned off.
Click and drag out a text field just below the loading bar. Hit Esc to exit text editing mode.
Give this field an Instance name, otherwise you won’t be able to tell it what to display via "ActionScript" commands. Call it bytesDisplay. Lock this layer.
Step2. Creating the text field with percentage information that is going to be animated.
Make a new layer and call it arrow indicator.
Draw a small triangle just above the loading bar’s left edge.
If you don’t know how to create a precise little triangle like the one in the image above, I’ll show you quickly how to do it here:
-
Draw a borderless square with the Rectangle tool (R) by holding Shift while clicking and dragging your mouse.
-
Rotate the square by 45 degrees with the Free Transform tool (Q).
-
Select the Line tool (L) and draw a line from the square’s left to its right point. To do this exactly from edge to edge, be sure to have the Snap to objects option turned on (the small magnet icon at the bottom of the Tools panel).
-
By using the Selection tool (V), select the upper portion of the rectangle and hit Delete.
-
Select the line and erase it too.
With the triangle still selected, press F8 (or select Modify > Convert to Symbol) to convert it to a movie clip. Call it moving percentage field and make sure that the registration point is on its left middle side.
Double-click on the newly made movie clip on stage to enter inside it. Call this layer arrow. Select the triangle drawing and move it so that its bottom point is centrally aligned below the movie clip’s registration point. Lock this layer.
Make a new layer above it and call it text field.
Select the Text tool (T), click and drag to create a small text field just above the triangle. Leave all the properties for the dynamic text field the same as they were for the first one you created. Just make a small adjustment: set the alignment for the text field to left. Give this text field an Instance name: call it percentDisplay, and lock this layer. Click on the Scene 1 link above the layers to return to the main scene.
Use the arrow keys to adjust the position of the moving percentage field movie clip. Place it where the "blue triangle" points at the "loading bar’s" left edge.
Finally, give this movie clip an Instance name: call it percentClip. Lock this layer.
Step3. Place in the site content.
Make a new layer on top of all the existing ones and call it content.
Right-click frame 5 of this layer and select Insert "Keyframe" from the menu.
You should place some content here now. The best thing to simulate content is an image. Select File > Import > Import to Stage. Select the picture you want to import and click Open. The picture will appear on your main scene.
Step4. Make a new layer and call it actions.
Select the first keyframe of this layer by clicking on it.
Press F9 (or select Window > Actions) to open the Actions panel. Enter the following ActionScript code inside it:
stop();
loadingBar._xscale = 1;
var loadingCall:Number = setInterval(preloadSite, 50);
function preloadSite():Void {
var siteLoaded:Number = _root.getBytesLoaded();
var siteTotal:Number = _root.getBytesTotal();
var percentage:Number = Math.round(siteLoaded/siteTotal*100);
loadingBar._xscale = percentage;
percentClip.percentDisplay.text = percentage + "%";
percentClip._x = loadingBar._x + loadingBar._width;
bytesDisplay.text = "loaded " + siteLoaded + " of " + siteTotal + " bytes";
if (siteLoaded >= siteTotal) {
clearInterval(loadingCall);
gotoAndStop(5);
}
}
Step5. Finally, test your movie by selecting Control > Test Movie. The site will load instantly, of course, because it loads straight from your hard disk and not from some web server. To see the preloader in action, execute the nest step.
Still in test movie mode, select View > Download Settings > 56K. This will set the simulated speed of download to a standard (slow) 56K modem.
And then, select View > Simulate Download. You will now see the preloader at work!
Full guide:
http://www.video-to-flash.com/make-preloader/
Moyea Software is professional and pioneering multimedia technologies provider, who is specialized in processing and broadcasting media over the Internet as well as in the daily life.
http://www.video-to-flash.com/
Article source: https://articlebiz.comRate article
Article comments
There are no posted comments.
Related articles
- The Ultimate Guide to Motion Graphics in Manchester: Elevate Your Brand with Stunning Visuals
- The Best Free Online Video Editing Tools for PC
- 5 Ways | How to Convert AVI to MP4 on Windows, Mac, and Online?
- How to Make an Animated GIF of Your Screen?
- How to Download Videos from Pornhub, Erome, xnxx, etc. for Offline Viewing?
- Interactive Video: Revolutionizing Education One Click at a Time
- What is a Video Codec and How to Fix a Codec Error?
- Youtube To MP3 Converter -- Free
- Why buy stock footage on mediaCastpro? Here are the benefits.
- Explanation of how to improve the quality of low-resolution videos
- Unveiling the Artistry of Photography: A Journey Through the Lens
- Alexa's Use of Artificial Intelligence: A Case Study
- High-Quality Ash Wood Textures Pack. Elevate Your Design Projects.
- Embracing Multidisciplinary Excellence: The Jack of all Trades
- Why Reading on an eBook Reader Is a Great Idea: Unlocking a New Chapter of Reading Experience
- Social Media Marketing
- Playstation 5 Accessories Bundle - God Of War Ragnarok Bundle
- 17 Ways to Get More Followers on Instagram (2022)
- INNOVATION AT SPEED: “FASHION SHOWS DURING AND POST-PANDEMIC”
- How YouTube Pays You: What You Need to Know About Monetizing Your Channel
- How To Get Paid for Youtube: The Best Ways to Earn Money with YouTube
- The Benefits of Using Facebook, Twitter, and YouTube
- Should You Make a YouTube Video? 4 Questions to Ask Yourself First
- Finding a great pair of earphones
- What is a Drone and What are its Advantages?
- The 7 Best Video Editors for Creating Social Media Posts
- The Importance of Social Media Marketing in Medical Business
- How Should You Optimize Images for Website?
- Play Your Music and Movies at Full Resolution with JRiver Media Center
- Technology News