4 Replies Latest reply on Feb 25, 2008 2:37 PM by finalcutexpress

    Combo Box Pulldowns Don't Work in Movie Clip

      I have created a movie that calls in another movie which has two combo boxes.

      The 'parent' movie calls in the 'child' movie using:

      this.createEmptyMovieClip("newAddresses_mc", this.getNextHighestDepth());

      The child movie is using the following for one of the pulldowns. (The second pulldown is very similar so I didn't feel the need to be redundant and post its code:

      var toChoice:Boolean = false;
      var fromChoice:Boolean = false;
      var my_lv:LoadVars = new LoadVars();
      /////// to recipient
      objComboListener = new Object();
      objComboListener.change = function(eventObj) {
      my_lv.to = eventObj.target.value;
      sent_txt.text = "";
      if (eventObj.target.value == "defaultValue") {
      toChoice = false;
      } else {
      toChoice = true;
      namesTo.addEventListener("change", objComboListener);

      The pulldowns work fine when the swf is tested alone, but when it's called into the parent movie the pulldowns don't work. I've tried adding _root.newAddresses_mc. to namesTo. I've tried adding 'this.'. I've tried adding "_root.*" and "this.*" to objComboListener as well to no avail.

      I can't seem to figure it out.


      Thanks in advance -