Re: [flexcoders] What is the difference between an Array and an ArrayCollection?

2006-07-25 Thread JesterXL





A drawer from Disney's "Beauty and the Beast" that 
goes, "Dude, you just put something in me!".

It does this by emitting an event, 
collectionChanged, when this happens. Controls can listen for this event 
and knowwhen the array is updatedin order to redraw themselves, like 
theDataGrid, List, etc.

An Array is like a drawer in the real world. 
You can put something in it, but it doesn't talk to you.

- Original Message - 
From: Bill 
Brown 
To: flexcoders@yahoogroups.com 
Sent: Tuesday, July 25, 2006 5:59 PM
Subject: [flexcoders] What is the difference between an Array and an 
ArrayCollection?
This is a pretty newbie programming question, but coming from an 
AS1/AS2 background I'm not familiar with the difference between an Array and an 
ArrayCollection.Could someone please explain the difference, or suggest a 
URL that explains the difference? When I learned about arrays through 
Phillip Kerman's Actionscript book, he suggested that a "variable" was like a 
drawer that could hold data and an "array" was like a chest of drawers where you 
could reference each drawer with an index. What would an "arrayCollection" be in 
this analogy? Thanks,BB 
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   



  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] What is the difference between an Array and an ArrayCollection?

2006-07-25 Thread JesterXL





It also has some nice methods to help you put 
things in certain spots. You can add things via addItem just like 
Array.push, but it has cool methods like replaceItemAt, contains, and removeAll 
among others. All trigger this "collectionChanged" event. Finally, 
it implements some commonly used Interfaces which allows other controls to 
support ArrayCollection, making it just as flexible.

http://livedocs.macromedia.com/flex/2/langref/mx/collections/ArrayCollection.html

- Original Message - 
From: JesterXL 
To: flexcoders@yahoogroups.com 
Sent: Tuesday, July 25, 2006 6:06 PM
Subject: Re: [flexcoders] What is the difference between an Array 
and an ArrayCollection?

A drawer from Disney's "Beauty and the Beast" that 
goes, "Dude, you just put something in me!".

It does this by emitting an event, 
collectionChanged, when this happens. Controls can listen for this event 
and knowwhen the array is updatedin order to redraw themselves, like 
theDataGrid, List, etc.

An Array is like a drawer in the real world. 
You can put something in it, but it doesn't talk to you.

- Original Message - 
From: Bill 
Brown 
To: flexcoders@yahoogroups.com 
Sent: Tuesday, July 25, 2006 5:59 PM
Subject: [flexcoders] What is the difference between an Array and an 
ArrayCollection?
This is a pretty newbie programming question, but coming from an 
AS1/AS2 background I'm not familiar with the difference between an Array and an 
ArrayCollection.Could someone please explain the difference, or suggest a 
URL that explains the difference? When I learned about arrays through 
Phillip Kerman's Actionscript book, he suggested that a "variable" was like a 
drawer that could hold data and an "array" was like a chest of drawers where you 
could reference each drawer with an index. What would an "arrayCollection" be in 
this analogy? Thanks,BB 
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] What is the difference between an Array and an ArrayCollection?

2006-07-25 Thread Pan Troglodytes



To add to Jester's imaginative response, ArrayCollection actually wraps an Array. So inside, there is an Array, which can be accessed through the source property. But if you directly access the array, you don't get the cool events the make data binding work.
On 7/25/06, JesterXL [EMAIL PROTECTED] wrote:









A drawer from Disney's Beauty and the Beast that 
goes, Dude, you just put something in me!.

It does this by emitting an event, 
collectionChanged, when this happens. Controls can listen for this event 
and knowwhen the array is updatedin order to redraw themselves, like 
theDataGrid, List, etc.

An Array is like a drawer in the real world. 
You can put something in it, but it doesn't talk to you.

- Original Message - 
From: 
Bill 
Brown 
To: flexcoders@yahoogroups.com
 
Sent: Tuesday, July 25, 2006 5:59 PM
Subject: [flexcoders] What is the difference between an Array and an 
ArrayCollection?
This is a pretty newbie programming question, but coming from an 
AS1/AS2 background I'm not familiar with the difference between an Array and an 
ArrayCollection.Could someone please explain the difference, or suggest a 
URL that explains the difference? When I learned about arrays through 
Phillip Kerman's Actionscript book, he suggested that a variable was like a 
drawer that could hold data and an array was like a chest of drawers where you 
could reference each drawer with an index. What would an arrayCollection be in 
this analogy? Thanks,BB 



-- Jason

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] What is the difference between an Array and an ArrayCollection?

2006-07-25 Thread Tobias Patton












You can also supply sorting and filtering
criteria to an array collection.



This would be like a chest of drawers that
folds your socks and tosses the ones that have holes in them.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pan Troglodytes
Sent: Tuesday, July 25, 2006 3:11
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] What is
the difference between an Array and an ArrayCollection?











To add to Jester's imaginative response,
ArrayCollection actually wraps an Array. So inside, there is an Array,
which can be accessed through the source property. But if you directly
access the array, you don't get the cool events the make data binding work. 



On 7/25/06, JesterXL
[EMAIL PROTECTED]
wrote:







A drawer from Disney's Beauty and the Beast that
goes, Dude, you just put something in me!.











It does this by emitting an event, collectionChanged, when
this happens. Controls can listen for this event and knowwhen the
array is updatedin order to redraw themselves, like theDataGrid,
List, etc.











An Array is like a drawer in the real world. You can
put something in it, but it doesn't talk to you.















