8 Replies Latest reply on Aug 22, 2007 12:04 PM by clbeech

    How do I use a variable to set movie clip properties?

    LDJ3
      I'm building a simple contact page that allows users to select a city from a comboBox. I'd like to pass the selected comboBox data through a variable that controls a movie clip with the same name. (already on the stage)

      locationListener.change = function (loc_obj:Object) {
      var loc_mc = loc_obj.target.selectedItem.data;
      loc_mc._visible = true;

      So far this hasn't worked. I've tested hardcoding the movie clip instance name (Atlanta._visible = true) and it works, but I can't figure out why using the variable loc_mc won't trigger interaction with the movie clip.

      Something simple, I assume. Thanks in advance for any help.