More Related Stories

Adobe After Effects 7.0 Professio... Edition for Windows Animate your ideas and create compelling motion gr...
From: $623 to $1,251
ADOBE LA FULL AFTER EFFECTS PB 7 MAC RETAIL ENG 1U Animate your ideas.
From: $635 to $1,251
Adobe AFTER EFFECTS STD 7 WIN UPG ENG STD-STD 1U The industry standard for motion graphics and visu...
From: $176 to $246
Tutorial: Page (2) of 2 - 09/21/06 Email this story to a friend. email article Print this page (Article printing at MyDmn.com).print page
From After Effects to Flash and Back, Part 2 Making Flash-ready sequences, well, Flash-readier

OK, so there's the what and the how, but what about the why? Why make those particular choices? Well, embedding the clip in the SWF file will make for a clean loop (FLV files are notorious for stuttering the end of a loop when played back as an external file). Since this is supposed to be a seamless background, playback stuttering would go into the "bad" category. We chose Movie Clip as the symbol type to save the step of having to create it ourselves in the Library. Likewise, we had the wizard place an instance on the Stage and expand the timeline so we wouldn't have to. Little time savers here and there are always welcome. Anyway, if your import went as well as mine did, Flash placed the background on the stage and put two new items in the Library (fig. 12).


Figure 12

The bg.flv Video clip is an embedded instance, which is placed inside the bg.flv Movie Clip (which I've renamed bg_mc for consistency's sake). And since a Movie Clip will automatically loop around, no further action is necessary here. Let's move on to the last of our After Effects-generated content: the video clip. We're going to use the same process as before with the background FLV file, but we'll take a slightly different path to make the clip play as an external file. Sort of like a Choose-Your-Own-Adventure book, but different. Anyway, on the main Timeline, click once in frame 1 of the clip layer, and then select (again) File:Import:Import Video from the menu bar to start the FLV import wizard. Here's yet another sequence of images to help walk you through (figs. 13-15):


Figure 13: Again, adjust the path as necessary to get to where you put your version of the clip.flv file.


Figure 14: No embedding this time; we're going to let Flash play this thing from where it already lives.


Figure 15: Flash 8 ships with some real purty skins, none of which we need for this project.

What we've done is to use the wizard to once again save a few steps. After you go through these steps, you'll find an instance of the FLVPlayback component placed on the Stage for you (fig. 16), already sized correctly and pointing to the right file on your drive. Of course, we could have manually dragged the component out of the Components Panel and entered in everything into the Parameters panel ourselves, but as I've said many times before, saving effort is always something that interests me.


Figure 16

Anyway, there is one tweak we need to make in the Parameters panel—set autoPlay to false (fig. 17), as we're going to make a button that starts the clip in just a minute. In the same panel, name the clip "clip" (inventive, huh?) and set the coordinates to x:10 and y:18 (also shown in Figure 17).


Figure 17

OK, so we're down to one last thing: the button to set everything in motion. We're going to create one of Flash's infamous invisi-buttons, which is one of the more essential things to learn how to do if you're new to Flash. Fortunately, it's easy to do. Head to the menu bar and select Insert:New Symbol, this time entering "invisi_btn" as the name and Button as the type. Hit OK, and you'll be taken to the funky timeline that is the Flash button symbol. In Layer 1, click in the frame labeled "Hit" and create a keyframe (F6). Then, using the square tool, draw out a 450x150 pixel white square. Once you're done, your screen should look something like Figure 18:


Figure 18

Invisi-button, activate! Head back up to the main Timeline, click on frame 1 of the button layer, and drag an instance of the invisi_btn button onto the Stage, which should end up with a lovely teal tint (fig. 19):


Figure 19

Pay the color change no mind; it's just Flash's way of alerting you to the presence of an invisi-button, as it doesn't have anything but a hit state and would be kind of invisible otherwise (hence the name). Anyway, click once on the invisi_btn, head to the Actions panel, and enter in the following ActionScript:

on (release) {
    clip.play();
    text_mc.gotoAndPlay(1);
}

Even non-ActionScripters should be able to figure this out. Put another way:

when I click the mouse {
    clip, you start playing;
    and text, you go to the beginning and start playing too
}

That's it—publish your movie and behold the results (yet again):


Figure 20 (once last time, click to play)

Now, if you like, you can get freaky like I did and add some of Flash 8's live drop shadows from the Filters menu to the text and video clips. The text is straightforward enough, but to add a filter to an instance of the FLVPlayback component, you'll have to make a new Symbol out of it and apply the filter to the symbol. Name the instance, and make sure you adjust your button script accordingly (e.g., clipcontainer_mc.clip.play(); instead of just clip.play();.)

Well, we've reached the end of this part of our journey. Not to get too Mr. Rogers on you, but what have we learned? Well, hopefully, the takeaway from all of this is that yes, you can produce Flash-ready content using After Effects, as we did in part 1. You can then import and use this content in a number of ways, as we've seen here in part 2. But wait—there's more! There will (eventually, of course) be a part 3, where we'll head back to After Effects and change gears a bit by speaking to the more ActionScript-inclined amongst us. Until then, boys and girls!


If you liked this article click here to recommend it.    Page: Prev Page 1 2

