Tags: TweenLite

AS3 FishEye Menu Downloadable Class + TweenLite Example

I made the mistake of looking over some of my past blogs.  My god the code I unleashed from this FishEye Menu Example post, how sloppy was that??!  Ah.. late nite coding.. gotta love it.   At the end of Jan, code hero Jack @ GreenSock released a hot new version of his TweenMax/Lite Tweening masterpiece.  Employing a new ‘plugin’ system for some of the options, it has made things smaller, faster, and more efficient than before.  It’s pretty slick and you should check it out. So, in honor of his update (more to keep up with said update) I created a FishEye Menu Reusable Class that can be downloaded here @ Google Code.  Keep in mind this is rather in its rough draft “beta” stage… as in, if it breaks your code and formats your harddrive and causes a separation with your significant other… well… thats “beta testing” for you!  It’s pretty solid from the testing I’ve done, but I’m interested in getting feedback and definitely in hearing of any errors you might receive.   Thats the most exciting thing about releasing code for me; finding out all the ways someone is trying to use my code that I didn’t pre-plan for.  So with that in mind, download the new FishEye Menu class, play around with it, and let me know how it works for you.  There is a second file there with the FLA and a Main class file that calls the FishEyeMenu class.   I’ve also got another AS3 pair of Classes that I’ll be posting soon… a Waypoint & WaypointList Class for use in AS3 game development.  Should be interesting.   Check out the Wiki for info on How to use the FishEyeMenu Class.

Read More…

AS3 TweenMax-imumLove

So I’ve been working pretty hard on what started as a TowerDefense game for a tutorial here.  It has since become more complex, less tutorialtastic, and awesome.  … sort of.  I’m happy with where it’s going. Now that I’ve stroked my ego, let me stroke a few more. First off I have to say one of the single-most priceless pieces of code ever is TweenMax.  I know I seem to mention them in every blogpost these days.  When I buy programming books, or browse thru Adobe AS3 Live-Docs , I’m reading to solve a problem.  My brains don’t encyclopedia-ize all of the things I come across.  I don’t need to keep them in my memory, that’s why they’re written elsewhere… in APIs and documentation and stuff that I don’t care about.  …Until I need something.

Read More…

Fisheye Menu Using AS3 and TweenLite

A friend of mine that enjoys bitching until I help her with whatever popped into her head that moment messages me tonight.  “Hey for my site [that you’ll make for me for free because i’m a girl and your friend] I want a menu system like that one I showed you [which you’re supposed to magically remember out of all the sites you’ve seen on the whole internet in your life].” After she re-sent me the link, a beautiful site called ilovedust I took a look at the slick little fish-eye style menu and said, “Yeah that’s Animation, I do code.  Not pretty stuff like that.” After 5 minutes of receiving complaining message (but mostly once my game was finished that I was playing at Kongregate, I actually thought about what was happening in that menu, and after about 20 minutes of coding, had a workable menu.  I thought I’d post the code here and make a little tutorial out of it. I love TweenLite.  And TweenMax.  And pretty much everything at GreenSock.  Once you learn the class, it makes everything so easy.  For those that are here who are AS2 coders… a) Upgrade!  and b) They also have AS2 versions of all of their code.  There are a number of other Tween libraries to choose from. Some perform better than others.  But TweenLite was the first for me that ‘made sense’ in my budding AS3 days, which still continue. This is a quick little example of making a 5 menu-item menu that does stuff when you mouse-over.  You could probably think of a million ways to optimize this code; putting the menu items in a loop to initialize and things like that.  I’m just going to lay it out, and you can make your own better.

Read More…