New Features in ActionScript / Dynamic Flash
Subtitles of the Movie
Another thing we want to look at is the use of dynamic Flash. You'll hear alot about dynamic Flash and the applications you can create by making your Flash movies dynamic. So what does dynamic mean? Well, in the past in order to display several items in Flash you had to have them as part of your library. You could then delay the time that you show them, say a picture or a sound, but they had to all be a part of your Flash movie. Flash MX introduces a new sequence, which we'll take a look at here. This is a sample application known as "load images.swf" and the idea is each of these images as I click the right mouse button, each of these images are being loaded dynamically, or another way of looking at it is loaded at run time, rather than having to be a part of the library in the Flash movie. There are two types of objects you can load; MP3 files and JPEG images. These two enhancements alone are making for some pretty interesting content on the web. You can see how this slide show, if you were to look at its file size, is actually very small because it doesn't contain all these images. If we look at the size of the swf file we can see that it's only 4k to load all those images. How is that possible? Well it is possible because none of those graphic files we were looking at are embedded in the swf file. They are all loaded dynamically at run time. Obviously the implications of this are tremendous. One of the example projects we'll look at later in this lesson is a banner, which loads a different graphic image per each day of the month. So you can load this at the top of your web page and then, depending on the day that your web visitor comes to your site, they'll get a different graphic image in the banner area of your web page. That's just one of the many things we are going to take a look at since using this technology known in Flash MX as dynamic graphic loading. We'll also look at another aspect later using the dynamic capabilities of Flash MX when we create our component MP3 player. By using the component MP3 player we will be able to play from a play list selection of MP3 files on the hard drive and none of those files will need to be preloaded into our Flash movie. Of course the savings in file size will be tremendous again because none of those files are embedded, they're all external; therefore using the capabilities of dynamic Flash. Let's take a look now at another aspect that is new to Flash MX and that is "named anchors." This new feature allows you to connect your Flash movie to the users back and forward button in their browser. When used properly you can aid your sites usability by providing this capability which has been elusive in most Flash sites up to this point. We'll be exploring named anchors in a section later in this tutorial. But for now, you can notice the little anchor icon in the key frame and the words "homepage." I happen to give this frame, in this instance, the name "homepage" and then I simply clicked "named anchor." When I export this movie, as you'll see in the published settings, I would go to the template Flash with named anchors. After exporting this, HTML code will be generated which will embed these named anchors in the HTML code thereby allowing us to move back and forth through the Flash movie using the browser back and forward buttons. 3:55.0] thereby allowing us to move back and forth through the Flash movie using the browser back and forward buttons.
Tutorial Information
| Course: | Macromedia Flash MX Intermediate Developer |
| Author: | Eric Hake |
| SKU: | 33424 |
| ISBN: | 1932072292 |
| Release Date: | 2003-04-15 |
| Duration: | 7 hrs / 93 lessons |
| Captions: | For Online University members only |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |
VTC Sign up & Benefits
- Unlimited Access
- 81,350 Video Tutorials (20,800 free)
- Video Available as Flash or QuickTime
- Over 782 Courses
- $30 for One Month Access
- Multi-User Discounts Available
United States 