How to make reference to what has been activated in a TileList using an ItemRenderer

Hello

I have a Tilelist component and I use an ItemRenderer, which is a button.

I do not understand how to refer to what the user has clicked. So, if the first tile (which is the first Explorer) is checked, how can I know that that an individual has been clicked.

< mx:TileList

    id ="myTL"

dataProvider="{myAC}"

Width="400"

Height="400"

='2' columnCount

number of lines='2' / >

< mx:ArrayCollection id="myAC">

< mx:Array >

    <mx:Object id="first" label="1" />

    < mx:Object label="2" / >

    < mx:Object label="3" / >

    < mx:Object label="4" / >

< / mx:Array >

< / mx:ArrayCollection >

ItemRenderer:

"" < mx:Button xmlns:mx = "http://www.adobe.com/2006/mxml"

Click = "Alert.Show ("this was clicked') '> "

< mx:Script >

<! [CDATA]

import mx.controls.Alert;

]]>

< / mx:Script >

< / mx:Button >

Thank you.
-Laxmidi

Hi Laxmidi,

Using the itemClick event you can do this by using the event object. See the code example below:

<>

xmlns:MX ="http://www.adobe.com/2006/mxml" > ".

Import mx.events.ListEvent;

Import mx.controls.List;

Import mx.controls.Alert;

Import mx.events.ItemClickEvent;

private function onItemClick(event:ListEvent):void

{

var strAlert:String = "line of the Index Clicked element:" + event.rowIndex + "\n"; "."

strAlert +=

' Column Index Clicked element: " + event.columnIndex + "\n";". "

Alert.Show (strAlert);

}

]]>

Click = "http://www.adobe.com/2006/MXML Alert.show" ( 'It was clicked') ">"

Import mx.controls.Alert;

]]>

You can also try this by writing the Click event on the button in the TileList as itemRenderer where you can easily access the itemClicked data easily using the data object.

Thank you

Jean Claude

Tags: Flex

