AS3 Circular Group94 Style Flash Menu

I’ve received quite a few requests to update my circular group94 style menu to AS3 (I’m not really sure why I’m still calling it a “Group94 menu”, but it’s a tribute to them that this style of scrolling navigation is often referred to as a “group94 menu” and not an “offset scrolling menu” or something of that nature).

Anyway, I have been thinking for some time that I should revisit this script and build a more complete version, where horizontal, vertical or circular are simply parameters for the menu, but for now, this is both an update and a massive enhancement of the AS2 G94 circular menu.

If you play with the demo, you’ll notice I’ve added some new features, such as the ability to easily change (at runtime of desired) aspects of the menu like the inner radius, item spacing, visible items and much more.

The other big enhancement is that the CircularMenu class actually overrides the addChild, addChildAt, setChildIndex, removeChild (etc) methods, so if you treat it as a regular DisplayObjectContainer and add children to it, these items will be treated as menu items and automatically scroll -cool! This also means that you can easily change an items index, or insert and remove items dynamically, all using the standard DisplayObjectContainer API. The benefit of this is that you can use any DisplayObject as a menu item; Bitmaps, Sprites and Movieclips, so there is no limit to what you can put into the menu – you can even mix it up and add custom classes or library items.

There are also some easy methods for scrolling the menu. For example:

// Will scroll the menu to item 4
myCircleMenu.currentIndex = 4;

// Similar to above, scrolls the menu to a given index
myCircleMenu.scrollToIndex(  10  );

// Scrolls the menu to any given child DisplayObject
myCircleMenu.scrollToItem(  someDisplayObject  );

// Scrolls the menu to the next available item
myCircleMenu.next();

// Scrolls the menu to the previous item
myCircleMenu.prev();

Additionally, there are getters and setters for the properties I mentioned earlier, such as innerRadius, itemSpacing, visibleItems etc, which will dynamically tween the menu to whatever you set one of these properties to.

Download: Group94 Style Circular Menu

Enjoy!

Posted on 06 Nov 2008
60 Comments
5 Trackbacks

Meta

AS3 G94 Circular Menu was posted on November 6th 2008 in the category Code / Actionscript 3.0, Open Source and tagged; , , , , , , .

You can Leave a comment.

Twitter <follow>

March 22nd 2010 - 9:58am

A rare combination of cute and profound: http://yfrog.com/0kxx7rj (via http://is.gd/aSFNP) #ffffound

Discussion

65 Responses to AS3 G94 Circular Menu

1 ... 4 5 6

Leave a Reply

Pingbacks / Trackbacks

  1. 1 year ago G94 Circular Menu

    [...] Comments AS3 G94 Circular Menu 27% similar AS3 version of the Circular Group94 menu [...]

  2. 1 year ago   Free Flash Menus & Animations From SoulWire by Make Money Online

    [...] AS3 Circular Group94 Style Scrolling Menu [...]

  3. 1 year ago Top Gossips » Blog Archive » Free Flash Menus & Animations From SoulWire

    [...] AS3 Circular Group94 Style Scrolling Menu [...]

  4. 1 year ago Free Flash Menus , Animations and source codes From SoulWire |

    [...] AS3 Circular Group94 Style Scrolling Menu [...]

  5. 1 year ago Nasıl Yapılır? » Ücretsiz Flash Menü Nasıl Yapılır?

    [...] SoulWire adlı bloga buradan ulaşabilirsiniz. BENZER YAZILAROnline Slayt ve Sunum Nasıl Yapılır? [...]

  1. Paul 8 months ago

    message for nati who posted

    Apr 9th 2009
    5:06 am

    can you show the script you used to get the dynamic text working as i can’t seem to gett it working, what did you do, am new to as3 so go easy : 0

    many thanks

    Reply to this comment

  2. Chris 8 months ago

    Hi,
    Thank you for sharing.
    I managed to add different words to the menu, I managed to get as many labels as I want… but I cannot do the simplest thing, I cannot link each menu item to a Movie clip in my project. I know it is stupid and probably you will laugh but I am a newbie to flash. Believe me I have tried everything I could imagine but nothing works out for me. Your help would be great.

    Thank you,
    Chirs.

    Reply to this comment

  3. Paul 8 months ago

    Hi chris

    I am a newbie to this myself but I have been working with the menu now for a couple of weeks, I am having trouble with changing the sizes of the menus/images and keeping them all the same size.

    I have managed to get images loading, and also now put a tooltip all driven by XML. I have also took the UI out. not sure what you are trying to do but you can download the cs4 files I have been working with here, http://art.clubworldgroup.com/rotate_menu.zip

    hope this helps, if you find away of changing the sizes of menu to make all the same size let me know.

    p

    Reply to this comment

  4. Chris 8 months ago

    Thank you,
    I will try that.
    c.

    Reply to this comment

  5. Shonna 7 months ago

    Hi, this is my first time with AS3 and I am so lost, I wanted to know how to do 2 things,

    1. how to change the text on each link
    2. how to make each link go to a certain html page

    can anyone help me? i already tried, but i suck

    Reply to this comment

  6. avipsa 6 months ago

    how can i open it using the source code?

    Reply to this comment

  7. Gerry 6 months ago

    Hi there Soulwire! Congrats for the great job, keep it up!So i was trying to figure out
    why when i scroll with the mouse wheel in the exported swf it behaves as it should behave
    (that is, bringing up the next button when i scroll down once and bringing up the previous
    one when i scroll up once) but when i open the swf with firefox it skips allways one button
    (that is, bringing up the next-next button when i scroll down once and the pre-previous
    button when i scroll up once). I would really appreciate your help here!Thank you in advance.

    Reply to this comment

  8. Gerry 6 months ago

    Btw the as2.0 version of g94 circular menu behaves properly. I can’t figure out why though..

    Reply to this comment

  9. Malc 5 months ago

    Guys,

    To use relative class paths in AS3, simply use ./ (dot forwardslash) at the start. I came across this testing with ../ to go back up a directory and it always worked. For some silly reason, Flash is begging for a dot at the beginning and then always works.

    Reply to this comment

  10. meri 4 months ago

    I am trying to make something similar in flex.
    Do you know how I could do this?
    thanks!

    Reply to this comment

  11. bhoomit 4 months ago

    Hi soulwire,

    i m grearful to u for such a nice creation. I m wondering if i can use this in FLEX so if u have any idea then tel me ASAP

    Reply to this comment

  12. artur 3 months ago

    hi soulwire!

    I enjoyed very much your menu but I am very bad at as3.
    so I ask you please to help me:
    First, I want to make links, each button a different link, using both navigate to url and gotoandplay.
    what code and where should I write it?

    and second, I don’t need the controllers (radius, fade, etc), how can I remove it?

    thank you very much!!

    Reply to this comment

1 ... 3 4 5