header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Shridhar Kulkarni
Points:0
Posts:0

2/6/2011 7:47:12 AM

Title: about flex HTTPService


Hello
I am currently working on cairngorm in which i am using httpService and PHP.
I am having PHP service in which there are many functions say getName(), getValue() etc.
I want to know how to call a particular function using same httpService

I can do it with amfphp and remoteobject but my php programmer dont want to use amfphp.

So how it is possible to do it with httpService???



1
Dave
Points: 970
Posts:1
2/6/2011 8:12:09 AM



direct method calling is not possible when using a httpService , its only possible if you are using webService.

There is a workaround for this. you can call the same php page but can get different result depending upon the posted parameter.

say your page is a.php which have two functions getName(), getValue()

now to get name you can call the "a.php" page and post a parameter like "functionName= getname".

In php page you will receive the parameter and return the result accourding to parameter received . php code will be something like this:

if (functionName=="getname"){
//call name function
getName()
} else{
// call value function
getValue()
}

2
Shridhar Kulkarni
Points: 0
Posts:0
2/7/2011 12:26:36 AM



Thank You Dave for replying and giving me a simple solution
I will try it

Very Thank You


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 1+0 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions