New Video Tutorial on Advanced After Effects and Flash

I just finished uploading a new tutorial to gotoAndLearn() which shows you how to create some slick animated buttons using After Effects and Flash. This technique is used quite often by Red Interactive to create their UFC sites. It involves creating a rollover animation in After Effects and then exporting as an FLV file for use in Flash. There are millions of possibilities for cool effects when using this workflow.

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.

Enjoy the tutorial!
Lee


Commentary

  1. John Wooten says:

    Sweet! I’ve been looking for a good tutorial using AE in this way.

    Thanks!

  2. vamapaull says:

    Great tutorial!! ;)

  3. Jonah says:

    Awesome tutorial Lee! I’m digging the content you chose to work with also. ;)

    I’m torn, I have Anderson to win by submission in Rd. 3, but I love both fighters. The problem is I’m not sure if that’s even possible… I’m unsure if he has the power to take-down Dan, hold him down and submit him. I don’t think he can knock-out Dan either, this will be a bad match-up for Anderson! UFC needs a dominant champion already, it’s been too long, so I hope it’s Anderson. Anderson’s first real test in UFC MW!

  4. lee says:

    I think Silva will knock him out in the 2nd round. Dan went 3 rounds with Minatauro and didn’t get submitted so I doubt Silva can do it. Anderson is just unstoppable right now. It should be an awesome fight though no matter what happens!

  5. Und3r says:

    big thx!!!!!

  6. Und3r says:

    Hi! Can you make a tutors about turn pages? thx )

  7. Jase says:

    Thanks again, Lee! I’ve only just started using After Effects so your timing’s spot on! :-)

  8. Felipe says:

    Nice tutorial. I´ve learned After Effects some time ago, but was not using it for sites in flash but after this tutorial I was inspired of using it again. thanks

  9. Thanks, Lee.

    Out of curiosity, is using Tweener to animate backwards through a timeline animation more efficient than using an onEnterFrame and subtracting frames to move backwards?

  10. lee says:

    Well it is definitely easier. You can accomplish anything using EnterFrame events but the whole point of Tweener and other animation libraries is to make it easier to do with less code. It would get tricky if you wanted to use something besides linear animation. You would have to know how to implement Penner’s easing equations yourself.

  11. ickydime says:

    Very cool. Its been awhile since I had tried After Effects in Flash. I had definitely not thought of using it with tweener. Thank you!

  12. Very easy, thnaks for this tutorial. I’ll use it the aeffects again and with the trapcode plug in is spectacular.

  13. manu says:

    hey lee, thanks a lot, very nice tutorial. I never knew how this kind of workflow is used, so thanks again! Great tutorial.

  14. Nick says:

    Remarkable! Great tut – really well put over.

    Btw, any news (confirm / deny?) on hardware acceleration in the next version of flash? :-)

  15. Andrew says:

    Something to add perhaps in another version is masking the edge of the video in AE with a vignette…You may be able to avoid blending modes in this manner, to increase performance…Great tutorial, thanks!

  16. lee says:

    I just updated the post with the link to the original blog post from Red. I couldn’t remember on whose blog I had seen it. Sorry Balind!

  17. Dave says:

    Great tutorial Lee – I always wondered what the big deal was about AE!

    Quick question – where did you get that wicked looking Leather wallpaper?

  18. richard says:

    Great Tutorial…

    What is the hit like on memory ? If flash is playing multiple FLV animations embedded in the swf, do things slow down a lot ???

    thanks, inspiring tutorial

  19. lee says:

    @richard – the honest answer is that I’m not sure. These types of things definitely should be used sparingly. But check out some of Red’s UFC sites to check it out in production.

  20. Jase says:

    Hi Lee,

    I followed your tutorial and on testing the movie, rolling over the button gave me the error:

    ## [Tweener] Error: The property ‘_frame’ doesn’t seem to be a normal object property of [object ticket_1] or a registered special property.

    With a bit of research, I managed to resolve this by importing and calling the init method on the DisplayShortcuts class:

    import caurina.transitions.*;
    import caurina.transitions.properties.*;
    DisplayShortcuts.init();
    butt.addEventListener(MouseEvent.ROLL_OVER, butt_ROLLOVER);
    .
    .

    Thanks again for another interesting tutorial.

  21. lee says:

    @Jase Hmmm maybe we are using different versions of Tweener.

  22. Jase says:

    @Lee Ah yes, you’re right. I was using the latest version from SVN (1.31.70), not the stable release (1.26.62). :D

  23. Rob says:

    Nice tutorial, you nailed one of the best uses of AE and Flash =)
    @Jase I also got the same error as you, thanks for posting the fix =)
    Keep up the ace work, might have to travel to London for the AIR tour =)

  24. Vyper says:

    I had no idea how powerful the AE-Flash combo could be. My eyes have definitely been opened – greate tutorial Lee!

  25. Ben says:

    Nice job, hope to see more like this.

  26. oliver_l1 says:

    Awesome Tutorial! Thank you.

  27. John says:

    Big time thanks for this tutorial!!!! AE & Flash just got alot more interesting to me!

  28. Demitri says:

    Absolutely great stuff! Thank you so much!

  29. copemon says:

    Hi Lee,
    I’m using After Effects CS 3 but i don’t have the “.flv” format in the export option. Between the DV Stream and FLC i don’t have a FLV option. Any idea why is that ?
    Thanks for this great tutorial.

  30. jfisher says:

    Great tutorial, learned a whole lot i’d never seen before along the way. thanks.

  31. flabbygums says:

    Lee, you’re the king of tutes.

    I was kind of expecting an error to be thrown because in Flash there is no “frame zero”.

    Tweener must have an (“if frame is less than 1, goto frame 1) somewhere in the class that helped you. Maybe this is related to the prior versions of Tweener throwing errors.

    Thanks!

  32. Cumhur says:

    Hi lee,
    great tutorial, thanks. I have a question. when i use 1 button (ticket button) in the site there is no problem, but than i add 1 more button, “1120: Access of undefined property butt.” error occures. What are the codes needed use 2 buttons at the same time.

    Thanks.

  33. Cumhur says:

    I solved the problem. I forget the butt2 in the codes. Thank you.

    import caurina.transitions .*;

    butt.addEventListener(MouseEvent.ROLL_OVER, butt_ROLLOVER);

    function butt_ROLLOVER(e:MouseEvent):void
    {
    Tweener.addTween(buton1, {_frame:20, time:0.7, transition:”Linear”});

    }

    butt.addEventListener(MouseEvent.ROLL_OUT, butt_ROLLOUT);

    function butt_ROLLOUT(e:MouseEvent):void
    {
    Tweener.addTween(buton1, {_frame:0, time:0.6, transition:”Linear”});

    }

    butt2.addEventListener(MouseEvent.ROLL_OVER, butt2_ROLLOVER);

    function butt2_ROLLOVER(e:MouseEvent):void
    {
    Tweener.addTween(buton2, {_frame:20, time:0.7, transition:”Linear”});

    }

    butt2.addEventListener(MouseEvent.ROLL_OUT, butt2_ROLLOUT);

    function butt2_ROLLOUT(e:MouseEvent):void
    {
    Tweener.addTween(buton2, {_frame:0, time:0.6, transition:”Linear”});

    }

  34. Raymon says:

    Hey,
    thanks for this great tutorial!
    But i’ve got the same problems as jase. I’ve tried many things but it won’t work.
    Got big problems with the button

    ## [Tweener] Error: The property ‘_frame’ doesn’t seem to be a normal object property of [object ticket_1] or a registered special property.

    But whatever i trie, i just can’t get it right. it’s frustrating.

    greetz
    ray

  35. Robert says:

    Thanks Lee, this tutorial was so great. I always liked to learn After Effects and I think I learned a lot with your tutorial.

  36. urska says:

    “Hi Lee,
    I’m using After Effects CS 3 but i don’t have the “.flv” format in the export option. Between the DV Stream and FLC i don’t have a FLV option. Any idea why is that?”

    hi. i’ve found this replies, looking for the solution of my problem. as you can guess i have the missing flv format option. does anyone know what to do? this has been bothering me a lot. so please, tell if you know and
    thanks a lot in advance.

    urska

  37. Joe Kromer says:

    Great tut.

    I see that this will only work if you Embed the video in SWF and play in time line. I was wondering if there is a way you can achieve this when loading the FLVs dynamically?

    Thanks.

  38. Kor says:

    Where can I get tweener 1.26.62 so I can make it work?

  39. Bret says:

    I’m getting that same error as Jase but can’t seem to shake it. I’m a front end designer and don’t know a lot about code can someone please help. the error is

    ## [Tweener] Error: The property ‘_frame’ doesn’t seem to be a normal object property of [object ticket_1] or a registered special property.

    Everything else works fine. Even on the downloaded fla file I get the same error so I know
    I didn’t jack up my code.

  40. Bret says:

    Here is my code just in case.

    import caurina.transitions.*;

    butt.addEventListener(MouseEvent.ROLL_OVER, butt_ROLLOVER);

    function butt_ROLLOVER(e:MouseEvent):void
    {
    Tweener.addTween(ticket, {_frame:18, time:0.3, transition:”linear”});
    var over:Over = new Over();
    over.play();
    }

    butt.addEventListener(MouseEvent.ROLL_OUT, butt_ROLLOUT);

    function butt_ROLLOUT(e:MouseEvent):void
    {
    Tweener.addTween(ticket, {_frame:0, time:0.5, transition:”linear”});
    }

  41. Bret says:

    I see that the 1.26.62 Tweener version works. Can someone help out on the fixe for the latest version Please?

  42. gerson says:

    Where can I download 1.26.62 Tweener version that works?

  43. gerson says:

    Found it… sorry!

  44. Burns says:

    For multiple buttons – Does any one see an issue with this code? I am trying to add 4 buttons and cant figure out with I am doing wrong- Thanks

    import caurina.transitions.*;
    import caurina.transitions.*;
    import caurina.transitions.properties.*;
    DisplayShortcuts.init();

    butt.addEventListener(MouseEvent.ROLL_OVER, butt_ROLLOVER);

    function butt_ROLLOVER(e:MouseEvent):void
    {
    Tweener.addTween(butt1, {_frame:30, time:0.7, transition:”Linear”});

    }

    butt.addEventListener(MouseEvent.ROLL_OUT, butt_ROLLOUT);

    function butt_ROLLOUT(e:MouseEvent):void
    {
    Tweener.addTween(butt1, {_frame:0, time:0.6, transition:”Linear”});

    }

    butt2.addEventListener(MouseEvent.ROLL_OVER, butt2_ROLLOVER);

    function butt2_ROLLOVER(e:MouseEvent):void
    {
    Tweener.addTween(net, {_frame:30, time:0.7, transition:”Linear”});

    }

    butt2.addEventListener(MouseEvent.ROLL_OUT, butt2_ROLLOUT);

    function butt2_ROLLOUT(e:MouseEvent):void
    {
    Tweener.addTween(net, {_frame:0, time:0.6, transition:”Linear”});

    }

  45. freddy says:

    Hey Lee,

    Fantastic tutorial!
    However whenever I add the actual function of the button getURL, I get an error and am stumped to where I should add that code. I am using:

    on (release) {
    getURL (“thewebsite”,”_blank”);
    }

    but I am always getting this:
    1087: Syntax error: extra characters found after end of program.

    Is there a more efficient way of getting this to work??

    Thanks

  46. octagono says:

    i hav this error

    ## [Tweener] Error: The property ‘_frame’ doesn’t seem to be a normal object property of [object Cuadro] or a registered special property.

    im using the last stable version of tweener ( tweener_1_31_74_as3 )

  47. VincentEscobar says:

    Hallo

    My Name is Vincent , im from Germany..

    Thx so much for this perfekt Tutorial , im still playing around with AE and its makes so much fun.Its a diffrent kind of working with Flash thats ofers so many new Way to desing a Page.

    I looking to foward to see more Videos for working wit AE and Flash
    Please make some more ……

    For the Error Code:

    ## [Tweener] Error: The property ‘_frame’ doesn’t seem to be a normal object property of [object Cuadro] or a registered special property.

    Its a simple Way to fix that …
    Just Download the stable Version 1.26.62
    You can download it here …

    http://code.google.com/p/tweener/downloads/detail?name=tweener_1_26_62_as3.zip&can=2&q=

    So thx again , and sry for my bad english

    Vince

  48. Dewald says:

    I did the tut but cant get past the exporting stage, im am very new as in 1 day new to aftereffects,

    I keep getting a probleme of not being able to export as flv.?
    Can anyone please help me?

  49. Craig Wall says:

    It looks like I’m about the fourth person in this thread to get this error.

    ## [Tweener] Error: The property ‘_frame’ doesn’t seem to be a normal object property of [object Cuadro] or a registered special property.

    Other than that the tut looks–and approach–looks very exciting.

  50. Matt says:

    For a fix to the “_frame” error see this thread:

    http://code.google.com/p/tweener/issues/detail?id=34

  51. daniel sm says:

    Hi lee

    I have copied the code exactly and im getting these errors
    function butt_ROLLOVER(e:MouseEvent):void
    function butt_ROLLOUT(e:MouseEvent):void
    any ideas?

  52. daniel sm says:

    sorry lee it also said

    class or interface “mouseevent”could not be loaded for both

  53. Tiago says:

    freddy,

    i got the same problem and now i figure it out.
    try this, it should work:

    function butt_CLICK (e:MouseEvent):void
    {
    var yourURL:URLRequest = new URLRequest(“yoursite”);
    navigateToURL(yourURL);
    }

    butt .addEventListener(MouseEvent.CLICK, butt_CLICK);

  1. [... I just finished uploading a new tutorial to gotoAndLearn() which shows you how to create some slick animated buttons using After Effects and Flash. This technique is used quite often ...]

  2. [... I just finished uploading a new tutorial to gotoAndLearn() which shows you how to create some slick animated buttons using After Effects and Flash. This technique is used quite often ...]

Leave a Comment