[flexcoders] Newbie Question - Random position in an array

2008-03-01 Thread Sean Scott
Hi folks, wondering if someone has a function that returns a random position from an array. Thanks from a newbie,

Re: [flexcoders] Newbie Question - Random position in an array

2008-03-01 Thread Sean Scott
something like myArray[randomNumber] whatever - Original Message From: Sean Scott [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, March 1, 2008 9:39:39 PM Subject: [flexcoders] Newbie Question - Random position in an array Hi folks, wondering if someone has a function

Re: [flexcoders] Newbie Question - Random position in an array

2008-03-03 Thread Sean Scott
you can just increment the randomly chosen index until you find something. Or randomly pick again (although with *really* sparse arrays, this could theoretically be a perf problem). -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Sean Scott [EMAIL

[flexcoders] Populating a VBox with an Array Collection

2009-03-18 Thread Sean Scott
; vbRenderer.determineHowLong(timelineObjs[i].createdAt, dateNowMS); holder.addChild(vbRenderer) } trace(ObjectUtil.toString(timelineObjs)); trace(displayTimeline 2); } -- Sean Scott cell: 612.867.8133 portfolio: http://www.flickr.com/photos/92876...@n00/sets/72157613990263453/ profile: http://www.linkedin.com