Similar Questions

  • How to make sure the OS has been started after Start-VM

    Reviews - Windows OS

    I'm following the tasks in a script.

    1. VM stop

    2 return instant

    3. start the virtual machine

    Command start VM, I perform certain operations continuous BONE. But orders start VM stops when start the guest operating system has started. How can I determine that Windows operating system has been started successfully and I can start the operation. Are there any available specific CMDlet to check the same thing?

    Of course, the following script does something like that

    $vmName = 
    $esxCred = Get-Credential -Credential "ESX-account"
    $vmCred = Get-Credential -Credential "guest-account"
    $myScript = @"
    net start
    "@
    
    $vm = Get-VM $vmName
    $vm | Start-VM -Confirm:$false | Out-Null
    # Wait till the VM is powered on
    while((Get-VM $vmName).PowerState -ne "PoweredOn"){sleep 5}
    # Wait till service is running
    $msg = $vm | Invoke-VMScript -HostCredential $esxCred -GuestCredential $vmCred -ScriptType "bat" `
                   -ScriptText $myScript -ErrorAction SilentlyContinue
    

    The variable $msg will contain all the services running on the client.

    You can check if the specific service you want to run is listed otherwise you browse these last lines, until the service is here.

    Something like that

    ....
    do{
       $msg = $vm | Invoke-VMScript -HostCredential $esxCred -GuestCredential $vmCred -ScriptType "bat" `
                   -ScriptText $myScript -ErrorAction SilentlyContinue
       sleep 5
    } until($msg.Split("`n") | where{$_ -like "*Workstation*"})
    

    The condition "until the" translates $null as long as the text "Workstation" is not present.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • How to make a site that has been blocked?

    My nephew-in-law installed a malware product that has blocked my access to Cigna account. How to regain access to this particular account?

    These programs have a "bypass". Ask your son to this topic.

  • How to discover the field that has been activated in a time-new-record-instance

    Suppose that: a block several record. The user is positioned on a record existing on the land has

    Action: the user clicks on blank (new) record field B

    Question: How can I discoverer was clicked on field B in the times-news-record-instance? Already tried: system.current_item and: system.trigger_item. They both contain "field.

    Published by: user473811 on August 26, 2010 04:56

    Hello

    For the new record of recording/empty if the user tries to access any field, then cursor won't allow access this field. It will go to the first field in this block navigation or you use any variable as trigger_item/current_item system, etc. You can test when you click on any field cursor will go with force to the first field of navigation of this block. So in the case you always it will return A FIELD, which is correct. If the cursor remains on the field, then it will return this the name field that you can test for all previous records by accessing any field at random.

    -Clément

  • Apple os 9.3.3 charged down behind my back and now my i phone will not open most of the apps because there is not enough memory.  I see that I have 40 GB of memory left on the cloud over 50.  Question, how can I use my pc to see what has been done

    Apple os 9.3.3 charged down behind my back and now my i phone will not open most of the apps because there is not enough memory.  I see that I have 40 GB of memory left on the cloud over 50.  How can question, I use my pc to see what has been downloaded on the cloud?

    Your question has nothing to do with iCloud. You should remove unnecessary data from your phone to free up about 10% of your phone's storage space.

  • How can I save a form so that the data is visible.  Currently, I don't see what has been typed on the form by clicking on the cell and then it disappears when I move to the next cell.

    How can I save a form so that the input data are visible.  When I click on the cell, I can see what has been entered, but when I go to the next cell, the data is hidden again.  I would like to print the file with the visible information that has already been entered.

    To clarify what mentioned TSN, forms PDF that are used and saved by the application on a Mac are corrupt in a number of ways. When a form that has been corrupted by the Preview is opened in Acrobat/Reader, one of the symptoms is exactly what you describe. If you have access to Acrobat and the original form, empty, not corrupted, you can export the form data in a data file (e.g., FDF) and import the shape of FDF data in the blank form.

  • What has been the recent initial risk security involving Javascript in Firefox?

    What has been the recent initial risk security involving Javascript in Firefox? I downloaded the suggested "No Script" to be able to allow or forbid scripts on Web sites. However, it gets a little frustrating when waiting for pages to download, then realize that I have to enable them. I really need to make it longer?

    JavaScript is not any security risk known that have not been resolved in recent versions of Firefox. You are thinking maybe Java, which is full of known security holes and should be turned off, but is not related to the Javascript in any way.

  • If I get a data execution prevention message, how can I find which program has been interrupted?

    If I get a data execution prevention message, how can I find which program has been interrupted?

    Hi Robhofm,

    Usually the Data Execution Prevention (DEP) automatically monitors Windows programs and services. You can increase your protection by having DEP monitor all programs.

    For the program being stopped by DEP, you will receive an error message indicating the cause of the stop and the name of the program.

    For more information you can consult.

    Data Execution Prevention: Frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows-Vista/data-execution-prevention-frequently-asked-questions

    See also:

    What is Data Execution Prevention?
    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-data-execution-prevention

    This refer below link provided to change the DEP settings.

    Change Data Execution Prevention settings
    http://Windows.Microsoft.com/en-us/Windows-Vista/change-data-execution-prevention-settings

    Thank you, and in what concerns:
    I. Suuresh Kumar - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • My hotmail account has been blocked because someone else used it how do I unlock it?

    My account has been block

    My account * address email is removed from the privacy * has been blocked because someone else used it how do I unlock it?

    Hello

    What mail client do you use?

    When you use Windows live mail and the question you have posted is related to Windows Live, so it would be better suited in the Windows Live community. Please visit the link below to find a community that will provide the best support.

    http://windowslivehelp.com/product.aspx?ProductID=1

  • How to determine if an exe has been installed?

    Gurus:

    I have Windows 7 and Norton-Anti-anti-virus/firewall.

    I came across a strange pop-up message when I logged in to my computer today. A pop-up window, said that "do you want to install \SYSWOW\MAClean.exe (not sure the path or the name of the exe)? While I was doing research on it using another computer, he disappeared. What is one-sided, I don't think any exe with MA*.exe in the computer. My computer also seems to be suspended during indexing - it connects normally - no delay - if I remove the wireless connection. other times, he connects very well, even with the wireless connection is ON.

    My questions are:-

    (1) how to determine if an exe has been installed ("I see not all facilities in uninstall it or change of program" window in the control panel)?

    (2) is it possible to list out all messages 'Alerts' or 'Popup' that appears on the screen?

    Best regards

    San

    HI San,

    Thanks for posting your question on the Forum of the Microsoft community.

    This can happen if the corresponding .exe file is associated with a program that is installed on your computer. To check the instance of the file, you can check in the list of programs and features in Control Panel. Apart from this, it can be due to an infection by the virus.

    To know different alerts and notifications, you can open the Action Center in Windows and check important notifications or the needs of Windows to accomplish tasks. To do this, please refer to the following location: Start > Control Panel (see: large icons) > Action Center.

    Also, you can also check error messages in the event viewer for more information.

    (Click Start, type Event Viewer in the Start Search and press ENTER.)

    To check the program third party or service by giving pop-ups/alerts, you can start the computer in a selective startup with no third-party software in operation. This process is known as a clean boot.

    How to perform a clean boot in Windows
    http://support.Microsoft.com/kb/929135

    Note: See "How to reset the computer to start normally after a boot minimum troubleshooting" to reset the computer to start as usual after a repair.

    In addition, if your computer hangs or crashes often, I suggest you to try the steps from the following link.

    8.1 Windows, Windows 8 or Windows 7 hangs or freezes

    http://support.Microsoft.com/kb/2681286/en-us

    Warning: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    I hope this information is useful. Please post for any further assistance.

  • How do I know if my windows has been activated

    I installed my copy of windows 7.i have also received message "your windows has been activated successfully" when I was reviewing. Tell me what are the other ways to know that my windows is genuine and active? Another allows my fraudulantly product key?

    Astrid

    How to tell if Windows is activated?
    http://Windows.Microsoft.com/en-us/Windows7/how-can-I-tell-if-Windows-is-activated

    Not so much a do not give it/post to any forum or send it by e-mail. Anyone who uses your computer can also see your product key.

    JS
    http://www.PAGESTART.com

    Never be afraid to ask. This forum has some of the best people in the world to help.

  • See what has been deleted by Collections.retainAll ()?

    I have two sets, let's call them s1 and s2. S1 is a HashSet < String >; S2 is a collection < String >, as is the set of keys for a hash table.

    I want to call s2.retainAll (s1). This removes all mappings of the HashMap which keys are not in s1. However, I would like to know what has been deleted. retainAll() returns a boolean value indicating whether the s2 has been changed by the call. I would like to know exactly how it has been modified.

    Note that I don't expect to be able to use retainAll(); I'm guessing that the solution will involve iterating over the two sets. I just wonder what is the most effective method of this accomplishin.

    Thanks to anyone who can suggest anything.

    Published by: 803559 on May 13, 2011 21:51
    Set s2Copy = new HashSet(s2);
    s2.retainAll(s1);
    s2Copy.removeAll(s2);
    

    At this point, s2Copy contains the items that you are looking for.

  • I'm on an old computer with microsoft XP, it has been so long since I used it, one that I forgot my password can someone tell me how to reset the password?

    I'm on an old computer with Microsoft Windows XP, it has been so long since I used it, one that I forgot my password can someone tell me how to reset the password?

    Hello

    This is information from Microsoft for when you forgot your XP password.

    "How to connect to your Windows XP-based computer if you forget your password or if your password expires"

    http://support.Microsoft.com/kb/321305

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    Other information above, we can not help you more with this.

    Microsoft prohibits any help given in these Forums for you help bypass or "crack" passwords lost or forgotten.

    Here's information from Microsoft, explaining that the policy:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-security/keeping-passwords-secure-Microsoft-policy-on/39f56ef0-5d68-41AD-9daa-6e6019c25d37

    See you soon.

  • I noticed that my remote access has been activated twice in a week but I did not. no way to verify when, what, who activated via the event log,...?

    I noticed that my remote access has been activated twice in a week but I did not. no way to verify when, what, who activated via the event log,...?

    Hi dewthisnow,

    The information office for remote access must be in the security log.

    For more information, see:

    To disable remote desktop

    To view the logs in Event Viewer, see:

    Using the event viewer        

    Procedure to view and manage event logs in Event Viewer in Windows XP

  • How will I know if a product key for xp has been activated yet

    Hi I recently bought a copy of windows xp pro and what he was going to install on my laptop that I'm on vista, it is an authentic copy from what I understand, but before starting the installation, I need to know if the product key has been activated yet, is it possible to tell? Thank you all

    Simply call Microsoft on the toll free number: 1800-936-5700.

    Give them the product key, and they will tell you if it has been used for activation aldready and if it has been blocked.

    Also give them the part number of the Windows XP disk and they will tell you if what drive it is. (OEM, retail). and they can also tell you if the product key will match and work with the disk.

    Do that before you start the installation, train them if the disk and product key do not match, you will be stuck.

Maybe you are looking for