Ask a Question related to Macromedia Flash, Design and Development.
-
Sean Berry #1
Retrieve n records from database
I came across a tutorial about a year ago that explained the answer I seek.
Now, however, I cannot find the answer anywhere.
I have a flash movie that takes some data in a couple of input fields...
then does a loadVariablesNum("script.pl", 0,"POST"); call
My script.pl file returns something like this...
&n=10&company1=Macromedia&address1=22845 Main
Dr.&zip1=99399&company2=Microsoft&address2=33 Big Rd.&zip2=12345.... all the
way to zip10=00299
My question is this...
How do I do the following:
for (i = 1, i <= n, i++) {
text + i = (company + i) + " " + (address + i) + " " + (zip + i);
}
so that (text + i) translates to text1...text10 (and company + i) translates
to company1...company10 etc???
I know I have seen the answer, but I cannot for the life of me figure it
out.
Any help is greatfully appreciated.
Sean Berry Guest
-
how to retrieve swf file from database?
i m still new in this actionscript thingy. i know how to load external .swf file from the same folder to flash when it is call by using ... -
retrieve sql from database
Our organization has alot of SQL, and we prefer to be able to store our application SQL in a DB; we find it easier to maintain that way. What I... -
Two Function Calls to a Database to Retrieve the UniqueID of Inserted Records
Hi guys, I got the error message on Option 2 query as show. Actually, this code is from Inside ColdFusion MX boook. I just would like to know is... -
How to retrieve the records if I have .SQL script file using ADO.net
Hi, I need to retrieve records from SQL 2000 datbase using ADO.Net I have a huge select statement in .sql script file I need to run it to get the... -
Need to retrieve records
In the recordset that retrieves the data, add the form variable that the user is inputting as a filter. -- Mike ------------------- Michael... -
Sean Berry #2
Re: Retrieve n records from database
> I have a flash movie that takes some data in a couple of input fields...
After trying for over an hour, then posting this message, I figured it out> then does a loadVariablesNum("script.pl", 0,"POST"); call
>
> My script.pl file returns something like this...
> &n=10&company1=Macromedia&address1=22845 Main
> Dr.&zip1=99399&company2=Microsoft&address2=33 Big Rd.&zip2=12345.... all
> the way to zip10=00299
>
> My question is this...
> How do I do the following:
> for (i = 1, i <= n, i++) {
> text + i = (company + i) + " " + (address + i) + " " + (zip + i);
> }
>
> so that (text + i) translates to text1...text10 (and company + i)
> translates to company1...company10 etc???
>
> I know I have seen the answer, but I cannot for the life of me figure it
> out.
>
10 minutes later.
I would use
this["text"+i] = this["company"+i] + " " + this["address"+i] + " " +
this["zip"+i];
Thanks anyway... hope this helps someone someday.
Sean Berry Guest



Reply With Quote

