Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / March 2005



Tip: Looking for answers? Try searching our database.

_Result not called inside a class

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
shadysamir - 09 Mar 2005 15:41 GMT
I am using .NET remoting inside a class, my code is like that:

import mx.remoting.*

class myclass{
        function myClass(){
                //no initializtion, call from symbol
        }
        public function init() {
                gatewayConnection =
NetServices.createGatewayConne?ction("http://10.0.0.15/gateway.aspx");
                trace("Done Connection")
                loadData();
        }
        private function loadData() {
                rs=new mx.data.components.DataSet()
                trace("Set rs")
                MSQL=gatewayConnection.getServ?ice("remoting", this)
                MSQL.MService("select * from videolist")
                trace("done sql")
        }
        private function MService_Result(result){
                trace("result")
                rs.dataProvider = result;
        }
        private function MService_Status(stat){
                trace("DataCallFailed-" + stat.code);
        }
}

When I call init() the _Result function is never called. I get everything
traced up to "done sql" but neither the result nor the status function get
called. I tried the same .NET service with another flash document but on the
timeline not isnide a class and it worked fine.
shadysamir - 10 Mar 2005 05:59 GMT
I am not sure why i never get an answer to any of my posts around here! Am I
asking trivial questions that nobody wants to answer or am I asking too
complicated questions that nobody knows anything about? Are my questions clear
or do I need to explain more?
Tom Coleman - 10 Mar 2005 15:23 GMT
Hi shadysamir,

It looks like you have a couple of typos that could munge your function:

gatewayConnection =
NetServices.createGatewayConne?ction("http://10.0.0.15/gateway.aspx");

Note the "?" in the middle of the "createGatewayConne?ction" property, and:

MSQL=gatewayConnection.getServ?ice("remoting", this)

also has a "?" in the middle of the property.

HTH,
Tom

> I am using .NET remoting inside a class, my code is like that:
>
[quoted text clipped - 30 lines]
> called. I tried the same .NET service with another flash document but on the
> timeline not isnide a class and it worked fine.
shadysamir - 11 Mar 2005 09:55 GMT
Thank you for your reply. I am not sure why you got my post with those question
marks but they are not there, nor they are in my code. Anyway, I figured out
that so many people are having the same problem. The _Result handler is not
called inside a class. I am not sure why and i came across a few posts on some
newsgroups, all with no answers.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.