Ah...I gotcha. I am trying to run this from within Flash itself. I hadn't
thought about that Adrian. I'll check that out shortly. Thanks for making
that suggestion.

<!----------------//------
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Adrian Lynch [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 23, 2006 2:38 PM
To: CF-Talk
Subject: RE: Getting data into Flash 8


Ahh right so Ted.

If you're doing this in the Flash IDE, it will access the .cfm page via the
file system so you'll get back the CFML code instead of what you expect.

If that's not the problem and if it's failing in the broswer (HTTP, not the
file system), then you should see if it really is returning the string you
think it is.

Another problem which the above will check, is that if you;re running a Dev
Net edition of CF then you'll get some meta tags in the output.


Adrian

-----Original Message-----
From: Andy Matthews [mailto:[EMAIL PROTECTED]
Sent: 23 February 2006 20:34
To: CF-Talk
Subject: RE: Getting data into Flash 8


You're right. I was so irritated that I forgot to add that part.

I'm trying to add the variables from the incoming data string to the
"idArray". But when I loop over it, each var shows as undefined.

<!----------------//------
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Adrian Lynch [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 23, 2006 2:28 PM
To: CF-Talk
Subject: RE: Getting data into Flash 8


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:233286
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to