event not firing from modification code list

I have a list where the change event is set at a "listChanged" fire function. All right when I actually click a list item to trigger the change. It also works fine if I use the arrow key to move up in down on the list.  However, if I make the change in the code (like this: dataList.selectedIndex = 1 ;) the list item is selected, but the event is triggered.)

Anyone have any ideas why this is?

cdub,

The 'change' event is activated when the user interacts with the list to change the selection (mouse clicks, arrows, etc.). The 'valueCommit' event is raised when the selection is changed programmatically.

Jason

Tags: Flex

Similar Questions

  • can not boot from cd code 1

    HI.i want ti to re - install windows vista on my asus laptop, but when I press on boot on my recovery dvd, it says cannot start from the cd: code 1. can someone help me?

    Hello

    The error means that there is no driver installed for the device, which means that you must install the drivers or
    the driver is bad, or the connection cables are bad or badly positioned.

    Configuration-device - CD/DVD Manager Panel

    Note all of the info - manufacturer and model, and then double-click - tab drivers - and get the date and version of the driver.

    Please post here with computer, descriptive of the full mode, vista version and 32 or 64-bit.

    Just what is so we can possibly avoid happening again and we can help find you the latest drivers.

    Now, click on update drivers. Did this work.

    If it does not go back and do a right-click on the device - UNINSTALL - REBOOT

    Which will refresh the driver stack.

    If it worked or not, the next step is to get the latest drivers, then I hope you posted all the Info
    that we need as above.

    Rob - bicycle - Mark Twain said it is good.

  • AftProcMap event not firing

    Hi all

    Can someone of you think of a reason why the event script AftProcMap is fired not when importing, or when you perform a recalculation?

    We use v11.1.2 and I tested with a write to a file and is not triggering at all (and is not the BefProcMap event).

    If I run the script so that it opens in the Workbench client is to produce a text file as expected, so I know the script itself is valid but I can't seem to run during the treatment.

    Concerning
    Stuart

    You need at least a not explicit card.

  • Tween start event not fired?

    Hello

    I have this code below that produces no error:

    import the map;

    Import fl.transitions.Tween;
    Fl.transitions.easing import. *;
    Import fl.transitions.TweenEvent;

    var ace_clubs1:Ace_clubs = new Ace_clubs();
    ace_clubs1. ScaleX = 0.4;
    ace_clubs1. ScaleY = 0.4;

    var myTween_end = new Tween (ace_clubs1, "y", None.easeNone,-110, 700, 1, true);
    var myTween_begin = new Tween (ace_clubs1, "x", None.easeNone, 0, 400, 1, true);

    myTween_begin.addEventListener (TweenEvent.MOTION_START, onStart);
    myTween_end.addEventListener (TweenEvent.MOTION_FINISH, onFinish);


    function onStart(e:TweenEvent):void {}
    trace ("Begin");
    }


    function onFinish(e:TweenEvent):void {}
    trace ("End");
    }

    addChild (ace_clubs1);

    The only thing is the output of TRACE for the MOTION_START EVENT does not fire. Someone knows why?

    Thank you

    Jim

    Do not start tweening until after the event listener is assigned, if not, you missed the event - when you instantiate, it starts.  Then try to add:

    myTween_begin.start ();

    right after the listener is affected.

  • BlackBerry 9900 touch event not firing

    Hey,.

    I am new to the BlackBerry development and need help. I use a BlackBerry 9900 to test.

    I have a single screen in my application that has several buttons. It reacts to the touch of the events if the button is highlighted.

    Here is my code:

    HorizontalFieldManager hfmRow = new HorizontalFieldManager();
    
    _firstButton = new ButtonField("First");
    _secondButton = new ButtonField("Second");
    _thirdButton = new ButtonField("Third");
    _fourthButton = new ButtonField("Fourth");
    _fifthButton = new ButtonField("Fifth");    
    
    hfmRow.add(_firstButton);
    hfmRow.add(_secondButton);
    hfmRow.add(_thirdButton);
    hfmRow.add(_fourthButton);
    
    add(hfmRow);
    add(_fifthRow);
    

    Try the following - replace / / perform a treatment with what you want on click

    _firstButton = new ButtonField("First"); _secondButton = new ButtonField("Second"); _thirdButton = new ButtonField("Third"); _fourthButton = new ButtonField("Fourth"); _fifthButton = new ButtonField("Fifth");
    
    HorizontalFieldManager hfmRow = new HorizontalFieldManager(){protected boolean touchEvent(TouchEvent message) {        int x = message.getX(1);        int y = message.getY(1); if (_firstButton.getExtent().contains(x, y)) {          //Do processing          return true;}else if (_secondButton.getExtent().contains(x, y)) {          //Do processing          return true;}else if (_thirdButton.getExtent().contains(x, y)) {          //Do processing          return true;}else if (_fourthButton.getExtent().contains(x, y)) {          //Do processing          return true;}else if (_fifthButton.getExtent().contains(x, y)) {          //Do processing          return true;}else{ return super.touchEvent(message);}}}; hfmRow.add(_firstButton); hfmRow.add(_secondButton); hfmRow.add(_thirdButton); hfmRow.add(_fourthButton);hfmRow.add(_fifthButton); add(hfmRow); add(_fifthRow);
    
  • Sign-up at RemoteNotifier events not firing after having invoked method

    I'm setting up an iOS app.  I need to use the APNS.  The application is implemented at Apple and works, but I am unable to test Push Notifications because I am unable to get a token device.  From my understanding deliverance RemoteNotifier.subscribe should RemoteNotificationEvent.TOKEN to fire.  This never happens.  The code is below.  None of the RemoteNotifier fires.

    var preferredNotificationStyles:Vector. < String > = new Vector. < String >;

    preferredNotificationStyles.push (NotificationStyle.ALERT);

    preferredNotificationStyles.push (NotificationStyle.SOUND);

    preferredNotificationStyles.push (NotificationStyle.BADGE);

    var subscribeOptions:RemoteNotifierSubscribeOptions = new RemoteNotifierSubscribeOptions();

    subscribeOptions.notificationStyles = preferredNotificationStyles;

    var rn:RemoteNotifier = new RemoteNotifier();

    rn.addEventListener (RemoteNotificationEvent.TOKEN, sendDeviceTokenToServer);

    rn.addEventListener (RemoteNotificationEvent.NOTIFICATION, notificationReceivedByApp);

    rn.addEventListener (StatusEvent.STATUS, subscriptionFailureCallback);

    RN. Subscribe (subscribeOptions);

    I was able to get this working by moving the code that deals with RemoteNotifier in its own actionscript class.  I initially had it inside of the

  • Hotmail account: I can't receive e-mail from addresses that are not already in my contacts list

    I can't receive e-mail from addresses that are not already in my contacts list, for example the library.  My account has been hacked recently, and I have informed Windows CE.  I then installed Avast security.  Since only known e-mail senders spend their emails.  Help, please.

    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    It seems that Avast is blocking messages from anyone not in your contacts list (much too tight fixed).  Disable the function of checking email and see if that solves the problem.  If so, run it without the option of e-mail enabled - it does not really help as long as you take normal precautions (as not to open attachments from people you don't know / trust and things like that).  If you don't know how to disable this feature, contact technical support Avast (I do not use the product so I don't know how, but it's probably under Options or something like that).  If this does not work, try to go to Microsoft Security Essentialshttp://www.softpedia.com/progDownload/Microsoft-Security-Essentials-Download-131683.html where I know that this problem is not happen and see if that solved the problem.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • XMLSocket events not received

    I'm trying to get a simple ActionScript 3 class to connect to a custom Java Server. The server receives the connection, but no events are triggered on the ActionScript side. I am serving a policy file and loading explicitly on the side of the ActionScript

    The simplest code to reproduce, it is as follows:

    =====
    Java code:
    =====
    import java. IO;
    java.net import. *;

    SimpleServer class
    {
    Public Shared Sub main (String [] args)
    {
    System.out.println ("> > starting SimpleServer");
    Try
    {
    int ch;
    System.out.println ("opening server socket to port 8080");
    Socket ServerSocket = new ServerSocket (8080);

    System.out.println ("Waiting for connection on port 8080");
    Plug incoming = socket.accept ();
    System.out.println ("connection accepted. Pending text");

    BufferedReader readerIn = new BufferedReader (new InputStreamReader (incoming.getInputStream ()));
    PrintStream print = new PrintStream (incoming.getOutputStream ());
    System.out.println ("read :");
    While ((ch = readerIn.read ()) > 0)
    System.out.println ("read :");
    While ((ch = readerIn.read ()) > 0)
    {
    System.out.Print ((Char) ch);
    }
    System.out.println("\nDone");

    System.out.println ("exit strategy");
    printOut.println ("<?") XML version=\"1.0\"? " > \r\n <! ("" "DOCTYPE cross-domain-policy SYSTEM------" http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd------"> \r\n < cross-domain-policy > < ow-access-of all area =------" *------' course =------"false\" to-ports =------' 8080, 8081\ "/ > < / cross-domain-policy > \0");

    System.out.println ("close connections");
    incoming. Close();
    Socket.Close ();
    System.out.println ("taken to port 8080 closed");

    System.out.println ("opening server socket to port 8081");
    Socket = new ServerSocket (8081);

    System.out.println ("Waiting for connection");
    incoming = socket.accept ();
    System.out.println ("Waiting for connection");
    incoming = socket.accept ();
    System.out.println ("accepted connection to port 8081");

    System.out.println ("isConnected:" + incoming.isConnected ());

    readerIn = new BufferedReader (new InputStreamReader (incoming.getInputStream ()));
    Print = new PrintStream (incoming.getOutputStream ());
    System.out.println ("sending < Hello / >");
    printOut.println ("< Hello / > \0");
    System.out.println ("smell");
    System.out.println ("isConnected:" + incoming.isConnected ());

    System.out.println ("read :");
    While ((ch = readerIn.read ()) > 0)
    {
    System.out.Print ((Char) ch);
    }
    System.out.println("\nDone");
    System.out.println ("isConnected:" + incoming.isConnected ());

    System.out.println ("sending < Hello / >");
    printOut.println ("< Hello / > \0");
    System.out.println ("smell");
    System.out.println ("isConnected:" + incoming.isConnected ());

    System.out.println ("close connections");
    incoming. Close();
    Socket.Close ();
    System.out.println ("taken to port 8080 closed");
    }
    catch (System.Exception e)
    {
    System.out.println (e);
    }
    }
    }

    =====
    ActionScript code:
    =====
    package
    {
    import flash.display.Sprite;

    SerializableAttribute public class SockTest extends Sprite
    {
    import flash.net.XMLSocket;
    import flash.system.Security;
    import flash.events. *;
    import flash.utils.Timer;

    public void SockTest()
    {
    trace ("type of Sandbox:" + Security.sandboxType);
    trace ("loading policy file");
    Security.loadPolicyFile ("xmlsocket://127.0.0.1:8080"); ")
    trace ("done calling loadPolicyFile");

    var: timer = new Timer (1, 5000);
    timer.addEventListener ("timer", timerHandler);
    Timer.Start ();
    }

    private void timerHandler(event:TimerEvent):void
    {
    trace ("XMLSocket creation");
    var xmlSocket:XMLSocket = new XMLSocket();

    trace ("Calling connect");
    xmlSocket.connect ("127.0.0.1", 8081);
    trace ("done connect call");

    trace ("adding event listeners');
    xmlSocket.addEventListener (Event.CONNECT, connectHandler);
    xmlSocket.addEventListener (Event.CLOSE, closeHandler);
    xmlSocket.addEventListener (DataEvent.DATA, dataHandler);
    xmlSocket.addEventListener (IOErrorEvent.IO_ERROR, ioErrorHandler);
    xmlSocket.addEventListener (SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
    trace ("adding event listeners through");

    trace ("willTrigger (Event.Connect)?:"+ xmlSocket.willTrigger (Event.CONNECT) ");
    trace ("xmlSocket.Connected =" + xmlSocket.Connected);

    xmlSocket.send (new XML code ("< Hello / >"));

    trace ("done send");
    }

    public void connectHandler(event:Event):void
    {
    trace ("connectHandler:" + event);
    }

    private void closeHandler(event:Event):void
    {
    trace ("closeHandler:" + event);
    }

    private void dataHandler(event:DataEvent):void
    {
    trace ("dataHandler:" + event);
    }

    private void ioErrorHandler(event:IOErrorEvent):void
    {
    trace ("ioErrorHandler:" + event);
    }

    private void securityErrorHandler(event:SecurityErrorEvent):void
    {
    trace ("securityErrorHandler:" + event);
    }
    }
    }
    =====
    ActionScript compiled using
    mxmlc-use-network = true SockTest.as
    =====
    Result of Java side:
    =====
    > > from SimpleServer
    Opening of socket server on port 8080
    Waiting for connection on port 8080
    Accepted connection. Pending text
    Read:
    < policy-file-request / >
    Fact
    Political output
    Close connections
    Taken closed to port 8080
    Opening of socket server to port 8081
    Waiting for connection
    Connection accepted to port 8081
    isConnected: true
    Sending of < Hello / >
    Envoy
    isConnected: true
    Read:

    Fact
    isConnected: true
    Sending of < Hello / >
    Envoy
    isConnected: true
    Close connections
    Taken closed to port 8080

    =====
    Output trace for the ActionScript side: [from the debug version of the flash player version 9,0,31,0 stand-alone on Linux]
    =====
    Type of sandbox: localWithNetwork
    Loading policy file
    Fact call loadPolicyFile
    Creating XMLSocket
    Call connect
    Call connect
    Add event listeners
    Result of adding event listeners
    willTrigger (Event.CONNECT)? : true
    xmlSocket.connected = false
    Because of the sending
    =====
    As you can see, no event is fired. I know that the policy file has effect because if I try to connect to any other port, I get a security exception, but here again the SecurityErrorEvent is not triggered. In addition, the data sent from the server not fire either all DataEvent.

    How can I get the events to trigger?

    Thank you
    Vincent

    I got it finally works but I do not understand why it makes a difference.

    I did the

    var xmlSocket:XMLSocket

    an instance variable instead of declare inside the timerHandler method.

    I do not understand why is this necessary. The timer works fine (timerHandler is invoked) even when it's a local variable.

    Vincent

  • Events not captured

    I have a strange behavior with one of my custom events. (my other events are very good).

    The event is distributed with this code:

    private void handleLoginResult(event:ResultEvent):void {}
    var user: XML = new XML (event.result);
    If (user! = null & & user.userId! = null) {}
    var e:LoginEvent = new LoginEvent (user, 'loginProcessed');
    this.dispatchEvent (e);
    Alert.Show ("send event");
    }
    }


    I see my alert, every thing is good up to this point. My metadata looks good, here's the list:

    < mx:Metadata >
    [Event (name = "loginProcessed", type = "events. LoginEvent")]
    < / mx:Metadata >


    I have a LoginEvent.as class in the package "events". This is the standard, extends from flash.events.Event, has a public constructor:
    public void LoginEvent (user: XML, type: String, bubbles: Boolean = false)

    I have in my main application, create a custom panel and declare the listener:
    < v2:Login title = "Login" id = "loginPanel" loginProcessed = "Alert.show ('debug')" / > "

    Now, when the event is raised I do not see the alert "debug". Can someone help me understand why this is?

    dimival, whoever you are, you are generous. The manufacturer had a superclass appellant of the problem. I am listing below. The compiler does not care to catch my error, but you did!


    package events
    {
    import flash.events.Event;

    SerializableAttribute public class LoginEvent extends Event {}

    public var user: XML;

    public void LoginEvent (user: XML, type: String, bubbles: Boolean = false) {}
    Super (user, type, bubbles);
    This.User = user;
    }
    Public Overrides function clone (): Event {}
    return of new LoginEvent (user, type, bubbles);
    }
    }
    }

  • App Apple Events not in the Canadian store

    I don't see the app Apple event in Canadian store for the Apple TV 4 (the soft for the streaming of the keynote from Apple next Monday). It is supposed to be in the news category, but this category does not even appear on my list of categories. Am I the only one?

    Found. It seems that on the Apple TV 4, we need to search for it by typing "Apple Events".

  • I get the error ' file \i386\ntkrnlmp.exe could not be loaded error code 32768 is Setup can not continue "when you try to reload windows xp on a computer problem. What should I do?

    I'm trying to "sweep" and reinstall windows XP pro on a computer that has had problems. I get the error ' file \i386\ntkrnlmp.exe could not be loaded error code 32768 is Setup cannot continue to press a button to exit "as soon as I got the boot from the cd (and actually after a long break). Help, please!

    Hello

     
    Try the steps listed in the link below and check if it helps:

    "Ntkrnlmp.exe could not be loaded. The error Code is 7 "Error Message occurs during installation of Windows: http://support.microsoft.com/kb/318729

  • How to change values from drop-down list in several fields simultaneously

    I have a 50-page form that contains a multitude of areas.  One of the fields from drop-down list is repeated throughout the form.  The values in the drop-down list options must be the same for all fields of form drop-down list.  These fields are not copies.  I need to make them individually selectable with touching other areas.

    The problem is, I often have to update the values in these fields... and there are dozens of them.

    Is there a way to store the list in the document and have all dropdowns access from this central location?

    You can do quite easily with a script. For example:

    var aList is ['Alaska', 'Washington', "Oregon", "Idaho", "Montana"];.

    getField("dropdown1").setItems (aList);

    getField("dropdown2").setItems (aList);

    Add any other dropdowns here

    You can store this code in a JavaScript function at the level of the document and update it and then call it whenever you need to update the drop-down lists. If you need to include the value of exports for the elements, you need to change the table suruneliste to an array of arrays, something like:

    aList var = [['Alaska', 'AK'] ['Washington', 'WA'], ['Oregon', 'GOLD'], ['Idaho', 'ID'], ['Montana', 'MT']];

  • Is it possible to use the getObjectsUnderPoint of a DisplayObject that is not added to the display list?

    My situation:

    I have a DisplayObject (objA) added to the display list and a DisplayObjectContainer (objB) not added to the display list. When objA receives a MouseEvent.CLICK event, is it possible to use the localX and localY to the event of objA to get objects under the same point in objB?

    Sample:

    var objA:Sprite = new Sprite();

    objA.graphics.beginFill (0);

    objA.graphics.drawRect (0, 0, 100, 100);

    objA.graphics.endFill ();

    addChild (objA);

    var objB:Sprite = new Sprite();

    var childA:TextField = new TextField();

    childA.text = "This is the child.";

    objB.addChild (childA);

    objA.addEventListener (MouseEvent.CLICK, handlerClick);

    function handlerClick(e:MouseEvent):void {}

    var pt:Point = new Point (e.localX, e.localY);

    var objs:Array = objB.getObjectsUnderPoint (pt);

    trace (objs. Length);

    }

    so your test/trace environment can deliver it.

    Use the following code, publish your swf file and test the swf file in your standalone player (or publish a html and swf and test it in your browser).

    package {}

    import flash.display.Sprite;

    import flash.events.MouseEvent;

    to import flash.geom.Point;

    import flash.text.TextField;

    SerializableAttribute public class extends Sprite {Main2

    private var _objA:Sprite = new Sprite();

    private var _objB:Sprite = new Sprite();

    private var childA:TextField

    public void Main2() {}

    _objA.name = "a";

    _objA.Graphics.beginFill (0xdddddd);

    _objA.Graphics.drawRect (0, 0, 100, 100);

    _objA.Graphics.endFill ();

    addChild (_objA);

    _objB.name = 'B ';.

    _objB.Graphics.beginFill (0xdd0000);

    _objB.Graphics.drawRect (0, 0, 100, 100);

    _objB.Graphics.endFill ();

    _objA.addEventListener (MouseEvent.CLICK, handlerClick);

    Stéphane = new TextField();

    childA.name = 'tf ';

    _objA.addChild (childA);

    childA.multiline = true;

    }

    private void handlerClick(e:MouseEvent):void {}

    var pt:Point = new Point (e.localX, e.localY);

    var objs:Array = _objB.getObjectsUnderPoint (pt);

    childA.text = "";

    for (var i: int = 0; i

    childA.appendText(objs[i].name+"\n");

    }

    }

    }

    }

  • Users do not select as long multi lists

    Users hate long multi selection lists so I will try to find a simple solution to keep them happy. My users would rather type in a free text field that scroll a long list. I tried without success to use two solutions, I found posted on the web site of Dene Kubickek ApEx Solutions.

    The first is "how to use tables V said. It looks like a great solution, but I can't understand how to implement it on a form. The example uses a SQL report. I would like my users to type comma-delimited names in a text box then onblur and onclick calls a function to validate the names that they typed in. I also intend using a contextual list they can use as a reference to check the spelling of the name of someones or possibly copy and paste from. I have seen the example on how to create a custom box pop up, but I can't understand how to use for multiselects. And yet once my users may not like having to select from a long list. I don't think I need a pop-up list of names in both cases be available as a reference.

    The alternative which would be really slick is the use of "AJAX Auto Complete". Yet once the example is not configured to manage several items typed in the box. In my case, that would be the commas to names like Bob Smith, Jane Jackson, Jack Black. I would like to use this solution. Is it possible to modify the code to manage several items?

    Thank you very much this forum, he saved me more than once. Elizabeth

    One last thing, I really like how the popular tags on the bottom of this page to work. Is there a post of this code anywhere?

    Hello

    For AutoComplete, take a look at this thread-

    Yahoo! AutoComplete widget

    (there are quite a few other threads discuss Autocomplete here too).

    Regarding labelling, look at Carl Backstroms sample application here-

    http://Apex.Oracle.com/pls/OTN/f?p=11933:136

    Hope this helps,

    John.
    --------------------------------------------
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd

  • After you have selected a contact group for sending electronic mail to:, how to remove 1 or more addresses from the group list once it is added to the new email? THX

    The best flexibility might always have the ability to add individual addresses from a group list to any email, so the list can then be cut. Or only the address list in the list group selected as a list of checkboxes (all checked by default) if the user can deselect those who should not be included in the list of email recipients. THX

    _ http://KB.mozillazine.org/Thunderbird: _FAQs_:_Create_Mailing_List #Avoid_sending_to_an_address_in_a_mailing_list

