Any idea why this works for dataGrid but not for a list?

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:deviceservice="services.deviceservice.*">
<fx:Script>
  <![CDATA[
   import mx.collections.ArrayCollection;
   import mx.controls.Alert;
   import mx.events.DragEvent;
   import mx.events.FlexEvent;
   import spark.events.IndexChangeEvent;
   //[Bindable]public var totalPrice:int =0;
   private function initApp():void {
    firstList.dataProvider = new ArrayCollection([
     {label:"First", data:"1",value:"first"},
     {label:"Second", data:"2",value:"second"},
     {label:"Third", data:"3",value:"third"},
     {label:"Fourth", data:"4",value:"fourth"}
    secondList.dataProvider = new ArrayCollection([]);
   protected function initbut_clickHandler(event:MouseEvent):void
    initApp();
   protected function popupbut_clickHandler(event:MouseEvent):void
    //totalPrice+=int( secondList.selectedItem.data);
    //Alert.show(" The total price is:"+totalPrice );
   protected function secondList_dragDropHandler(event:DragEvent):void
    var artistList:String="";
  var dragObj:Array=
     event.dragSource.dataForFormat("items") as Array;
    trace (dragObj[0].value);
    artistList="Data: " + dragObj[0].value;
    Alert.show(""+artistList);               
   protected function firstList_creationCompleteHandler(event:FlexEvent):void
    initApp();
  ]]>
</fx:Script>
<s:List x="73" y="106" width="125" id="firstList"  dragEnabled="true"
    dragMoveEnabled="true" dropEnabled="true"  allowMultipleSelection="true" creationComplete="firstList_creationCompleteHandler(event)" ></s:List>
<s:List x="409" y="106" width="162" id="secondList"
   dropEnabled="true" dragEnabled="true"
   dragMoveEnabled="true"
    dragDrop="secondList_dragDropHandler(event)" ></s:List>
<s:Button x="187" y="245" label="Init app" id="initbut" click="initbut_clickHandler(event)"/>
<mx:PopUpButton x="359" y="266" label="PopUpButton" id="popupbut"  click="popupbut_clickHandler(event)"/>
<s:Label x="631" y="165" text="Label" height="17" id="show1"/>
</s:Application>

the example is shown here for a dataGrid:
http://livedocs.adobe.com/flex/3/html/help.html?content=dragdrop_5.html
It's the example located at the bottom:
I tried using a form instead of a dataGrid but it does not work, especially for the one in bold.

Similar Messages

  • My wifi goes down at least once a day and I have to unplug the time capsule and reboot it and then it works fine.  Any idea why this is happening/what I can do to fix it?

    My wifi goes down at least once a day and I have to unplug the time capsule and reboot it and then it works fine.  Any idea why this is happening/what I can do to fix it?

    I was having this problem while still using Mavericks -- it started after a Mavericks update last spring.  During the initial Yosemite beta runs over the summer, it seemed to be fixed, but after the official launch in October, I had all sorts of problems keeping connected.  Its gotten a little better, but still happens to at least one of my devices every day.  Weird that we still cannot figure out why the connection keeps dropping on some devices, but not others, and then the next day, one of the devices that didn't disconnect the previous day will disconnect, but the ones that did disconnect, stay connected.  It's just sloppy, poorly written software for technology that isn't working the way it should.  If you turn off Continuity and Handoff on all your devices, you will probably see that everything stays connected.  With those turned off on all devices, TC stayed connected to everything for over a month.  The day I turned Continuity back on, all the problems started again.  It had something to do with the bluetooth version being used, the wifi routine, and Apple's AirPlay technology not quite getting along with each other.

  • I am trying to softproof an image using a CMYK .icc file. I sent an image from LR 5 to PS CC 2014, opened the Camera Raw FIlter, but the hyperlink to access workflow is not showing up in the CR dialogue box... Any ideas why this might be?

    I am trying to softproof an image using a CMYK .icc file. I sent an image from LR 5 to PS CC 2014, opened the Camera Raw FIlter, but the hyperlink to access workflow is not showing up in the CR dialogue box... Any ideas why this might be?

    I am trying to softproof an image using a CMYK .icc file. I sent an image from LR 5 to PS CC 2014, opened the Camera Raw FIlter, but the hyperlink to access workflow is not showing up in the CR dialogue box... Any ideas why this might be?

  • When I compose an email in either gmail or yahoo, the cursor lags behind for about 2 seconds. This does not happen when I compose an email with Safari or Chrome. I am using a Mac with Firefox version 3.6.3. Any idea why this happens?

    When I compose an email in either gmail or yahoo, the cursor lags behind for about 2 seconds. This does not happen when I compose an email with Safari or Chrome. I am using a Mac with Firefox version 3.6.3. Any idea why this happens?
    == This happened ==
    Every time Firefox opened

    try
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • On my Mac (vers 10.7.5) I use Disk Utilites to burn a DVD. The DVD won't play on the Mac but will play on my Windows PC and on a DVD player. A DVD created on my PC will play on the Mac. Any ideas why this is happening?

    On my Mac (vers 10.7.5) I use Disk Utilites to burn a DVD. The DVD won't play on my Mac but will play on my Windows PC and on a DVD player. A DVD created on my PC will play on the Mac. Any ideas why this is happening?

    I used iDVD to create an IMG file
    You created the video DVD, the IMG file, with iDVD and just burned it with Disk Utility. As Klaus1 pointed out Disk Utility can't create video DVDs.
    OT

  • I use MAIL exclusively. I have a number of Mailboxes set up. My messages will not load on one particular Mailbox on my MacBookair, but do load in that Mailbox on my IOS devices. Any idea why this is happening?

    I use MAIL exclusively. I have a number of Mailboxes set up. My messages will not load on one particular Mailbox on my MacBookair, but do load in that Mailbox on my IOS devices. Any idea why this is happening?

    No idea at all, it might help if you gave more information, what type of mail, who provides it, any error messages etc.

  • IE6/CSS browser issue- any idea why this is not working?

    http://www.wilmerdds.com/test/index.htm
    If you look at the left column, you will see a black box.  It shouldn't be black. it should match the bg color of the column.  Any idea why this is happening?

    Hi
    The problem is that you are using a png, and IE6 does not support png transparency. You could try using the iepngfix from - http://www.twinhelix.com/css/iepngfix/.
    PZ

  • I have attempted to update a few apps and the install has frozen on 'waiting' not allowing me to either access the app or delete it, any idea why this has happened and how do I get around it?

    I have attempted to update a few apps and the install has frozen on 'waiting' not allowing me to either access the app or delete it, any idea why this has happened and how do I get around it?

    See if either of these things works for you. In the future ... Only update one app at a time. Forget that the Update All button even exists. It causes more problems than it does good - IMO.
    Make sure that you do not have a stalled download in iTunes - a song or podcast .... if you have a download in there that did not finish, complete that one first. Only one thing can download at a time on the iPad so that could be what is causing the problem.
    If that doesn't work - sign out of your account, restart the iPad and then sign in again.
    Settings>iTunes & App Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>iTunes & App Store>Sign in and then try to update again. Tap one waiting icon only if necessary to start the download stream.

  • Iphoto will not re-install after disappearing during a software update, any ideas why this happened?

    Before i ran the software update i had to iphoto icons in the launch pad, both had exactlly the same content so i just ignored it for a wile till i needed to update my photos, which i was hoping to do after the update.
    However when i restarted both iphoto icons had gone and iphoto seems to have been wiped off my mac completelly, I have got a back up of all my pic and videos so this is not a problem of recovering them.
    i have then tryed to instal iphoto from the app store, resulting in there being a perminant downloading icon making no progress over the last two hours.
    If any body has any idea why this happened and what i can do to provent it happening again as well as getting iphoto back the help wil be much apricated.

    In addition to Larry's questions what software update did you apply? Do you still have an iPhoto Library in your Pictures folder? If you do what happens if you double click on it?
    OT

  • My Mac won't read cyrillic in certain files and displays instead weird characters like this: "–í–µ-Ç–µ-Ä –ø-Ä–æ–¥–∏-Ä–∞–µ-Ç –¥–æ –∫–æ-Å-Ç–µ–π." Any ideas why this might be or how I can solve it?

    Yesterday I extracted the subtitles of an MKV file to try and print them. Unfortunately, when I open the .srt file with any text processor, it displays weird characters like the ones included in the title:
    "–û–±—ã–≤–∞—Ç–µ–ª–∏ –ø–µ—á–∞–ª—å–Ω—ã.
    –í–µ—Ç–µ—Ä –ø—Ä–æ–¥–∏—Ä–∞–µ—Ç –¥–æ –∫–æ—Å—Ç–µ–π."
    I thought this had to do with it being an .srt file, but just now I encountered the same problem with an Excel file.
    Any ideas why this might be or suggestions as to how to solve it?
    Thanks in advance,
    Mario

    It looks like an encoding problem.  You should try opening the file in a text editor where you can choose one of the various possible cyrillic encodings (utf-8, koi8-r, iso-8859-5, win-1251, MacCyrillic)

  • After clicking on my FF shortcut icon on my desktop, it takes FF 30-45 seconds to open. Any ideas why this happens?

    after clicking on my FF shortcut icon on my desktop, it takes FF 30-45 seconds to open. So i sit there and wai and wait and wait until it finally opens. Any ideas why this happens?

    In order to diagnose your problem you will need to download and install the below
    Try clicking the tap problematic apps while the trace is running
    Install the WPT (windows Performance Toolkit) 
    http://www.microsoft.com/en-us/download/details.aspx?id=30652
    Help with installation (if needed) is here
    When you have, open an elevated command prompt and type the following 
    WPRUI.exe (which is the windows performance recorder) and check off the boxes for the following:
    First level triage, CPU usage, Disk IO.  
    If your problem is not CPU or HD then check off the relevant box/s as well (for example networking or registry)  Please configure yours as per the below snip
    Click Start
    Let it run for 60 secs or more and save the file (it will show you where it is being saved and what the file is called)
    Zip the file and upload to us on Onedrive (or any file sharing service) and give us a link to it in your next post.
    Wanikiya and Dyami--Team Zigzag

  • On two occassions, all contacts were wiped off the Ipad. Any ideas why this would happen?

    On two occassions, all Contacts were wiped off the Ipad 2. Any ideas why this would happen?

    Did it happen during a sync or did they just disappear?  After they were gone, we you able to retrieve them during syncing?  Are you using any 3rd party apps to access your contacts or just the built-in Contacts app?
    In any case, I've not heard of or expeienced this on my iPhone 3G (synced with Outlook and now Google) or my iPad, although I've only had my iPad for a short time.

  • I just upgraded my software to OS X 10.9.2 (13C64) and i can no longer use my printer (epsun stylus sx235w).  any ideas why this would happen?

    i just upgraded my software to OS X 10.9.2 (13C64) and i can no longer use my printer (epsun stylus sx235w).  any ideas why this would happen?

    Mavericks is the name of your operating system. It is otherwise known as OSX 10.9.
    The previous versions were indeed "cat things".
    The way you would know if you need to download new software from Epson is to go the Epson website and search for your printer there, look for downloads, and see if they have new software listed for 10.9.
    You can revert your system back to what it was two weeks ago. This would be easier to do if you have a backup that you made prior to installing Mavericks (like with Time Machine). If you don't have a backup (sounds like you probably don't), you can look here for some directions about how to go back to the "Cat Thing" that you had prior to installing Mavericks: How to revert OS X back from Mavericks: Apple Support Communities
    If all of this is too hard for you, you could take your Mac in to your Apple store and ask them to help you.

  • Some photos from one day are showing up on my photo stream, and others from that same day are not. Any idea why this might be?

    Took a bunch of photos on vacation one day, and it seems like the first batch from one day are not showing up, but then all of a sudden, the ones from the second half of the day are there. They are not showing up on the photostream on my iPhone on which I took the photos, or on my iPad or in iPhoto on my computer. Any idea why this could be happening? All the other photos I took all week showed up on my Photostream.
    Is there anyway to force these photos into the photostream?
    Thanks! Any help would be appreciated!

    photo stream uploads photos from your photo app when it is connected to wifi and the photo app has been closed correctly.  That may be why your seeing photos pop up on different dates
    http://support.apple.com/kb/HT4486

  • My iphone suddenly died as well. Holding the sleep button and home button together got it going again. Any ideas why this happens?

    my iphone suddenly died as well. Holding the sleep button and home button together got it going again. Any ideas why this happened?

    No, I don't think anyone here would know.
    Mine has done that once or twice.

Maybe you are looking for

  • Best USB Webcam for iChat AV?

    Okay, I know the macam and ichatusbcam site's have lists of cameras they recommend or claim work with iChat AV. The trouble is, I have one of those cameras, and it does NOT work with iChat. I purchased the Labtec Webcam Pro, and while the video works

  • Safari opens links in new tabs, or in pre-existing tabs without giving me the option of opening the link in the same tab.

    Safari opens links in new tabs, or in pre-existing tabs without giving me the option of opening the link in the same tab. This has never happened before. Normally I would right-click and select open in new tab. How do I fix it? It's really frustratin

  • Safari Frame Rows Bug (white block)

    http://www.selfcrew.com/websitetest/album_dubberneck.html I'm building a site that uses framesets (outdated I've heard). None the less, on load, Safari will sporadically add a giant white space between the top and bottom frames. The big white space w

  • Oracle error ORA-01041 -

    Hi all, I am not well versed in oracle, facing problem in starting oracle instance in restricted mode. I have used the following command to start database instance in restricted mode *"startup restrict"*, but getting the following errors. C:\>sqlplus

  • OSX help menu search not activating menu items in Photoshop CC

    In Photoshop CS6, about 200 times a day I'd hit Command+Shift+/ to bring up the Help menu focused on the search field, just like I do in all of my apps. I'd type a couple letters from a menu item somewhere in the giant tangle of menu options, down ar