Can't erase the AS3 table

Hi I'm using the code provided below which I got from an Adobe Flex 4 page. And I want to add a 'clear' feature, I thought that the way to go was to simply clear the data provider, but it does not work... any help would be great!

What I did: make a button this data provider clears-> ConfigData.Global.newDataProviderAC.removeAll (); <-chart remains intact...

Code:

public void explodePiece(e:Event):void {}
explodedPiece = new Array();
explodedPiece [newSeries.selectedIndex] is. 2;
newSeries.perWedgeExplodeRadius = explodedPiece;
}

public function setupPieChart (): {PieChart

newChart = new PieChart();
newChart.showDataTips = true;
newChart.selectionMode = "unique."
newChart.dropEnabled = true;
newChart.dragEnabled = false;
newChart.horizontalCenter = 0;

newChart.height = 350;
newChart.width = 350;

newChart.addEventListener ("dragEnter", doDragEnter);
newChart.addEventListener ("dragDrop", doDragDrop);

newChart.dataProvider = ConfigData.Global.newDataProviderAC;

newSeries = new PieSeries();
newSeries.field = ConfigData.Global.CompareField;
newSeries.nameField = ConfigData.Global.CompareNameField;

var newSeriesArray:Array = new Array();
newSeriesArray.push (newSeries);
newChart.series = newSeriesArray;

newChart.addEventListener (ChartItemEvent.CHANGE, explodePiece);

Create a caption for the new diagram.
NewChart return;
}

public void doDragEnter(event:DragEvent):void {}
var dragTarget:ChartBase = ChartBase (event.currentTarget);
DragManager.acceptDragDrop (dragTarget);
}

public void doDragDrop(event:DragEvent):void {}
var dropTarget:ChartBase = ChartBase (event.currentTarget);

var table: items = event.dragSource.dataForFormat("chartitems") in the table;

for (var i: uint = 0; i < items.length; i ++) {}
If (dropTarget.dataProvider.contains (items [i] .item)) {}
} else {}
dropTarget.dataProvider.addItem (items [i] .item);
}
}
}

Change the example:

public var newDataProviderAC:ArrayCollection = new

ArrayCollection ([]);

Tags: Flex