Kevin Schmitt has been waist-deep in the ever-changing muck that is digital media production since the days when grunge was actually popular. When not living the customary high-roller lifestyle that goes hand-in-hand with being a DMN contributor, he doubles as an award-winning freelance animator, artist and multimedia producer in the livestock-laden wilderness of central Virginia's Shenandoah Valley. Whether you're looking for help on your next project or are just in the mood for a good rant, feel free to either drop him an email or visit his Web site to check out his article archives and portfolio. He's ready to believe you!
Related Sites: Creative Mac ,   Digital Producer ,   Digital Webcast ,   Digital Animators ,   Animation Artist ,   Siggraph News ,   Audio Video Producer ,   Corporate Media News ,   Digital Game Developer ,   Digital Media Designer ,   Oceania ,   MacAnimationPro ,   MacDesignPro ,   Test Site ,   After Effects ,   Webcast (BN) ,   Flash
Related Newsletter: DMN Newsletter ,   CMN Newsletter ,   Pixels Newsletter ,   Levels Newsletter ,   Mac Alert Newsletter ,   Renders ,   Streamline Newsletter ,   Digital Media Net ,   DMNForums ,   Tutorial Finder
To Comment on This Article, Click HERE

Most Recent Reader Comments:
  • Re: From After Effects to Flash and Back, Part 2 by Stevearly at Sep. 26, 2006 1:41 pm gmt
  • From After Effects to Flash and Back, Part 2 by DMN Editorial at Sep. 25, 2006 9:18 pm gmt

    Click Here To Read All Posts
    Must be Registered to Respond (Free Registration!!!, CLICK HERE)
  • 19 inch lcd display
    DoubleSight Displays DS-1900 19 IN. TFT LCD Monitor (Rated by 10 users)
    LCD's and CRT's sizes are measured differently, do you know the difference? Not sure of the difference between "flat panel" and "flat screen"?
    Price Range $669View Details Related Items

    TechForLess: $668.70
    ViewSonic VP930B 19-inch LCD Monitor (Rated by 2 users)
    PRODUCT DIME
    Price Range $274 to $530View Details Related Items

    TigerDirect.com: $299.99
    MWAVE.COM: $292.95
    Toshiba: $389.99
    surveillance-video PELCO 19 INCH MULTIMODE FLAT PANEL LCD MONITOR WITH PIP PMCL419 (Rated by 0 users)
    The 400 Series high performance LCD monitors, designed specifically for the security industry, provide high quality display of video or computer signals via multiple inputs.
    Price Range $925View Details Related Items

    Surveillance : $925.00
    Multisync 90GX 19inch TFT LCD Display (Rated by 0 users)
    Multisync 90GX 19inch TFT LCD Display
    Price Range $340View Details Related Items

    MacMall: $339.99
    surveillance-video PELCO 300 SERIES 19 INCH FLAT PANEL LCD MONITOR PMCL319 WITH MULTIMODE FUNCTIONAL... (Rated by 0 users)
    The 300 Series LCD monitors, designed specifically for the security industry, provide high resolution display of computer signals and/or composite video.
    Price Range $725View Details Related Items

    Surveillance : $725.00
    Aopen F2915-8S 19-inch LCD Multimedia Monitor, Black (Rated by 0 users)
    19-inch TFT LCD Display with Stylish Design to Meet Your Life Features: Bring High Resolution with Optimum SXGA 1280 x 1024 Built-In 2W speakers that can produce high quality ...
    Price Range $184 to $248View Details Related Items

    MacMall: $198.99
    TheNerds.net: $206.73
    Super Warehouse: $209.99
    HOT THREADS on DMN Forums
    Page Title can't change using Dreamweaver Template Pages?!? (1) • by blueStupa on the on the Web Design forum Mac vs PC color difference??? (1) • by Mark Griesbauer on the on the Adobe Photoshop forum Poser 7 announced  • by Brian on the on the Poser forum **Professionally Trained Composer**  • by Mike Watts on the on the Demo Reels forum [FORUM NEWS] ONE DAY SALES (OCTOBER 23-27) LIMITED  • by Ko on the on the Plugin Central forum Adobe Photoshop Style Layer Tutorial  • by videxpertise on the on the Adobe Photoshop forum Object lable badly formatted  • by awilks on the on the Adobe Illustrator forum
    Marketplace
    Laptop LCD Screen
    Replacement laptop screens for your high resolution graphics needs! We carry high resolution LCD screens for all brands including, Apple, Compaq, Dell, IBM, HP, Sony, Gateway,...
    Free CorelDraw Graphics Suite X3
    Get the CorelDraw Graphics Suite X3 for free when you complete sponsor's survey!
    Free DigiMemo Digital Notepad
    Digitally capture and store handwritten notes for free! survey required
    Get your Designs noticed
    Stand out from the crowd. Place your design onto a professional looking CD or DVD. Primera offers CD-DVD Printers and disc duplicators to help you get your design out there.
    Laptop Screen
    We stock laptop LCD screens for all brands of notebooks including Dell, IBM, Compaq, Sony, Toshiba, Gateway, HP and more. We have thousands of laptop screens to fulfill your L...
    Free Creative Xmod X-Fi Module
    Enjoy surround sound on any stereo/speaker system/headphones using this free module! survey required
    Buy a Link Now!
    © Copyright, 2006 Digital Media Online, All Rights Reserved