dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Flyout menu!

  1. #1
    Junior Member
    Join Date
    Aug 2007
    Location
    Sala, Sweden
    Posts
    10

    Flyout menu!

    Do any one know how to solve my problems? I have made a flyout menu to my homepage you can look at it on: www.mickesei.se/test/menufly.html but there are one problem with it..

    There should be two different menus attached to two different buttons, the first menu works, but I want it to close when I RollOver button 2 and at the same time open menu two.

    And when I RollOver button 1 it should close menu 2 and open menu 1. My code that Ive have to my example above is:


    import mx.transitions.Tween;
    import mx.transitions.easing.*;

    var startY:Number = oneSub_mc._y;
    var startXY:Number = twoSub_mc._y;
    var myTween:Tween;
    var myTween2:Tween;
    var myTween3:Tween;
    var myTween4:Tween;

    oneSub_mc.test_btn.enabled = false;



    two_btn.onRollOver = function () {
    if (twoSub_mc._alpha == 0){

    twoSub_mc.test_btn.enabled = true;
    myTween3 = new Tween (twoSub_mc,"_alpha",Regular.easeOut,0,100,12,false );
    myTween4 = new Tween (twoSub_mc,"_y",Regular.easeOut,twoSub_mc._y,start XY -10,12,false);
    }
    }

    one_btn.onRollOver = function () {
    if (twoSub_mc._alpha > 0){
    myTween3.stop();
    myTween4.stop();
    twoSub_mc.test_btn.enabled = false;
    twoSub_mc._alpha = 0;
    twoSub_mc._y = startXY;
    }
    }




    one_btn.onRollOver = function () {
    if (oneSub_mc._alpha == 0){

    oneSub_mc.test_btn.enabled = true;
    myTween = new Tween (oneSub_mc,"_alpha",Regular.easeOut,0,100,12,false );
    myTween2 = new Tween (oneSub_mc,"_y",Regular.easeOut,oneSub_mc._y,start Y +10,12,false);
    }
    }

    two_btn.onRollOver = function () {
    if (oneSub_mc._alpha > 0){
    myTween.stop();
    myTween2.stop();
    oneSub_mc.test_btn.enabled = false;
    oneSub_mc._alpha = 0;
    oneSub_mc._y = startY;
    }

    }


    Please... Help me...

  2. #2
    Member
    Join Date
    May 2007
    Location
    London
    Posts
    34
    Your link is dead, so sure your menu wont work

  3. #3
    Junior Member
    Join Date
    Aug 2007
    Location
    Sala, Sweden
    Posts
    10

    SORRY!!! Wrong address

    It is on: http://www.mickesei.se/testa/menyfly.html

    Now you can look....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center