Similar Questions

  • How can I erase the data on my laptop before I give it away?

    How can I erase the data on my laptop before I give it away?

    See this document.

    https://support.Apple.com/en-us/HT201065

  • I can't erase the cc, bcc, or go on a page of e-mail

    I can't erase the cc, bcc, or leave on a page of e-mail even after switching control activates / turns off at a stop position, I have the latest update.

    Your profile indicates that you have an iPhone 4 running iOS 9.2.1.  It is not possible.

    The latest version of iOS for your iPhone 4 could run is iOS 7.1.2.

    So it is not at all clear if you talk about an iPhone 4 being run an older version of iOS, another iPhone running a newer version of iOS, or perhaps an iPad (as after all this is the area of the iPad from Apple Support communities).

    Thus, without knowing all of the above, try to reset your iPhone or iPad.  Press and hold the power and home together for 10 seconds until the Apple logo appears.

  • How can I erase the pages of an existing pdf file?

    How can I erase the pages of an existing pdf file?

    Hi doraa14075208,

    You sure you want to delete the pages of a PDF file, if yes then you need Acrobat application to rotate, move, deleteand renumber pages in Adobe Acrobat PDF.

    Kind regards
    Nicos

  • Can't erase the history of Safari completely

    So somehow, I managed to set up the date to December 31, 2100. The only problem is that I opened YT in Safari and now I can't erase it from history. When I remove and reopen Safari it comes back. I tried to erase the history, but it did not help. However, it seems that it has disappeared from my Mac, now I can't remove it to iOS.

    There are solutions to this problem?

    Yes, I absolutely do not learned to play with the date.

    Settings/Safari/clear history and data from the Web site does not work?

  • My iPhone was stolen, and find my iPhone is disabled, how can I erase the data on my iPhone

    Hello

    My iPhone was stolen and "Find my iPhone" has been disabled, also phone was not synchronized with iCloud.

    Is it still possible to erase the data on the iPhone.

    Using the IMEI number, can I block my iPhone.

    Indications will be useful.

    Sorry no.

    You can report it to the police and tell your provider of mobile telephony on the flight.

    In addition, change your passwords.

  • With the 38.0.5 version, I can't erase the history or add bookmarks! Even in safe mode.

    When I do CTRL-D, nothing appears, and when I select 'Book mark this page', nothing happens.
    In addition, it will NOT erase the history.

    Have refreshed, removed, reloaded, doing everything I can. These two problems.

    You can check for problems with the database places.sqlite file in the Firefox profile folder.

  • I can't erase the free space in the disk utility, where is he?

    After the installation of El Capitan, I can't erase free space in disk utility, where is he? How can we erase files deleted safely with El Capitan?

    Secure deletion has been removed from El Capitan. There are 3rd party apps that can, but it's a bad idea on SSDS.

  • can I erase the disc without any wireless networks

    I have a time capsule which is my wireless router.  I have not used for time machine because he has older backups of Mac and does not place to save my current iMac.  I can erase the disc without any wireless networks?  I do Air Port utility?

    I can erase the disc without any wireless networks?

    Yes

    I do Air Port utility?

    Yes, see the procedure below

    • Open AirPort Utility
    • Click on the image of the Time Capsule
    • Click Edit in the window that appears
    • Click the disks at the top of the next window
    • Click on clear disk
    • Choose the Quick erase option
    • Click clear

    The procedure will take only a minute or two

  • How can I erase the Awesome bar?

    I followed the instructions provided by Mozilla.
    IT DOES NOT WORK.
    No matter what I do, if I type in the bar location... also called the address bar... also called the Awesome bar... should have been called the useless bar... old sites Web will show that I have not visited in more than a year.
    Even if I clear my history every day.
    Yes, I select AS my calendar.
    Yes, I click AND DOWNLOAD the HISTORY of NAVIGATION.
    Still, whenever I type anything in the bar of Useless, old sites Web is suggested.
    How can I erase this and never make it do this again?
    How can I get the guy who designed the bar pulled Useless?

    (On another note... why I have to provide a password of eight letters at least 1 number? If I want a weak password, MY risk. What do you care? Also, if every Web site requests a password of eight letters at least 1 number you are actually makes it easier to hack because I am limited on coming up with new personal passwords for me since I have to remember and you make it so complicated.)

    Hello

    To disable the address bar to not display search history results. You can do this by going to Firefox-> Options-> privacy and select the option that says: "when you use the location bar suggest" and set it to "nothing". I have attached a screenshot that might make it easy for you to locate.

    I hope this helps.

  • How can I erase the ipad back to factory settings

    How can I CLEAR the IPAD BACK to FACTORY SETTINFGS

    Go to settings then general then scroll down and tap reset and then tap erase content and settings

    Good luck

    Paul

  • Can't erase the micro sd card.

    Hello there, its all in the title.

    In settings / storage / I can unmount the storage, install sotrage, but not erase the storage.

    I have already reset the Tablet two times but no luck.

    Any help would be much apreciated.

    Thank you

    Hello

    People recommend to use a computer to format the microSD card if necessary to. One thing missing here: some Android phones have this option just below the option remove but NOT on the slate 7 more (my loan 7 slate is also a slate 7 more).

    Kind regards.

  • BlackBerry smartphones can not erase the music file information

    I have a problem loading music on my 8830.  I have a 4 GB memory card, but I can't figure out how to erase the music I deleted.

    Cancel the request.  I could restart the BB and delete the old file information.  Found a few old son who had the same problem.

  • How can I remove the imported tables frame color?

    Hello. I imported my Word document that has a table. Everything looks great, but when I export to PDF format, the table box is gray. I want the table to show.

    I don't want to have to re - create the entire table with text boxes, so I wonder if I can just remove the color of the frame?

    Thank you!

    You are welcome.

    Please remove your personal information when you respond by e-mail. Thank you.

  • How can I erase the marks of pencil/pen on a PDF using Acrobat 11?

    I googled this issue without success. I know that you can erase the pencil marks made with the pencil in Acrobat, but I need to erase the physical of a scanned document pencil marks.

    I know that I can use Photoshop to erase, but I saw an eraser tool in much smaller pdf programs! Can someone tell me if it is still possible to do this with Acrobat 11?

    Thank you for your time!

    In Acrobat XI, it is under: Edit - prefs. - edition content - image editor.

Maybe you are looking for

  • Exchange of CD-ROM on my laptop

    How can I ask Toshiba about my problem?I have a problem with my optical drive.Can I change with Sony DW-Q58A?

  • (Redirected) SSD drivers

    Are there drivers I can use to make my Dell latitude D520 laptop recognize my SSD and operate

  • {94550F69-BEF6-4C77-B1D5-4EEDEF839C37} v0.9.3723.2.msi

    the ede PC application uninstall program pour Windows phone asks me to find this file for uninstalling the previous version and visisblement, it don't is not... it would be good debugger your apps! It really gives confidence in your developers!

  • in the meantime media

    every time I have import media meanwhile shown as 'media '.He used to work until two days agoIt seems that win10 installed some update and then it broke somehowImported media is mi/gal (large 3 GB) and located on the local hard drive. The user has fu

  • After effects CS5 work on first Pro CC?

    I've been flip flop on the idea of the CC for awhile now. I'm really looking for subscribing to first Pro CC just because of the ability of the chain stabilizer. I currently don't mess around too deep anyway with After Effects, but I'd be able to use