Maybe you are looking for

  • Why Firefox drains my bandwidth?

    Use the last version I simply open the window and it starts to drain away. I disabled updates, automatic updates Add on and continue to attract like crazy! I'm using Chrome now, even though I'm not fond of it due to the lack of choice about updates a

  • Safari no longer works with SSL self-signed certificates?

    With the last Safari (9.0.3) on OS X (running 10.11.3) and iOS (9.2.1) operating system, I can no longer connect to sites that use self-signed SSL certificates. Previously, I was warned that the site certificate was not "valid", but given the opportu

  • How do you get the tag line in last-one click on a tree control?

    The API for tree controls is infuriatingly obtuse. In response to an event initiated by the tree control, I need to query the currently selected item in the tree and get his tag, so I can handle the element and its children. How this is done? I found

  • Laptop will not stop after update to 8.1 windows

    I have a new aspire E1 - 572G that will not stop completely during a windows 8.1 update I updated the Bios and downloaded the drivers from the support site. I did a restore to factory default settings and tried... again no luck I installed windows 8.

  • Windows Media Center almost completely broken and ehRec.exe take 50% CPU

    My windows media center is broken. Part, but probably not all, the problem is ehRec.exe uses up to 50% of the CPU, which means that it is completely connected because I have a computer with dual-core CPU. Do not record scheduled recordings. Sometimes