Fabulous.  I decided to restart Builder and whammo, it worked like a
charm.

I'm suspecting that sending my XP laptop to Hibernate while running
Eclipse may have honked something up?  I've been doing it for months,
and this is the first time I've run into any problems.

Anyone else have any issues with running the Eclipse plugin (or
Builder) for extended times and producing nonsense errors?

-- Todd

--- In flexcoders@yahoogroups.com, "tddclare" <[EMAIL PROTECTED]> wrote:
>
> I have written what I thought was a simple function which produces
> different results when I RUN the code versus when I DEBUG the code (with
> no breakpoints).  Here's the code:
> 
> private var songs:ArrayCollection;
> 
> private function getSongIDs():String {
> var songStr:String = "";
> for each(var song:Song in songs.source) {
> songStr += song.songID.toString() + ",";
> }
> songStr = (songStr.length == 0) ? songStr :
> songStr.substring(0,songStr.length - 1);
> return songStr;
> }
> 
> songs is an ArrayCollection of Song instances.  The Song class has a
> public "Number" variable called songID which IS set for all songs.
> The purpose of this function is to quickly grab a comma delimited list
> of the songIDs in the ArrayCollection of Songs.
> 
> Once I use the function, I am sending this info as a parameter to a PHP
> script, and was having all sorts of issues.  Trying to solve the
> problem, I now have the script just parrot back the parameters it was
> passed (it is echo-ing the parameter from the $_REQUEST array directly).
> 
> When I run the code normally (with 2 Songs in the collection, with IDs
> of 23 and 24) I get this for songStr:
> null24,23
> 
> WHOA!  Where did that null come from?
> 
> When I DEBUG the code with no breakpoints (just using the debug player)
> I get this for songStr:
> 24,23
> 
> which is what I expected the code to do...
> What in the holy hell is going on?  I think I am losing my mind.
> 
> Thanks!
>


Reply via email to