I have been left with a flex product for a cd rom the wole thing will be published using zinc bu i need to get the debugging environment set up.
The previous developmer (who i cannot get hold of) used flashes localconnection object to access a sql server database. I know this somehow uses localhost but i am lost to how the two instances (dbin, dbout) were set up.
all i need is a good url clue on how to set up "dbin" and "dbout" as for debugging the localconnection is susccessful because localhost is enabled
The access code goes something like.
declarations
private var _queryHandler:Function; public var _queryTimer:Timer; public var _queryQueue:Array; public var _lcDBIn:LocalConnection; public var _lcDBOut:LocalConnection; public var _lcDBInConnected:Boolean; public var _lcDBOutConnected:Boolean;
public function lcInit():void { //log("lcInit > called"); if (_lcDBIn == null) { _lcDBIn = new LocalConnection(); _lcDBIn.addEventListener(StatusEvent.STATUS, lcDBInStatus) }
if (_lcDBOut == null) { _lcDBOut = new LocalConnection(); _lcDBOut.addEventListener(StatusEvent.STATUS, lcDBOutStatus) _lcDBOut.client = this; } }
public function lcDBInStatus(event:StatusEvent):void { switch(event.level) { case "status": log("lcDBInStatus > Query request success (DBIn)"); break; case "error": log("lcDBInStatus > Query request failed (type : " + event.type + " | code : " + event.code + ")"); break; } }
public function lcDBOutStatus(event:StatusEvent):void { switch(event.level) { case "status": //log("lcDBOutStatus > DB is talking to us"); break; case "error": //log("lcDBOutStatus > DB is NOT talking to us (DBOut)"); break; } }