Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to Pass string to HTTPService

Avatar

Avatar
Level 2
alice_data
Level 2

Likes

0 likes

Total Posts

14 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
alice_data
Level 2

Likes

0 likes

Total Posts

14 posts

Correct Reply

0 solutions
View profile
alice_data
Level 2

10-09-2008

Hi,



I have a scenario here where I have a repeater function like
the example at
Displaying
CheckBox Controls Dynamically


I have manipulated my function so that it displays its
strings at

private function button_click(evt:Event):void {

var selArr:Array = [];

var idx:int;

var len:int = arr.length;

for (idx=0; idx<len; idx++) {

if (checkBox[idx].selected) {

selArr.push(checkBox[idx].label);

}

}



var message:String = selArr.join("\n");

Alert.show(message, title);

}

The problem is I need to manipulate the message string so I
can pass it on to the HTTPService so I can enter the individual
information in a query to search through a database. How do I
actually pass the message string to the HTTPService and handle the
string?



I don't think I can do a <string>message</string>
here because it never worked. Have I missed something here?



Thanks to anyone who can help.



Alice