Click event of s:ItemRenderer is not reliable; no work around?

I received feedback from test users and confirmed by myself.  Sometimes a click "ignore."  This seems to happen if the mouse moves quickly away from the label as being on it.

It's under MXML that defines a spark of list, with MXML for a spark ItemRenderer, with three labels each data a string of the data object.  Each of these labels defines a click event listener, they each link to the same function in the ItemRenderer.  Put a trace in this listener has confirmed that some clicks are simply ignored.

All the world experienced this and found a work around?  I'm hoping that it might be a more reliable event to listen to, for example.  The source code of the item converter is included below for completeness.

It's using Flash Builder 4.5, the latest libraries.

<? XML version = "1.0" encoding = "utf-8"? >
" < = xmlns:fx s:ItemRenderer ' http://ns.Adobe.com/MXML/2009 "
xmlns:s = "library://ns.adobe.com/flex/spark".
xmlns:MX = "library://ns.adobe.com/flex/mx".
autoDrawBackground = 'true '.
>

< fx:Script >
<! [CDATA]

[Embed (source = "... / src/images/cancel_12.png")]
[Bindable] public var icon: Class;

override public function set data(value:Object):void {}
If (value! = null) {}
Super.Data = value;
deleteIcon.source = new icon.
}
}

protected function item_Handler(event:MouseEvent):void
{
trace ("got click event" data.name);
}

protected function deleteIcon_clickHandler(event:MouseEvent):void
{
trace ("got delete event" data.name);
}

[]] >
< / fx:Script >

< s:HGroup height = "100%" verticalAlign = "middle".
paddingBottom = paddingLeft = "5" "5" paddingRight = "5" = "5" paddingTop >
< s:HGroup >
"< s:Label text =" {data.name} "width ="120"click =" item_Handler (event) "/ >
"< s:Label text =" {data.price} "width ="15"click =" item_Handler (event) "/ >
"< s:Label text =" {data.date} "width ="75"click =" item_Handler (event) "/ >
< s:Image id = "deleteIcon" click = "deleteIcon_clickHandler (event)" / > "
< / s:HGroup >
< / s:HGroup >

< / s:ItemRenderer >

You can use change event from the list instead of a click on an item render?

Tags: Flex

