Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 650229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:01:49+00:00 2026-05-13T22:01:49+00:00

I have a s:List component. I want to handle a click event to know

  • 0

I have a s:List component. I want to handle a click event to know what list item is selected. I don’t see Click event in s:List. Any workarounds?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T22:01:49+00:00Added an answer on May 13, 2026 at 10:01 pm

    I figured how to do this. Thought I would share so that it helps others like me:

    <s:List id="taskList" creationComplete="taskList.addEventListener('listClickEvent',handleListClick);" width="100%" height="80%" labelField="description" dataProvider="{todoList}" 
            useHandCursor="true">
        <s:itemRenderer>
            <fx:Component>
                <s:ItemRenderer click="handleClick(event)">
                    <fx:Script>
                        <![CDATA[
                            import ListClickEvent;
    
                            import flash.events.MouseEvent;
    
                            import mx.controls.Alert;
                            private function handleClick(me:MouseEvent):void
                            {
                                var listClickEvent:ListClickEvent = new ListClickEvent("listClickEvent");
                                listClickEvent.index = itemIndex;
                                owner.dispatchEvent(listClickEvent);
                            }
                        ]]>
                    </fx:Script>
                    <s:Label text="{data.description}" top="5" bottom="5" right="3" left="3"/>
                </s:ItemRenderer>
            </fx:Component>
        </s:itemRenderer>
    </s:List>   
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a list component on the stage in an AS3 movie. I populate
I have a problem with an list-component on the sencha touch 2 framework. My
I have created navigaton view using Sencha touch 2. Navigation view has list component
I'm using dhtmlx Gantt Chart UI component which have task list and graphical chart.
I have a custom component, that contains a list of another components. If I
I have a page-scoped component, which has an instance variable List with data, which
I have list of articles on the page in table and i want to
I have list of structure. I want to modify a particular data from the
I have a List component that has drop-in CheckBox itemEditor that also serves as
I have a list component in my report that displays a set of data.Its

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.