Incorporating After Effects Video into Your Flash Website - How & Why
Balind on 23 Nov 2007 | Tips & Advice

Animate in After Effects, export to FLV with an alpha channel, Actionscript playback in Flash with a tweening class.



UFC 80 Rapid Fire created by Red Interactive Agency

As with all my tips and advice I’m assuming your at least an intermediate designer, your client wants maximum impact and the target audience has reasonable connections.

AE has the visual intuitiveness of using a timeline and keyframes to animate, combined with the power of Plug-ins.
- Use AE for transitions and button rollovers then render them as an FLV with an alpha channel.
- Once you’re happy with your animation, import the FLV into the timeline and control it’s playback using the “_frame” property of your preferred tweening prototype. I use Tweener and it makes me happy. You get twice the use out of the FLV because you can then play it backward. You could even play to a specific point in the FLV, so if you wanted your button rollOut animation to look different than your rollOver, you could create one FLV animation of the rollOver and rollOut, when the user mouses over the button you play the animation to a mid-point, then when they rollOut you animate to the end automatically moving the playhead back to frame 1 using Tweeners “onComplete” function.

Why use After Effects animation instead of doing it all in Flash?
- 3d Layers. AE has 3D layers that allow you to manipulate graphics along the Z (depth) axis. This opens up a whole new range of animation possibilities.
- True Motion Blur. In AE you can create a true motion blur that follows a graphic to whatever angle, position or rotation it animates to. More realistic.
- Image Distortion. In AE you can manipulate images in a way that’s not possible in Flash. You can control warping, lighting and masking effects to the pixel.
- Using footage as masks. You can import live action video, play with the contrast and use it to reveal graphics. In UFC 78 Validation we used footage of ink flowing into water to unmask the fighters and content area.
- Incorporating 3d. If you’ve been following my articles you know that I feel 3d is an asset that should be in every designers arsenal. AE runs side-by-side with any 3d modeling program.
- Plug-ins. Plug-ins are what make After Effects so special, with them you can create broadcast quality bitmap effects that aren’t traditionally seen on the web. Fantastic example from a site done by a friend of mine here at Red, UFC 71, click on “the story” and watch how the website basically… explodes.

Why FLV instead of PNG sequence?
- Sometimes PNGs are more appropriate, but with an FLV you can set the compression of the animation to match it’s intended use. Usually the last rendered frame of an FLV is much clearer than the previous frames in the sequence. You might want to use PNGs for a button rollover and an FLV for a page build.

The only downside with using AE for a beginner is, you have to experiment. Very rarely will you jump in and just nail the look you want right away. Using Plug-ins can be even more tedious because there’s so many to choose from and each can have dozens of different settings to tinker with. If you’re searching for an effect that you only know you’ll like once-you-see-it, it’s not uncommon to spend an entire day playing, only to be no closer to your goal.
Time behind the wheel is the only answer to this. Unfortunately your resident AE specialist can’t just sit down with you for 15 minutes and show you the ins and outs. It’s the kind of thing you just have to discover for yourself.

