Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 05-04-2009, 02:00 PM   #1
windec
Registered User
 
Join Date: Feb 2009
Posts: 3
Default how to call httpservice with parameters?

I have a slider that will call a function which ultimatley calls a php script with parameters based on its values.
Say if the value is below 10, it will call the function reactoslid which calls a specfic httpService. It does not work,
please say why?

Code:
private function reactoslid (event:Event):void{
              
			         if (myslider.value < 10 ) {
			        	httpService_lowsp.send()
			        }
        //more if clauses for various slider values.
}
//this service is for the lowest value of the  slider

  <mx:HTTPService
        id="httpService_lowsp"
        url="http://server/resultasxml.php?spee=low"
        result="onResHttpServ(event)"
        resultFormat="e4x"
        />

 private function onResHttpServ(avResultEvent:ResultEvent):void
        {   
//parse the xml , show the results
}
windec is offline   Reply With Quote
Old 05-04-2009, 02:10 PM   #2
box86rowh
FLEX AND FLASH ARE COOL
 
Join Date: Oct 2005
Posts: 794
Default

When you say it does not work, what do you mean? are you getting errors?
box86rowh is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting Component Parameters... JSFLnewb JSFL - Extending Flash 4 11-12-2008 06:54 AM
add event listener to HTTPService call ljonny18 Flex 2, 3 & 4 2 11-27-2007 09:29 AM
i'm trying to loop thru my buttons and call a function and send different parameters. KDR ActionScript 2.0 5 02-27-2007 06:52 AM
Function call passing parameters to PendingCall pepper28 ActionScript 2.0 0 02-19-2007 12:23 PM
Can't Javascript call a Flash function and pass parameters??? gloveny Other Flash General Questions 4 11-26-2004 06:20 AM


All times are GMT. The time now is 03:00 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.