Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

One Flash combobox disrupts the other.

I'm using the following actionscript for my location combobox. I have another combo box on the page called quantity that goes blank whenever something is chosen in the location combobox.  What do I have to change to make both work?

function change(evt){
      gotoAndStop(evt.target.selectedItem.data);
}
location.addEventListener("change", this);
0
imjusthere
Asked:
imjusthere
1 Solution
 
SavongCommented:
Is there a keyframe inbetween on the layer that the other combobox is on?  That would certainly cause this issue.
0
 
blue-genieCommented:
are you using separate methods for the listeners of the 2 boxes?

i.e do you have do change methods?
try this

var cbListener:Object = new Object();


cbListener.change = function(event_obj:Object) {
//whatever
};

// Add Listener.
location.addEventListener("change", cbListener);

and then create another listener for your other combobox

might help, not sure.
0
 
imjusthereAuthor Commented:
No keyframes inbetween.

I'm only using one listener.  My other combo box is being posted to my asp page using quantity.getValue().
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now