http://livedocs.macromedia.com/flashremoting/mx2004/actionscript_api_reference/mx/remoting/debug/NetDebug.html


On 12/6/06, Jeff Thompson <[EMAIL PROTECTED]> wrote:

Has anyone had problems with remoting working on some machines but not
others? I had friends pull up the site (http://carolinaradiology.com) in
different cities and it worked on some but not others.

The site worked fine during testing but when I pointed the DNS I started
having problems. I had to change the path to the remoting gateway and to
my
cfc¹s but I¹ve triple checked my changes. And again, it¹s works on some
machines but not others.

The site loads a bunch of movies so I¹ll just include the code and path to
one of Œem.

Http://carolinaradiology.com/doctorsText.swf


stop();

import mx.remoting.*;
import mx.remoting.debug.NetDebug;
NetDebug.initialize();

if (initialized == null) {
    var initialized = true;

NetServices.setDefaultGatewayUrl("
http://carolinaradiology.com/flashservices
/gateway");
var gw = NetServices.createGatewayConnection();
var doctors = gw.getService("getDocs", this);
trace ("connected");
}



function getTheText_Result(result) {
    //trace (result.getItemAt(0).thetext);
    //trace (result.getLength());
    _root.mainText.text = result.getItemAt(0).thetext;

        this.onStatus = function(error)
    {
        trace("Error : " + error.description);
        status.text = "Error : " + error.description;
    }

}



function getFopDetails_Result(result) {
    var practice_title:String = result.getItemAt(0).emptitle;
    var practice_description:String = result.getItemAt(0).empdesc;
    _root.docCard.docName.text = result.getItemAt(0).emptitle;
    _root.docCard.contentMain.docDetailTxt.htmlText =
practice_description;

    trace (practice_description);

}



function getDocDetails_Result(result) {
    var doctor:String = result.getItemAt(0).doctorsname;
    var Medical:String = result.getItemAt(0).Medical;
    var Residency:String = result.getItemAt(0).Residency;
    var Fellowship:String = result.getItemAt(0).Fellowship;
    var BoardCert:String = result.getItemAt(0).BoardCertification;
    var Extra1:String = result.getItemAt(0).Extra1;
    var Extra2:String = result.getItemAt(0).Extra2;
    var Extra3:String = result.getItemAt(0).Extra3;
    var Extra1title:String = result.getItemAt(0).Extra1title;
    var Extra2title:String = result.getItemAt(0).Extra2title;
    var Extra3title:String = result.getItemAt(0).Extra3title;

    if (docCard._visible == false){
        docCard._visible = true;
    }

    //Set Doctor's Name text
    _root.docCard.docName.text = result.getItemAt(0).doctorsname;

    //Set Doctor Details
    if (Medical != "") {
        Medical = "<font color='#142F60' weight='bold'>Medical:  </font>"
+
Medical + "<br>";
    }
    if (Residency != "") {
        Residency = "<font color='#142F60' weight='bold'>Residency:
</font>" + Residency + "<br>";
    }
    if (Fellowship != "") {
    Fellowship = "<font color='#142F60'
weight='bold'>Fellowship:  </font>"
+ Fellowship + "<br>";
    }
    if (BoardCert != "") {
        BoardCert = "<font color='#142F60' weight='bold'>Board
Certifications:  </font>" + BoardCert + "<br>"
    }
    if (Extra1 != "") {
        Extra1 = "<font color='#142F60' weight='bold'>" + Extra1title +
"</font>" + "<font color='#142F60' weight='bold'>:  </font>" + Extra1 +
"<br>";
    }
    if (Extra2 != "") {
        Extra2 = Extra2title + ":  " + Extra2 + "<br>";
    }
    if (Extra3 != "") {
        Extra3 = Extra3title + ":  " + Extra3 + "<br>";
    }

    var docDetails:String = Medical + Residency + Fellowship + BoardCert +
Extra1 + Extra2 + Extra3;

    _root.docCard.contentMain.docDetailTxt.htmlText = docDetails;
    //trace (docDetails);

    //trace (result.getItemAt(0).Residency);
    //trace (result.length);
}


var docTreeListener:Object = new Object();
docTreeListener.change = function(evt:Object) {

    var node = docTreeMC.docTree.selectedItem;
    ///trace("selected node is: "+evt.target.selectedNode);
    fopID = node.attributes.fopID;
    docID = node.attributes.docID;
    doctors.getDocDetails(docID);


    if (fopID != undefined) {
        docCard._visible = true;
        doctors.getFopDetails(fopID);
         trace(fopID);
    }


    /*if (docID == undefined) {
        docCard._visible = false;
    } else {
        docCard._visible = true;
    }*/
}

docTreeMC.docTree.addEventListener("change", docTreeListener);


//doctors.getDocDetails(54);
docCard._visible = false;
_root.doctors.getTheText(12);



_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to