Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 09-02-2006, 07:03 PM   #1
Registered User
stonyx's Avatar
Join Date: Jun 2006
Posts: 54
Default removeItemAt(0) when 6 items added

hello i think this is something easy but don't know how to do it

what i am trying to do is to remove an item in a datagrid (_xlcdatagrid2) after there's 5 items in it

this is the code for doing it with a button.
public function removeItem():void

so far this works but don't know what to use so it will delete the first row after a 6t row is added
stonyx is offline  
Old 09-03-2006, 07:15 PM   #2
Registered User
stonyx's Avatar
Join Date: Jun 2006
Posts: 54

i just try this but it does not work
any ideas

public function AutoB():void{
if (this._xlcdatagrid2.length > 2){
stonyx is offline  
Old 09-03-2006, 10:39 PM   #3
Tink's Avatar
Join Date: Nov 2001
Location: London
Posts: 2,128

DO NOT DUPLICATE YOUR POSTS. You have been here long enough to know that its frowned upon.

where'd ta get removeItemAt() from, i don't see in it in the documentation?

Just remove the item from you dataprovider and re-assign the data.
Tink is offline  
Old 09-04-2006, 03:27 PM   #4
Registered User
stonyx's Avatar
Join Date: Jun 2006
Posts: 54

sorry won't happen again but i was desperate LOL
i'll continue posting in the other one
stonyx is offline  
Old 09-04-2006, 03:29 PM   #5
six eyes
senocular's Avatar
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,875
Send a message via ICQ to senocular Send a message via AIM to senocular Send a message via MSN to senocular Send a message via Yahoo to senocular

senocular is offline  
Closed Thread

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Combine Items in DataGrid drewdrip Components 0 10-28-2005 07:21 PM
add loop items to array hgfl ActionScript 2.0 0 06-06-2005 01:52 AM
Floating items infiniti ActionScript 2.0 1 11-23-2004 01:47 PM
getting all listed items from a list box.. toytwukstudios Components 0 01-30-2004 12:24 AM
how to minimize the other submenus items when i do a click in some of the menu items? Lupax ActionScript 1.0 (and below) 3 11-30-2003 01:02 PM

All times are GMT. The time now is 04:15 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.