- Original Message - 



From: Bill Brown






To: flexcoders@yahoogroups.com






Sent: Tuesday, July 25,
2006 5:59 PM





Subject: [flexcoders] What
is the difference between an Array and an ArrayCollection?











This is a pretty newbie programming question, but
coming from an AS1/AS2 background I'm not familiar with the difference between
an Array and an ArrayCollection.
Could someone please explain the difference, or suggest a URL
that explains the difference? 

When I learned about arrays through Phillip Kerman's Actionscript
book, he suggested that a variable was like a drawer that could
hold data and an array was like a chest of drawers where you could
reference each drawer with an index. What would an arrayCollection
be in this analogy? 

Thanks,
BB












-- 
Jason 






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   



  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






Re: [flexcoders] What is the difference between an Array and an ArrayCollection?

2006-07-25 Thread Bill Brown



You guys are great! I don't think I've ever lauged so hard learning a programming concept.Thank-you very much!Perhaps there should be a section in the livedocs dedicated to magical furniture analogies...

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] What is the difference between an Array and an ArrayCollection?

2006-07-25 Thread John C. Bland II



You mean I'm supposed to throw those (socks with wholes) away?On 7/25/06, Tobias Patton [EMAIL PROTECTED]
 wrote:












  













You can also supply sorting and filtering
criteria to an array collection.



This would be like a chest of drawers that
folds your socks and tosses the ones that have holes in them.











From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com
] On Behalf Of Pan Troglodytes
Sent: Tuesday, July 25, 2006 3:11
PM
To: flexcoders@yahoogroups.com

Subject: Re: [flexcoders] What is
the difference between an Array and an ArrayCollection?











To add to Jester's imaginative response,
ArrayCollection actually wraps an Array. So inside, there is an Array,
which can be accessed through the source property. But if you directly
access the array, you don't get the cool events the make data binding work. 



On 7/25/06, JesterXL
[EMAIL PROTECTED]
wrote:







A drawer from Disney's Beauty and the Beast that
goes, Dude, you just put something in me!.











It does this by emitting an event, collectionChanged, when
this happens. Controls can listen for this event and knowwhen the
array is updatedin order to redraw themselves, like theDataGrid,
List, etc.











An Array is like a drawer in the real world. You can
put something in it, but it doesn't talk to you.















- Original Message - 



From: 
Bill Brown






To: 
flexcoders@yahoogroups.com






Sent: Tuesday, July 25,
2006 5:59 PM





Subject: [flexcoders] What
is the difference between an Array and an ArrayCollection?











This is a pretty newbie programming question, but
coming from an AS1/AS2 background I'm not familiar with the difference between
an Array and an ArrayCollection.
Could someone please explain the difference, or suggest a URL
that explains the difference? 

When I learned about arrays through Phillip Kerman's Actionscript
book, he suggested that a variable was like a drawer that could
hold data and an array was like a chest of drawers where you could
reference each drawer with an index. What would an arrayCollection
be in this analogy? 

Thanks,
BB












-- 
Jason 










  













-- John C. Bland III do what I can do when I can do it. - Chris Tucker, Money Talkshttp://www.gotoandstop.org
 - Home of FMUG.az

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] What is the difference between an Array and an ArrayCollection?

2006-07-25 Thread Dustin Mercer












No way man! Better ventilation if you ask
me :P











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John C. Bland II
Sent: Tuesday, July 25, 2006 5:14
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] What is
the difference between an Array and an ArrayCollection?











You mean I'm supposed to throw those (socks with
wholes) away?



On 7/25/06, Tobias
Patton tobias.patton@creo.com
 wrote:













You can also supply
sorting and filtering criteria to an array collection.



This would be like a
chest of drawers that folds your socks and tosses the ones that have holes in
them.











From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com ]
On Behalf Of Pan Troglodytes
Sent: Tuesday, July 25, 2006 3:11
PM
To: [EMAIL PROTECTED]ups.com 
Subject: Re: [flexcoders] What is
the difference between an Array and an ArrayCollection?















To add to Jester's imaginative response,
ArrayCollection actually wraps an Array. So inside, there is an Array,
which can be accessed through the source property. But if you directly
access the array, you don't get the cool events the make data binding work. 



On 7/25/06, JesterXL
[EMAIL PROTECTED]n.com
wrote:







A drawer from Disney's Beauty and the
Beast that goes, Dude, you just put something in me!.











It does this by emitting an event, collectionChanged,
when this happens. Controls can listen for this event and knowwhen
the array is updatedin order to redraw themselves, like
theDataGrid, List, etc.











An Array is like a drawer in the real world.
You can put something in it, but it doesn't talk to you.















- Original Message - 



From: Bill
Brown 





To: [EMAIL PROTECTED]ups.com






Sent: Tuesday, July 25,
2006 5:59 PM





Subject:
[flexcoders] What is the difference between an Array and an ArrayCollection?











This is a pretty newbie
programming question, but coming from an AS1/AS2 background I'm not familiar
with the difference between an Array and an ArrayCollection.
Could someone please explain the difference, or suggest a URL that explains the
difference? 

When I learned about arrays through Phillip Kerman's Actionscript book, he
suggested that a variable was like a drawer that could hold data
and an array was like a chest of drawers where you could reference
each drawer with an index. What would an arrayCollection be in this
analogy? 

Thanks,
BB










-- 
Jason 
























-- 
John C. Bland II
I do what I can do when I can do it. - Chris Tucker, Money Talks

http://www.gotoandstop.org - Home
of FMUG.az 






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   



  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___