Skip to main content
Participant
March 23, 2008
Question

Need AS3 Code for "rotating menus"

  • March 23, 2008
  • 1 reply
  • 297 views
I'm keen to find code that will do subtly rotating menus such as at

http://shermanadvertising.com/

Where there is a slight 3D effect on rollover/out. Or like at

http://bigspaceship.com/

I'm not looking for a plugin -- but to understand how to do it. I know it has something to do with trigonometry, etc. But does one also need to use any kind of DisplacementMapFilter?

AS 3 code is what I need, as that's what I work in -- although if it's only a few lines of code, it doesn't matter.

And in general -- is there any place to look for this kind of cool nuts-and-bolts code -- advanced visual f/x, menu stuff. I can find basic stuff aplenty, and lots of libraries for sale, but not a lot of tutorials/info/tips on how to achieve neat bells/whistles on advanced sites.


Thanks!
This topic has been closed for replies.

1 reply

Participating Frequently
March 23, 2008
This is a very simple effect - the origional text is scaled, moved down and faded out and then a copy comes down on top of it.

There aren't very many sites that give cool looking effects - I always invent effects myself depending on the style of the site as do the big interactive agencies. There are some commonly used effects and sometimes people blog about them. There are two sites that I know of which have tutorials/code for random effects:

www.gotoandlearn.com
www.reflektions.com/miniml
Participant
March 23, 2008
Thanks. I saw some such suggestion -- but have been banging my head on it for an hour now (I'm doing moderate level OOP development in AS3, but this is sticking me -- how embarassing).

Do you have any sample code? A complete FLA with symbols would be of greatest help!

And I know that this has something to do with setting the transformation point to be at opposite ends of the transformed MC -- but wherever I set the transformation point, it scales in the same direction. I must be missing the obvious -- and would appreciate any help.
Participating Frequently
March 24, 2008
This effect is probably best done on the timeline, but I have quickly put together some code and some symbols - is this the sort of thing you are looking for?

http://www.jamesthompsondigital.com/developers/bin/adobe_forum_flas/rollover_test.fla

This requires the Tweener library for the AS Tweens:

http://code.google.com/p/tweener/