You probably need to de-url it. Remember, you are loading a URL string so you'll prob have %20's, etc in there.
On 2/23/06, Adrian Lynch <[EMAIL PROTECTED]> wrote: > > You haven't said what the problem is. > > -----Original Message----- > From: Andy Matthews [mailto:[EMAIL PROTECTED] > Sent: 23 February 2006 20:18 > To: CF-Talk > Subject: Getting data into Flash 8 > > > I'm getting so freaking pissed at Flash and at Macromedia I can't see > straight. > > I don't want to be one of those people who complains about changes in > programs but for God's sake Macromedia/Adobe leave something alone for at > LEAST one version! > > That's my rant, but here's my problem. I'm trying to pass data into Flash > by > calling a coldfusion page. That CF page returns this string: > > ?someVar0=Matt Dusk&someVar1=The Monkees&someVar2=Tantric&someVar3=Clay > Walker&someVar4=ESPN&someVar5=EMI-Sparrow&someVar6=Columbia > Pictures&someVar7=Verity/Zomba&someVar8=Dexter Green&someVar9=John > Jaszcz&someVar10=Mark Wright&someVar11=Kurt Carr > > The code in Flash which calls this page looks like this (copied from the > Intertron): > > var myNames:LoadVars = new LoadVars(); > myNames.onLoad = function(success:Boolean) { > if (success) { > var idArray = []; > for (i=0; i<12; i++) { > trace(_root.someVar5); > idArray.push(eval("_root.someVar"+i)); > } > } > }; > myNames.sendAndLoad("getNames.cfm", myNames, "POST"); > > I'm trying to put each of the variables from the data string into an Array > so that I can loop over that array later in the code. That final part of > the > code already works, but I need a valid array that can be fed to it. > > Can someone tell me what I'm doing wrong? > > <!----------------//------ > andy matthews > web developer > ICGLink, Inc. > [EMAIL PROTECTED] > 615.370.1530 x737 > --------------//---------> > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233285 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

