Lesson 18. Loading External Assets
One of Flash's greatest strengths is that it allows you to load all of a project's media assets dynamicallybitmaps, sounds, videos, even other moviesfrom external sources. As a result, a greater range of content can exist externally from the movie (such as on a Web server) and be loaded into the movie on an as-needed basis. This means that you can deliver more dynamic content than ever before because the content of your movie is not restricted to what's placed in it at the time it was authored.In this lesson, we'll show you how the various types of media are loaded into a running movie, as well as how to work with and manipulate this external content once it has been loaded. As a result, you'll be able to greatly expand the content used in your own projects without significantly increasing the time it takes for your user to download and view it.
Loading external video clips is one of the powerful capabilities of Flash that we'll explore in this lesson.
WHAT YOU WILL LEARNIn this lesson, you will:Create a scalable slideshow presentation using external assetsCreate a rotating Flash banner system by loading external movies into a levelControl a movie from its own timeline and another timelineDynamically load MP3s into a project while it playsScript an MP3 playback progress barLoad MP3 files based on XML files and display ID3 tag data from the MP3sLoad an external video into a Media component and trigger actionsAPPROXIMATE TIMEThis lesson takes approximately two hours to complete.LESSON filesMedia Files:Lesson18/Media/background0.swfLesson18/Media/background1.swfLesson18/Media/background2.swfLesson18/Media/banner0.swfLesson18/Media/banner1.swfLesson18/Media/banner2.swfLesson18/Media/image0.jpgLesson18/Media/image1.jpgLesson18/Media/image2.jpgLesson18/Media/music0.mp3Lesson18/Media/music1.mp3Lesson18/Media/music2.mp3Lesson18/Media/Agent00.mp3Lesson18/Media/HardCope.mp3Lesson18/Media/LoungeJam.mp3Lesson18/Media/Prosonica.mp3Lesson18/Media/playlist.xmlLesson18/Media/bluezone.flvLesson18/Media/cue0.jpgLesson18/Media/cue1.jpgLesson18/Media/cue2.jpgLesson18/Media/cue3.jpgLesson18/Media/cue4.jpgLesson18/Media/cue5.jpgLesson18/Media/cue6.jpgStarting Files:Lesson18/Assets/virtualaquarium1.flaLesson18/Assets/mp3Player1.flaLesson18/Assets/video1.flaCompleted Projects:virtualaquarium8.flamp3Player2.flavideo2.fla
• Table of ContentsMacromedia® Flash MX 2004 ActionScript: Training from the SourceBy
Derek Franklin, Jobe Makar Publisher: Peachpit PressPub Date: November 19, 2003ISBN: 0-321-21343-2Pages: 636
Sure, you can use Flash MX 2004 without being a master programmer, but as any Flash developer worth his or her salt will tell you, you''''re not tapping all of its power unless you''''re taking advantage of its scripting language "ActionScript 2.0" which offers a more robust programming model and better object-oriented programming support than ever before. Here to take the fear factor out of learning it are Flash veterans and best-selling authors Derek Franklin and Jobe Makar, who demonstrate that scripting is an instinctual process you already know by translating real-life activities into ActionScript scripts. In these pages, you''''ll find methodologies and techniques for building over 40 real-life Flash ActionScript projects, including sample games, applications, Web sites, and more. New in this edition are coverage of ActionScript 2.0, Web services, Components, Printing, Video, and more. On the companion CD, you''''ll find all the project files and images you need to complete each project.