Rishi on 23 Nov 2007 at 4:18 pm #
Hey Balind, Thanks for these great tips! I was wondering, can you mayb give a tutorial on one of you AE things. Its very hard just to start out of the nothing and do it in AE. Thanks
Balind on 23 Nov 2007 at 6:41 pm #
I don’t know Rishi, that seems like a lot of effort when there’s already so many great tutorials out there for both After Effects and Flash.
Try these resources:
lynda.com
goToAndLearn.com
Thanks for reading. Good luck.
Rishi on 24 Nov 2007 at 5:14 am #
Thanks for those 2 links Balind. The effect you used on the preloader on DY site and the menu btns on Machete Music were great. I love that effect, just dont know how to get there. Same goes for the content background on the DY site, which is incredilby hybrid as if its really something which is unfolding like a map. I have tried to use the Tweener class, which is very usefull exept the fact that one has to write up alot of code and tweak alot to get the right and smooth effect. How do you measure the places of the mc’s?? If i may ask. Thanks
Balind on 24 Nov 2007 at 10:47 am #
The effect on DY preloader and Machete icons is the same cycore Plug-in called CCLens. You simply apply it and adjust the settings.
The build of the DY content plate is straight up keyframe animation in AE, no Plug-Ins. Rotating, scaling and unmaking really fast and with a lot of easing.
I simply move MCs to where I want them to be, check the x and y position, click undo, then enter the positions in the AS panel.
If using Tweener is too complicated I suggest you stick with timeline animation within movieclips then use Tweener to control interactivity, that’s where it’s most powerful.
Rishi on 25 Nov 2007 at 3:43 am #
Thanks, i never knew the AE plugins were that strong, im a beginner with AE, so im doing alot of trying at the moment.
As far as Tweener, i have figured out the syntax and trying to make little things first and then move on to a bigger complicate thing. Thanks for the tip tho, i didnt know how to give them a proper x and y position.
For the UFC content plate, its a bit like this i think, so i have that one to try yet.
http://www.gomediazine.com/tutorials/animating-spray-paint-and-stencil-effect-in-after-effects/
Hopefully after alot of trying with Tweener i can manage and make a The FWA worth site, EP style.
Thanks! Will show you when i have made something.
Rishi on 29 Nov 2007 at 6:06 am #
Hey Balind, i have a question, what is the best way to import flv files.Because they have to be preloaded somehow. How do you cope with that?
Balind on 29 Nov 2007 at 12:06 pm #
If the FLV is an effect like a transition or button rollover, you want to embed it onto the time-line, that way you can control it’s playback with tweener.
Andrew Wendling on 30 Nov 2007 at 12:25 pm #
AE integration with Flash is where its at…thanks for the pointers, B!
Rishi on 03 Dec 2007 at 4:32 am #
Hey Balind, ive managed to redo the cc lens effect u used. I wanted to know what the best way is to export it. I tried a little logo on these settings for export:
On2 VP6
Encode Alpha Channel
Quality : Low
Max Data Rate : 150
It was 170 kb. Which is pretty big for a 200×200 logo i think.
Andrew on 13 Dec 2007 at 4:21 pm #
While FLVs are great, keep in mind that PNG sequences allow every single frame to be optimized, rather than overall compression. Sometimes this level of compression is needed, particularly when you need to end on a very detailed image that does not look compressed. PNG Sequences also allow the user to skip or add frames in if flash is having playback issues.
Rishi on 14 Dec 2007 at 5:20 am #
I think you can also use an FLV with an PNG to end with. I have just tested the sizes of both FLV and PNG sequences. PNG sequences takes far more bytes. And with Tweener you can use the FrameTo syntax to playback the FLV, it goes faster i think.
YAPP on 19 Dec 2007 at 5:11 pm #
Great tips brother. I know a little After Effects, and I’m definetely going to be experimenting more with it because I completely agree with you - it can add so much to a website and can add nice effects things Flash simply cannot do. I love the simple After Effects you did for the last two UFC sites…well done man.
This is a little off topic, but I’ve bookmarked your blog. I think you do great work, and I find that you and I are very much alike when it comes to many aspects of life and work. Congratulations landing the Art Director position at RED, that is awesome. As a matter of fact, I met up with Brian Ingram and Jeremy in Salt Lake this past November. I had high intentions of joinin up with the team there, but the timing just didn’t work out.
Anyways, I look forward to more entries buddy…and I’ll also be anticipating future UFC sites. I’ll be visiting daily.
Take care my man,
Jason
Balind on 19 Dec 2007 at 11:03 pm #
Right on.
Good timing on the comment dude, UFC 80 mini-site just launched tonight and it’s chock full of AE.
Rishi on 20 Dec 2007 at 4:18 am #
OMG! THAT IS MASSIVEEEEE!
i love it:D great work balind!
harris on 06 Feb 2008 at 1:41 am #
wow, man, you’re a god!!!
Rishi on 15 Feb 2008 at 6:41 am #
Hey balind, i have a question, what is the best aligner class to use? I have used a few different ones but they seem to act a bit weird or have a way to complicated syntax.
Thanks
The Flash Blog » New Video Tutorial on Advanced After Effects and Flash on 19 Feb 2008 at 4:14 pm #
[...] Update: I forgot to give credit to the designer at Red who blogged about this technique. It was Balind Sieber and here is his post describing the technique. [...]
Alvin on 24 Feb 2008 at 8:45 am #
Great tips about Flash and After Effects, bookmarked and keep up the good work.
“If you’re searching for an effect that you only know you’ll like once-you-see-it, it’s not uncommon to spend an entire day playing, only to be no closer to your goal.”
This made my day, thanks!
efCUkey on 26 Feb 2008 at 6:30 am #
Glad to found this blog, really inspiring works you have!
It’s not mentioned here yet, for AE i’ve learnt almost everything from videocopilot.net (http://www.videocopilot.net/tutorials.html). Hope it will help for anybody doesn’t know AE much YET:)
Moderator on 31 Mar 2008 at 7:48 pm #
Thanks for the interesting and informative site. That
Jmm on 04 Apr 2008 at 10:39 pm #
Hey Balind,
I’m having problems with an After Effects animation on a site I’m working on. I used the same resolution as the intro on the UFC 82 site: 1280 x 720. I’m preloading the FLV fully before it plays. It’s even shorter than the UFC intro but on slower computers the playback is very choppy. I’m using an embedded video component.
http://joemontanino.com/staging/jamesYeramianRev2/
Jmm on 04 Apr 2008 at 11:39 pm #
I read this article from Adobe and playing with the settings in the Flash Video Encoder solved the problem.
http://www.adobe.com/designcenter/dialogbox/encode_video.html
Elwyn on 07 Apr 2008 at 9:11 am #
Great Point, Excellent Post, Great Blog, Cool Info
Admin on 10 Apr 2008 at 7:01 pm #
Greetings Very good web site. I loved it. Found invaluable information. Just what I was looking for
Regards and best wishes
I am on 19 Apr 2008 at 2:00 am #
The site
Houghton on 20 Apr 2008 at 8:16 am #
Good work. Continue write.
Miraclestudios -- web design company on 11 Jun 2008 at 2:46 am #
Take a glimpse at our award winning web design : http://www.miraclestudios.in
Christian Kragh on 25 Jul 2008 at 1:05 pm #
Hey Balind. Yeah, I saw Lee’s tutorial on this method and he linked to your blog, that’s actually how I think I found it. It was a really good tutorial and I got so excited to create when I read / saw these tips for incorporating AE in Flash, but unfortunately I don’t have AE…. yet!
Thanks for sharing.
Christian
christian on 22 Aug 2008 at 6:27 pm #
Oi guys
I whole heartedly love the layout of interactivehug.com. Looks good, keep it up!
anyways..
Im a very “pure” christian and I guess I have a few questions on my mind..
I’ve been thinking a lot about dating.. but im not sure where to go with that.
My coworkers have been telling me christian dating is the way to go.. so I’ve done a little research on Christian Singles+Travel and found some stuff on google
Would be awesome to listen to your input.
christian on 25 Aug 2008 at 9:56 am #
First off let me say that i really like your site interactivehug.com a lot
now.. back on topic lol
I cant say that i agree with what you typed up… care to clear things up for me?