I have the following problem : in my mxml app i have one componenet (DebugView) in two instances (ucGatewayDebugView and ucSIMDebugView )
In the app mediator constractor i registered two mediators for the component: facade.registerMediator( new DebugViewMediator(app.ucGatewayDebugView ) ); facade.registerMediator( new DebugViewMediator(app.ucSIMDebugView ) ); In the debugMediator i have the following function that add text line to textArea in the debugView Conponent:
case ApplicationFacade.DATA_SHOW_IN_DEBUG: showData(note.getBody() as String,COLOR_RECEIVE); break; . . . private function showData(sData:String,sColor:String):void { uc.txtDebug.text += sData ; // the line added only in ucGatewayDebugView !!
} the problem is that the debugMediator add the text line only in one component instance (ucGatewayDebugView )
I'd like some advice concerning how to do progress task with timeout/retry/ignore, the flex send data to server side via socket connection and waiting for specific responding , so i need to check the received data from the socket proxy and if the the responde is correct i update the progress task and send the next data.