How can I pass value to php file that I created.
I have form with two text field, this text fiels have id username and
password. Now I call service I write in php, who recive 2 variables,
this variables are used for query database and return role.

After I use browser service it works perfect, but I figure out that
when I call from Flex I don t get results. This means when I manualy
enter this 2 variables it s ok, but when I use flex, I get custom msg
that I created in case when codition is false

if ( $username == $user->username && $password == $user->password)
                        {
                        return "now it s ok";
                        }

                else
                        {
                        return "error";
                        }

that s because $username value from flex is missing and null is never
equel to something.

I belive that I have to bind some howe looking for ideas, and another
thing when I say return "someting" Flex recive msg, but if i say
return $user->username or $username,

flex send msg about

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at StartingWithAMFPHP/getLoginHandler()[C:\Documents and Settings
\Nermina\Desktop\StartingWithAMFPHP1\StartingWithAMFPHP\FLEX
\StartingWithAMFPHP\src\StartingWithAMFPHP.mxml:61]
at StartingWithAMFPHP/___StartingWithAMFPHP_Operation3_result()[C:
\Documents and Settings\Nermina\Desktop
\StartingWithAMFPHP1\StartingWithAMFPHP\FLEX\StartingWithAMFPHP\src
\StartingWithAMFPHP.mxml:102]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/
internal::dispatchRpcEvent()[C:\autobuild\3.2.0\frameworks\projects\rpc
\src\mx\rpc\AbstractOperation.as:198]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/
internal::resultHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc
\src\mx\rpc\AbstractInvoker.as:193]
at mx.rpc::Responder/result()[C:\autobuild\3.2.0\frameworks\projects
\rpc\src\mx\rpc\Responder.as:43]
at mx.rpc::AsyncRequest/acknowledge()[C:\autobuild\3.2.0\frameworks
\projects\rpc\src\mx\rpc\AsyncRequest.as:74]
at NetConnectionMessageResponder/resultHandler()[C:\autobuild
\3.2.0\frameworks\projects\rpc\src\mx\messaging\channels
\NetConnectionChannel.as:515]
at mx.messaging::MessageResponder/result()[C:\autobuild
\3.2.0\frameworks\projects\rpc\src\mx\messaging\MessageResponder.as:
199]

any idea how to pass this value from variable back to flex

thx

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to