Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
WebService Parameter Pass Problem

WebService Parameter Pass Problem

2005-09-16       - By Becky Kinney

 Back
Reply:     1     2     3     4  

Sounds like your service is expecting a string and you are sending it an array.
Have you tried

_root.ws.params=_root.userNames.text ?

My other thought is that maybe your service DOES want an array and Flash is not
parsing the string into an array. You
might try something more formal, like

var temp=_root.userNames.text.split(",");
_root.ws.params=temp;

That way you are certain to pass an array.

Becky

-- -- Original Message -- --
From: "Sean Rhea" <sean_rhea@(protected)>
To: <pro_flash@(protected)>
Sent: Thursday, September 15, 2005 6:03 PM
Subject: [Pro Flash Users] WebService Parameter Pass Problem


> Hi Guys,
>
> I am having an issue with passing a comma-delimited string value as a
> parameter to my web service via the web service connector component. I
> am passing the parameter dynamically via actionscript using a
> textinput value, thus:
>
> _root.ws.params = [_root.userNames.text];
>
> Everything works fine when I send a single string value
> like 'apple'..I get the results that I expect in my databound grid.
> However, if I pass something like 'apple, orange', it immediately
> tells me that the results were returned, but nothing shows up in my
> grid. I know that the web service can accept a string like 'apple,
> orange' because I have tested it using my local host.
>
> I am grateful for any advice anyone might give. Thanks!
>
>
>
>
>
> =========================
> Pro_Flash: Professional Web Developers Using Macromedia Flash
> To subscribe: mailto:pro_flash-subscribe@(protected)
> To UNSUBSCRIBE: mailto:pro_flash-unsubscribe@(protected)
>
> Yahoo! Groups Links
>
>
>
>
>
>



-- ---- ---- ---- ------ Yahoo! Groups Sponsor -- ---- ---- ---- --~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/IHFolB/TM
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -----~->

=========================
Pro_Flash: Professional Web Developers Using Macromedia Flash
To subscribe: mailto:pro_flash-subscribe@(protected)
To UNSUBSCRIBE: mailto:pro_flash-unsubscribe@(protected)

Yahoo! Groups Links

<*> To visit your group on the web, go to:
   http://groups.yahoo.com/group/pro_flash/

<*> To unsubscribe from this group, send an email to:
   pro_flash-unsubscribe@(protected)

<*> Your use of Yahoo! Groups is subject to:
   http://docs.yahoo.com/info/terms/





Earn $52 per hosting referral at Lunarpages.