[flexcoders] How can I receive the smallest value within an Array?

2009-04-16 Thread sailorsea21
Hi everyone, if I have an array as var boxSize:Array = new Array(25, 45, 32, 70, 50, 46, 80, 10); Is there a function that will return me the smallest value within that array? Thanks. -David

Re: [flexcoders] How can I receive the smallest value within an Array?

2009-04-16 Thread - -
= newint(0);for(i; iarray.length; i++) if(array[i]value)returnvalue; From: sailorsea21 sailorse...@yahoo.com To: flexcoders@yahoogroups.com Sent: Thursday, April 16, 2009 11:56:01 AM Subject: [flexcoders] How can I receive the smallest value within an Array? Hi

Re: [flexcoders] How can I receive the smallest value within an Array?

2009-04-16 Thread Paul Andrews
Just for the future, most people would do this: for ( var i:int =1; iarray.length; i++) - Original Message - From: - - To: flexcoders@yahoogroups.com Sent: Thursday, April 16, 2009 5:06 PM Subject: Re: [flexcoders] How can I receive the smallest value within an Array

RE: [flexcoders] How can I receive the smallest value within an Array?

2009-04-16 Thread Jake Churchill
: Thursday, April 16, 2009 11:44 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How can I receive the smallest value within an Array? Just for the future, most people would do this: for ( var i:int =1; iarray.length; i++) - Original Message - From: - - mailto:sailorse

Re: [flexcoders] How can I receive the smallest value within an Array?

2009-04-16 Thread - -
Thanks Paul! From: Paul Andrews p...@ipauland.com To: flexcoders@yahoogroups.com Sent: Thursday, April 16, 2009 12:44:18 PM Subject: Re: [flexcoders] How can I receive the smallest value within an Array? Just for the future, most people would do

RE: [flexcoders] How can I receive the smallest value within an Array?

2009-04-16 Thread Tracy Spratt
[mailto:flexcod...@yahoogroups.com] On Behalf Of Jake Churchill Sent: Thursday, April 16, 2009 1:27 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How can I receive the smallest value within an Array? array = array.sort(); smallest = array[0]; Jake Churchill CF Webtools 11204

RE: [flexcoders] How can I receive the smallest value within an Array?

2009-04-16 Thread Tracy Spratt
: Thursday, April 16, 2009 1:39 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How can I receive the smallest value within an Array? Thanks Paul! _ From: Paul Andrews p...@ipauland.com To: flexcoders@yahoogroups.com Sent: Thursday, April 16, 2009 12:44:18 PM Subject

Re: [flexcoders] How can I receive the smallest value within an Array?

2009-04-16 Thread - -
Thanks Tracy. From: Tracy Spratt tspr...@lariatinc.com To: flexcoders@yahoogroups.com Sent: Thursday, April 16, 2009 3:39:35 PM Subject: RE: [flexcoders] How can I receive the smallest value within an Array? Be aware that if you have two loops

Re: [flexcoders] How can I receive the smallest value within an Array?

2009-04-16 Thread f3l
] How can I receive the smallest value within an Array? Thanks Paul! -- *From:* Paul Andrews p...@ipauland.com *To:* flexcoders@yahoogroups.com *Sent:* Thursday, April 16, 2009 12:44:18 PM *Subject:* Re: [flexcoders] How can I receive the smallest value

Re: [flexcoders] How can I receive the smallest value within an Array?

2009-04-16 Thread - -
It will but at the moment I'm putting together a quick demo. Thanks! From: f3l auditor...@gmail.com To: flexcoders@yahoogroups.com Sent: Thursday, April 16, 2009 3:47:47 PM Subject: Re: [flexcoders] How can I receive the smallest value within an Array