0 Replies Latest reply on Jun 27, 2007 11:12 PM by Neil Hand

    Help with "Menu Component"

    Neil Hand
      Hello All,

      I am trying to create a scroll up menu. To do this i am attempting to use the menu component. My idea was to create the component within a movie clip, and then annimate the movie clip as needed.

      However, something seems to be going wrong in that both the depth and position of the movie do not seem to depend on the movie clip that i belive i am using as the parent. Is there something that i am missing?

      In the following example, the menu position and depth do not seem to be related to the movie "test" even though i would expect it to. It appears under other objects on the stage, as well as at the default 0,0 location.

      var rollover:MovieClip = _root.createEmptyMovieClip("test", _root.getNextHighestDepth());
      var galMenu:Menu = Menu.createMenu(_root["test"]);

      _root["test"]._x = 50;
      _root["test"]._y = 50;

      for (var idx:String in my_list) {

      // Add a change-listener to Menu to detect which menu item is selected.
      var menuListener:Object = new Object();
      menuListener.change = function(evt_obj:Object) {
      var item_obj:Object = evt_obj.menuItem; ...
      my_menu.addEventListener("change", menuListener);

      Any Help would be greatly appriciated.

      Best Regards