One Flash combobox disrupts the other.

Posted on 2007-10-11
Last Modified: 2010-04-03
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){
location.addEventListener("change", this);
Question by:imjusthere
    LVL 10

    Expert Comment

    Is there a keyframe inbetween on the layer that the other combobox is on?  That would certainly cause this issue.
    LVL 39

    Accepted Solution

    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) {

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

    and then create another listener for your other combobox

    might help, not sure.

    Author Comment

    No keyframes inbetween.

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
    I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
    The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
    The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now