This text is replaced by the site logo. If not, try enabling javascript.
Advertise
|
About us
|
Site map
|
Syndicate
|
Search site
|
Mailing list
|
View Authors
|
Become an Author
Home
Tutorials
Forums
Articles
Blogs
Movies
Library
Employment
Press
ActionScript.org Forums
>
ActionScript Forums Group
>
ActionScript 3.0
removeItemAt(0) when 6 items added
User Name
Remember Me?
Password
Register
FAQ
Members List
Social Groups
Calendar
Search
Today's Posts
Mark Forums Read
Thread Tools
Rate Thread
Display Modes
09-02-2006, 07:03 PM
#
1
stonyx
Registered User
Join Date: Jun 2006
Posts: 54
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
{
_xlcdatagrid2.removeItemAt(0);
}
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
View Public Profile
Find More Posts by stonyx
09-03-2006, 07:15 PM
#
2
stonyx
Registered User
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){
_xlcdatagrid2.removeItemAt(0);
}
}
stonyx
View Public Profile
Find More Posts by stonyx
09-03-2006, 10:39 PM
#
3
Tink
Addict
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
View Public Profile
Visit Tink's homepage!
Find More Posts by Tink
09-04-2006, 03:27 PM
#
4
stonyx
Registered User
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
View Public Profile
Find More Posts by stonyx
09-04-2006, 03:29 PM
#
5
senocular
six eyes
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,875
http://www.actionscript.org/forums/s....php3?t=115777
__________________
(6)
senocular
View Public Profile
Visit senocular's homepage!
Find More Posts by senocular
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Rate This Thread
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
Rate This Thread
:
5 : Excellent
4 : Good
3 : Average
2 : Bad
1 : Terrible
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 Rules
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
ActionScript Forums Group
ActionScript 3.0
ActionScript 2.0
ActionScript 1.0 (and below)
Simple Stuff (Newbies)
Flash General Questions
Flash 10 General Questions
Flash 9 General Questions
Flash 8 General Questions
Other Flash General Questions
Flex
Flex 2, 3 & 4
Flex 1
Extensions and Plugins
Components
JSFL - Extending Flash
Desktop, Mobile and non-browser Environments
AIR (Apollo)
FlashLite / Portable Devices Development
Projectors and CDs
Supporting Technologies
HTML and JavaScript
haXe
Server-Side Scripting
Flash Remoting
Flash Media Server
General
Best Practices
Gaming and Game Development
Animation and Effects
Flashants Support Forum
Community Boards
General Chat
Just for Kicks Challenges
Detention
Flash In Action
Site Check
Cool Sites
Widgets
Decommissioned
Projects and Positions
CMS Forums
Announcements Board
Content Postings / Updates
Product Review Requests
CMS Technical Questions
Process Questions
Collaboration & Suggested Articles
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:57 AM
.
///
Categories
Tutorials
Flash
Flex
Articles
Best Practices
Product Reviews
Third Party
Press Releases
The Community
Featured Jobs
Technical Flash Artist
MADISON, USA
iPhone/iPad Developer - CREATIVE CIRCLE
Philadelphia, USA
UX DESIGNER - CREATIVE CIRCLE
Philadelphia, USA
- More ActionScript, Flash and Flex jobs in the Employment Section.
- Advertise a job for free
Contact Us
-
Home Page
-
Archive
-
Privacy Statement
-
Top
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, 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
.