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
=
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
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
: 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
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
[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
: 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
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
] 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
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
10 matches
Mail list logo