ActiveDen

myAdvDropDownMenu

An easy to use/manage advance drop down menu. Just drag and drop onto stage & change the variable’s value, thats it.

Things you can easily set through the variables:

  • drop up or down
  • easing speed
  • easing type (uses mx.Tween class)
  • width of menu
  • a maximum character to prevent long headlines
  • uppercase/lowercase
  • icon indicating its an external link

Dropdown details are kept in an array. you can also run a function instead of an external link, just follow the commented actionscripts :)

AATW - added along the way

  • How to load a swf/jpg into a movieClip on stage – 5th jan 08
    1. Create a empty movieClip, place it on stage, give it an instance name: holderMc
    2. Put the path to the swf or jpg in the array like this:
      ["Title of menu", _root.doSomething, "function", "meow.jpg"],
    3. Open up initiateDropDown.as file, on line 25:
      Change: 
      f();
      
      To: 
      f(dropDowns[this.no][3]);
    4. Lastly in frame one’s actionscript, modify the function:
      From this:
      doSomething = function () {
          _root.tracer.text = "Hello im frm a function<br />--------<br />"+_root.tracer.text;
      };
      
      To this: 
      doSomething = function (swf:String) {
          _root.holderMc.loadMovie(swf);
      };
by
by
by
by
by