Important! All new questions are usually answered within the next business day.

Accordion (Tree) Menu V3

(views: 7465)

Accordion Menu V3 and Accordion Tree Menu V3 are xml flash accordion menus featuring customized states, customized transitions and tweens. Here are all known issues for Accordion Menu V3 and Accordion Tree Menu V3, they should be similar, since basically it is the same component. If you have any questions that you think we should discuss here please let us know.



Keep the Accordion (Tree) Menu V3 vertically aligned

(2007-10-11 - views: 1554)

Q: Can I keep the Accordion Tree Menu V3 vertically aligned on my stage?
A: Yes you can. Below is the actionscrip that is doing the job.

var lis={}
lis.onDraw=function(){
    arrange()
}
lis.onChange=function(item){
    arrange()
}
acc.addEventListener("onChange",lis)
acc.addEventListener("onDraw",lis)
//function for arranging the accordion's position
function arrange(){
    var finV=Stage.height/2-acc.height/2
    moveMe(acc,finV,20)
}

function moveMe(a, param, t):Void {
    var tween = new mx.transitions.Tween(a, "prop", mx.transitions.easing.Strong.easeOut, a._y, param, t, false);
    //we make the tween onMotionChange so we cand round the tween's values for a smooth tween
    tween.onMotionChanged=function(){
        a._y=Math.round(tween.position)
    }
}






Files: verticalAlign.zip 


Login to post your comment login to post your comment



Back

Knowledge Base Search

Enter keywords bellow:
Advanced Search

Menu

Special Offer

Special Offer - All in one Jumpeye Components bundle!

Get the JC Master Collection Now!

Free Trial Versions

The trial versions do have a major limitation. They will ONLY run into debugger flash player versions, such as the Flash IDE player and the activeX FP used by developers.

Switch from Free Trial version to Full version.

You can switch from Trial to Full versions in a blink of an eye.
See this tutorial in order to find out how.

We accept Google Checkout

Google Checkout Acceptance Mark

Secured by VeriSign