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

  • SEARCH
  • Home
  • 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 6544663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:29:33+00:00 2026-05-25T11:29:33+00:00

I am wondering if there is a way to allow users to select multiple

  • 0

I am wondering if there is a way to allow users to select multiple items from my AS2 List component without having to hold CTRL while clicking. So they would be able to select/deselect individual items with a single click – effectively togglling the item on/off in exactly the same way you would do by holding CTRL while selecting.

Can anyone think of any usability guidelines for this sort of interaction? This is kind of like presenting a list of checkboxes (but nicer I think). Are there any examples out there of simialr interaction.

Does the AS2 list component allow this to be done? eg i would like to say list._ctrlAlwaysOn = true ๐Ÿ˜‰

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-25T11:29:34+00:00Added an answer on May 25, 2026 at 11:29 am

    Live Demo of my solution: http://codebundles.com/listDemo.swf

    You could add a “check” infront of the options the user selects and remove the check if the user clicks it again, this way the user can de-select by tapping the object a second time.. I used to indexing and data on the list but here is a quick example that runs pretty smoothly! It looks really nice too!

    list.addItemAt(0, "โ€‹item 1", 0)
    list.addItemAt(1, "item 2", 1)
    list.addItemAt(2, "item 3", 2)
    list.addItemAt(3, "item 4", 3)
    list.addItemAt(4, "item 5", 4)
    list.addItemAt(5, "item 6", 5)
    _root.onMouseUp = function() {
        selectedObject = (list.getSelectedItem().data)
        tempString = (list.getSelectedItem().label)
        withcheckString =  "โœ“โ€‹" + (list.getSelectedItem().label)
        var stringArray:Array=tempString.split("โœ“โ€‹"); 
        withoutcheckString = stringArray.join(""); 
        trace(tempString.indexOf("โœ“โ€‹"))
        if (tempString.indexOf("โœ“โ€‹") == -1) {
            list.replaceItemAt(selectedObject, withcheckString, selectedObject);
        } else if (tempString.indexOf("โœ“โ€‹") == 0) {
            list.replaceItemAt(selectedObject, withoutcheckString, selectedObject);
        }
    }
    

    *One bug I can see coming is if you have a scroll bar like in my live demo… clicking to move that will cause a “mouseUp” event to be called and remove/add a check on your last selected list item.. so you may want to detect if the user’s _ymouse & _xmouse position are actually inside the list before running my “โœ“” replace code.. Shouldn’t be to hard ๐Ÿ˜‰
    *also, the ctrl+clicking may not work anymore but you could still add code to fix that as well…

    This same code will apply to the HTML.. but I’m sure there is better javascript stuff you can do with the html lists like highlighting the field instead of putting a check infront of it.. heck maybe even in AS2 you can highlight the field you have selected too….

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Wondering if there is any way to get the lambda expressions that result from
just wondering is there any way that I can return one value from my
I was wondering if there is way to open another page using a Modal
I was wondering is there a way in PHP that you could tell where
I am wondering is there a way to render a partial view in the
I am wondering is there any way we can test the font size/color of
I think I understand unit testing. But I was wondering: is there a way
Just wondering if there is any way (in C) to get the contents of
Just wondering if there is any way to get the NS records in C#.
Just wondering if there is a way in Spring to have a parent controller:

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.