A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: fly out menu (sorta) help

  1. #1
    Junior Member
    Join Date
    Jul 2009
    Posts
    8

    Unhappy fly out menu (sorta) help

    I need some major assistance. I'm at my end. I've been trying to take tutorials after tutorials only to have error after error, nothing works.

    Probably the main reason is most tutorials do not list if they are AS1,2, or 3

    I'm currently trying to make a fly out type thing in actionscript 2

    If you look at the pic I provided everything under the patients column will be buttons. right now only TBI is a button.
    What I want to do; is be able to click that button, and have another movie clip (the blue square with writing in the library) show up over the desk area.
    Then do the same thing with the other 2 buttons.
    I was thinking about just doing an alpha tween on the movies to show up once I click the button.

    Right now I'm working with 4 layers a background, a button layer, the board with the names on it is a layer and I have my movie clip layer.

    Could someone please tell me how in the world I can code this. I have 0 knowledge of scripting. or perhaps direct me to a tutorial along these lines that actually works on AS2.

    Thanks a million
    Attached Images Attached Images

  2. #2
    Senior Member Robb@exo's Avatar
    Join Date
    Jun 2003
    Location
    Canada
    Posts
    1,540
    Not sure what the flyout is in reference to, but I think you might be referring to swapping the depths of movieclips depending upon which button is released. In other words click on a button and the related mc will move to the top (foreground). Does this sound close? If it is, have a look at this tutorial. Pretty simple to incorporate.
    http://www.kirupa.com/developer/acti.../swapdepth.htm
    Wile E. Coyote - "Clear as mud?"

  3. #3
    Junior Member
    Join Date
    Jul 2009
    Posts
    8
    Thank you for the link, That's not excatly what I had in mind but will definatly serve useful to me later,as I learn further.

    Here is a Script that I am starting to work with.
    The main issue I'm having now is I have to click on each button in order (from top to bottom) or nothing will happen.
    And once I've clicked all the buttons they will not reopen a second time.

    I am trying to get each button set up like a flyout menu, click on the button and a window will showup.
    Could someone take alook at this and tell me where I am going wrong?
    How to click and open any button at any time and even possibly how to close the window that opened by just clicking inside the same window.

    Thank you


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

    var startY:Number = productsSub_mc._y;
    var myTween:Tween;
    var myTween2:Tween;

    productsSub_mc.videos_btn.enabled = false;

    products_btn.onRelease = function() {
    if (productsSub_mc._alpha == 0) {
    myTween = new Tween(productsSub_mc, "_alpha", Regular.easeOut, 0, 100, 1, true);
    myTween2 = new Tween(productsSub_mc, "_y", Regular.easeOut, startY, startY-10, 12, false);
    }
    };

    poly_btn.onRelease = function() {
    if (productsSub_mc._alpha>0) {
    myTween.stop();
    myTween2.stop();
    productsSub_mc.videos_btn.enabled = false;
    productsSub_mc._alpha = 0;
    productsSub_mc._y = startY;
    new Tween(poly_mc, "_alpha", Regular.easeOut, 0, 100, 1, true);
    new Tween(poly_mc, "_y", Regular.easeOut, startY, startY-10, 12, false);
    }
    };

    sci_btn.onRelease = function () {
    if (poly_mc._alpha >0) {
    myTween.stop();
    myTween2.stop();
    poly_mc.videos_btn.enabled = false;
    poly_mc._alpha = 0;
    poly_mc._y = startY;
    new Tween(sci_mc, "_alpha", Regular.easeOut, 0, 100, 1, true);
    new Tween(sci_mc, "_y", Regular.easeOut, startY, startY-10, 12, false);
    }

    }
    Attached Images Attached Images

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