Similar Questions

  • not pulling - click event button position: fixed - 2.0 Playbook

    I have a fixed position "back" button in my application that triggers not when scrolling to the bottom of the screen.

    Here is the code for the button:


    When I scroll the screen to the top, the button triggers without problem. However, if the screen scrolls down at all, the button's click event will not occur.

    I've traced the events Web Inspector and a click event fires when I click the button. However, it does not actually draw the method that I've linked to the click event of the button. Once again, if I scroll the screen to the top, the button click fires very well.

    I must emphasize that the button is displayed correctly at all times. He remains in a fixed position of 5px to the right side of the screen, even when scrolling of the window down. If the button is visible at any time. It's just that when I scroll nothing happens if I click on the button.

    Looks like a bug with WebWorks. If anyone can confirm?

    Thank you

    Thanks for the suggestion ignites.

    I found that this was due to my own bug. It was a problem with z-index. I increased the z-index of the button, and it solved the problem. The button must have been in conflict with lowest elements of the page, but it was very well at the top of the page.

    Thank you

  • Double-click event does not tire/triggered by double clicking on the left side of the tree node

    I have the following tree of Flex

    <mx:Tree id="Tree" left="0" right="0" top="0" bottom="0"
            
    alternatingItemColors="[#EEEEEE, white]" dataProvider="{lsEspecie}"
            
    dragEnabled="true" dragMoveEnabled="true" dropEnabled="true" labelField="item"
            
    labelFunction="tree_labelFunc" showRoot="false"
            
    doubleClickEnabled="true" doubleClick="Tree_DoubleClick(event)">
    </mx:Tree> 

    When I double click on the ICON and to the right of the side on any node, double-click event is triggered as expected. But when clicking on any part of the left side of the node double click is not triggered

    DoubleClickNotFiring.png

    Is there a way to make the double click event fire when happens on the left side of the node?

    The problem has been resolved with this class of FixedTree

    import flash.display.InteractiveObject;
    import flash.events.Event;

    import mx.controls.Tree;
    import mx.core.mx_internal;

    use namespace mx_internal;

    public class FixedTree extends Tree {

    public function FixedTree() {
          super();
       }

    override protected function createChildren():void {
          super.createChildren();

    getListContentHolder().selectionLayer.addEventListener(Event.ADDED, selectionLayerChildAddedHandler);
       }

    private function selectionLayerChildAddedHandler(e:Event):void {
          // ListBase:5790 creates a SpriteAsset for the selectionLayer but does not set mouseEnabled to false

    InteractiveObject(e.target).mouseEnabled = false;
       }

    }

  • Custom cursor - button click event does not

    Hello

    I'm looking to use cursors with AS3.  I created a movie object I position using:

    function mouseMoved(event:MouseEvent) {}

    mousePointer.x = this.mouseX;

    mousePointer.y = this.mouseY;

    }

    and by calling the Mouse.hide)

    It works very well on what the custom cursor follows the mouse, but I'm having some trouble using the events with the cursor.  I have several events click on the several buttons.  Events do not trigger when you use the custom cursor.  In my ignorance, I guess the problem is that the custom cursor movieclip is on the top of the key, and then click events are generated only for her and not the button.

    Is there a way to get around this?  And is it usually possible to ignore the events of a clip for a clip that is below?

    Kind regards

    Robbie your

    Try:

    mousePoiner.mouseEnabled = mousePointer.mouseChildren = false;

  • Standard button does not include the CLICK event.

    I have created a Flash presentation that includes flat standard playback > flat gray to the front and flat reading > flat gray back buttons windows > common libraries > buttons list.  These give me errors when I try to set an event handler to intercept a CLICK event of their share.  What kind ov event should I try to put in place to manage if CLICK is not an option?

    The type of event is a CLICK event, but you must use the constant MouseEvent.CLICK instead, clicking is a mouse event, so it's part of the MouseEvent class.

    Void in MouseEvent.CLICK in the statement of the auditor and (event: MouseEvent) in the listener functions.

  • button in the datagrid not pulling cell click event

    I have a datagrid with a custom button built in Actionscript rendering engine. I'm trying to figure out how to capture the click event of the component when the button is clicked.

    I am generating the component of the cell based on the field type:
    column.itemRenderer = new ClassFactory (DpFileRenderer);

    The element itself:

    package joe.ui {}
    Import mx.controls.Button;
    import flash.events.MouseEvent;
    import flash.events.Event;

    SerializableAttribute public class DpFileRenderer extends button
    {
    [Embed("/assets/icons/drive_disk.png")]
    private var diskIcon: Class;
    [Embed("/assets/icons/drive_disk_grey.png")]
    private var diskIconDisabled: Class;

    override the updateDisplayList(unscaledWidth:Number,_unscaledHeight:Number):void function
    {
    super.updateDisplayList (unscaledWidth, unscaledHeight);
    This.label = this.listData.label;
    If (this.listData.label! = '0')
    {
    this.setStyle ("icon", diskIcon);
    } else {}
    this.setStyle ("icon", diskIconDisabled);
    This.Enabled = false;
    }
    this.labelPlacement = 'left ';
    this.setStyle ("color", 0x000000);
    }
    }
    }

    I don't know exactly on where to put a diffuse in this event.

    Could someone help?

    Thank you.

    Add an event listener in the constructor of your rendering engine and dispatches the event from the Manager. You certainly want the event to bubble as well.

    Here's an example, using a text control, but the theory is the same.

    http://www.CFLEX.NET/showfiledetails.cfm?channelId=1&object=file&ObjectID=595

    Tracy

  • Click event incorrectly attached after DOM manipulation

    I have a page with elements of entry and a span element style as a button. Register event handlers changes on input elements, to make the validation when the input values are changed. If the entries are not valid, I add the content of a div on the page to indicate the problem. I also save a click event handler on the span of style as a button.

    When I change an entry and then immediately click the duration (i.e. without leaving the input element before clicking on the duration of the update), I see:

    (1) mousedown on the duration
    2) switch to entry
    (3) mouseup on the entry

    This happens only when I change the DOM in the event handler changes on the entry. If I do not change the DOM then I see:

    (1) mousedown on the duration
    2) switch to entry
    (3) mouseup on the duration
    4) click on the duration

    In the first case, I see the mouseup attached to the input rather than the span element element, even if it has the same coordinates as the mousedown attached to the span element. Given the coordinates are within the span element and outside limits of the input element, I don't understand why mouseup is associated with the element of entry rather than the span element.

    There is an example of this at http://jsfiddle.net/4zx8rm7c/.

    I see this behavior in Chrome and Firefox 34.0.5 39.0.2171.95 m.

    If the association of the mouseup event with the input element, despite the apparently independent of the mouse event, behavior plan, coordinates I need to understand why that is. I looked at characteristics of COM event level-2 (briefly) and I don't see an obvious explanation.

    This forum is intended for the user support, not for issues related to web development.
    Try announcement Web development / standards evangelism MozillaZine forum. The contributors there are better informed on the problems of development of web page with Firefox.
    http://forums.mozillazine.org/viewforum.php?f=25
    You will need to register and log in to post in this forum.

  • Not reliable-Facebook login

    Hey hope that you guys are doing well,

    So this is my situation, I was working and I decided to take a brake and I wanted to check my facebook but I got a connection of the and there is no way that I could verify, I like firefox, google chrome the hatred and ie and safari is too slow, which can do to solve this problem, I tried to reinstall firefox , but nothing, I disabled my local internet firewall and nothing, I thought it was the firefall, but it was not so, I need your help guys! (I had to use google chrome) :)

    Thank you
    See you soon,.
    Jesus

    Here is a screenshot *http://i.imgur.com/LbjjNZh.png *

    Check the date and time of the clock on your computer: (double) click on the clock icon in the Windows taskbar.

    Find out why the site is not approved, then click on "Technical Details to expand this section.
    If the certificate is not reliable because no issuer channel was provided (sec_error_unknown_issuer) and then see if you can install the intermediate certificate from another source.

    You can retrieve the certificate and check details such as WHO issued the certificates and the expiration dates of certificates.

    • Click on the link at the bottom of the error page: "I understand the risks".

    Let Firefox recover the certificate: "Add Exception"-> "get certificate".

    • Click on the "view..." button. "and inspect the certificate and the Coachman, who is the issuer of the certificate.

    You can see more details like the intermediate certificates that are used in the details pane.

    If "I understand the risks" is missing, then this page can be opened in a (i) frame and in this case, try the shortcut menu and use "Frame this: Open image in New Tab".

    • Note that some firewall monitors connections (sure) and that programs like Sendori or FiddlerRoot can intercept connections and send their own certificate instead of the certificate of the Web site.
    • Note that it is not recommended to add a permanent exception in such a case, so only use it to inspect the certificate.
  • Errors in 'Speed' while accessing the mouse click events?

    Hello

    I built a software where it has a CVI callback function registered on the Panel. The function tests whether two cases, the first EVENT_LEFT_CLICK and then EVENT_LEFT_CLICK_UP. The user is supposed to keep the click button for some time (~ 1 second), and there is no problem. However, I have found that if by mistake (that users commit often) multiple rapid clicks are made, sometimes the click down the piece of event (EVENT_LEFT_CLICK) of the code is not read. I reduced the likelihood of this problem of the speed setting of double click (on Windows) to the maximum.

    I think that if I could eliminate the double click event, this problem would be resolved almost completely and only limited by the speed at which the processor can update mouse events.

    Hope you understand my problem.

    Thank you!!

    AUTOSOLVED.

    Thanks to a guy who posted his own solution on a Windows forum, to 'disable' the double click. Just change the HKEY_CURRENT registry value > ControlPanel > mouse > DoubleClickSpeed to 1. What makes the double click speed so fast that you can access virtually every user actually simple clicks.

    After doing this, in order to apply the registry editing, I ended explorer.exe running and he raised through windows task screen. However, change, this applies to what I opened the mouse Panel (without change or apply anything from there).

  • A .cab file needed for installation is not reliable. Please check the Cryptographic Services are enabled and that the cab file is valid .__Help! __

    OK, so I need DirectX 0.9 c to the game red alert 3, but I can't on the new directx installed on my computer because of this error
    A .cab file needed for installation is not reliable. Please check Cryptographic Services are enabled and the certificate file is valid.

    have you tried solutions on how to solve this problem posted by mods on the previous posts with a similar problem, but it does not work for me

    help is appreciated, thanks

    Game of automatic encryption Services Cryptography on AutoServices and then try again to install the program. To set the cryptographic on AutoServices, follow these steps:

    1. Start the Administrative Tools utility in control Panel.
    2. Double-click Services.
    3. Click Cryptographic Services, and then click Properties.
    4. Click Automatic for Startup type, and then click Start.

    Reference: http://support.microsoft.com/kb/822798/ and follow all practices listed in the article.

    Man is the only animal that laughs and cries; because it is the only animal that is struck by the difference between what things are and what they could be.

  • Contact information for return pixel Imaq image with the mouse click event

    Hello

    I'm trying to get the coordinates in pixels of an image Imaq based on a mouse click event, similar to this post and this post. The problem is that with the first post, I get the coordinates in the image control and hesitate to trust them, they seem to have the Center origin, may return negative coordinates and do not represent the actual size of the detector that I use (512 x 512). It also returns the coordinates outside the actual data when it is clicked on the image control framework. The second method returns simply null coordinates. What I want are the coordinates of the pixel displayed when hovering the mouse imaq image control framework.

    What baffles me, is that I tried the second method with a png stock file and it works fine, it is only when I create an image from the data of my camera than the coordinates are returned null. Note data views of camera under control of image very well.

    Any ideas would be useful. Enclosed is a picture of the offending code and the Panel before displaying the camera data is coming (I know it needs some cleaning).

    Thank you

    Tyler

    for help, please send your vi

    but I think that this example vi is your solution

    check this vi

  • Garry s Mod 13, install DirectX has failed, "a .cab file is needed for installation is not reliable?

    Hey!

    I did research on this problem literally all over the web, on the forums, support contact Dell and Microsoft hardware too.

    But the question is always free!

    -Very well, so I recently downloaded 13 beta Garry Mod, and I wanted to play. I clicked on 'Play' and he said:

    "Error!"

    You need to update DirectX - google search for "DirectX Runtime" "

    So, I put google and downloaded the link he gave me. I ran the program, and that's what happned:

    "Initializing...". »

    "Installation of components: "

    DirectX Runtime Opitonal Componets.

    Then suddenly out of nowhere, a window pops up saying:

    "A .cab file is needed for installation is not reliable." Please check the cyptographique Services are enabled and the certificate file is valid. »

    After clicking 'OK', it goes back to the origional instalation window saying "Installation failed."

    I'm extremely lost here, I searched for answers, but none of them seem to apply or work.

    I have Windows 7 on an Alienware M14XR2.

    Something will help you, thanks!

    try creating another account

  • Add images to the listfield on the click event

    Hello

    I'm trying to reproduce the "tableview with UITableViewCellAccessoryCheckmark" iPhone, IE, whenevever, I click on a line in the listfield, I want to display a check mark in the same row.

    In the click event, I am not able to get the graphics of the listfield object draw the check mark. Is there another way to do this?

    Any response is appreciated.

    Thank you

    http://www.BlackBerry.com/developers/docs/6.0.0api/NET/rim/device/API/UI/component/ListField.html#GE...

    (using the index you can retrieve the item from the underlying collection)

  • SegmentedControl fires that event when they are hit, not when you drag

    When debugging a project, I realized that the SegmentedControl only fires the Event.CHANGE when the user clicks on the UI element, and not when the user finishes dragging the tab.

    It feels like a bug to me, but I want to confirm with you people, if there is something that I am missing.

    I tried on the desktop and on the Playbook. I develop with FDT5.5.

    This component is not intended to be moved.

    The only triggered event is the change event.

    Kind regards

    Dustin

  • How can I trigger an action on the click event of wheel with ApplicationMessages?

    Hello world

    I've recently implemented ApplicationMessage provided for JDE 4.6.0. It allows developer create custom messages in the global Inbox of messages about its application. It works fairly well but I threshold have question though: when I click on my ApplicationMessage in overall Inbox of messages I get this pop-up: 'no messages not configured service. "You will be able to save draft".

    I want to trigger an action (updates my request on the foreground for ie) on this event and prevent this pop-up to appear. I have not found a way to do good.

    Somone have never worked with ApplicationMessage and managed to trigger an action on the click event of wheel?

    Thanks in advance.

    PS: A less important but another question: my ApplicationMessage time in the overall message Inbox is displayed this way: 10:... instead of 10:45 for example. And yet I didn't understand what was the reason of this bad view (it seems that the date is too long or something).

    I thought about it: you must register at least an ApplicationMenuItem for your ApplicationMessage, the action triggered by this menu item will be the same if you click your ApplicationMessage with the wheel.

Maybe you are looking for

  • Question about the extension of RAM on Satellite M30X 163

    Hello I can install it as an extension of RAM on my laptop model?I have now 2 x 256 MB (default factory equipment).I'd appreciate any help about my question:Type, frequency, the maximum capacity for each of the 2 slots? Thank you very much.

  • Sound stream using TCP

    HelloI'm trying to stream audio (analog data to the sound card) to a remote PC using the TCP protocol but when I try to runthe program then message 'error 4823 occurred at its entrance reading (DBL) .vi-> sound_local.vi"

  • Several Windows Update problems

    Hi I have a problem with windows update is there any possible reason why updates fail? I have two-thirds of firewall and antivirus both OFF when I tried updates Thank you

  • How can I get the latest update 8.1

    I have HP Pavilion.  Bought new with Windows 8.  Through the app store of microsoft, I upgraded to 8.1 when it avilable action.  I now want to move to 8.1 update, but it dows appear not in the app store.  The system is updated with all the latest dow

  • Animate the cc on flash scripts

    Hi im new to Adobe Flash... but I did some work on animate cc (in class)... and now, back at home, I have flash cs6... .and does not recognize these scripts...Something like this: I did it on animate: (I'm Hispanic btw... Stop means stop)Button1.addE