this is the first time i’ve shared classes, so don’t be too harsh. it’s nothing fancy, but i am quite happy with it. I will be using it on my site, but i decided to share it anyway.
here is a quote from my blog
Basically, it “throws” in items into the stage, and you could shuffle them around or you could stack them up. I’ve made it very easy to use, and it’s still under development, but I think it’s ready to be used by others… You can use any DisplayObject as the ‘items’ of the Shuffler.
There are explanations in the code, but here are some important points
shuffle() - shuffles the items
stack() - stacks the items
setFocusOn(item: DisplayObject) - sets the item param as the focused item
addItem(item: DisplayObject) - adds item param to the shuffler
deleteItem(index:int) - deletes the item at index
has max property for maximum number of boxes allowed. 0 for infinite.
you need TweenLite