Calling Java classes or JavaBeans from ActionScript
127
// Handle results from server; display results in output fields.
function setMessage_Result( re:ResultEvent ):Void
{
// shouldn't happen
}
function getMessage_Result( re:ResultEvent ):Void
{
messageOutput.text = re.result.toString();
}
function setMessage_Fault( fe:FaultEvent ):Void
{
messageOutput.text = fe.fault.faultstring;
}
function getMessage_Fault( fe:FaultEvent ):Void
{
messageOutput.text = fe.fault.faultstring;
}
function testBoolean_Result(re:ResultEvent):Void
{
boolOutput.text = "result: " + re.result;
}
function testBoolean_Fault(fe:FaultEvent):Void
{
boolOutput.text = "status: " + fe.fault.faultstring;
}
function testDate_Result(re:ResultEvent):Void
{
flashDate = re.result;
dateOutput.text = " " + flashDate;
}
function testDate_Fault(fault:FaultEvent):Void
{
dateOutput.text = "Status: " + fault.fault.faultstring;
}
//declare variables
private var flashtestService:Service;
private var flashDate;
private var dateOutput:TextInput;
private var boolOutput:TextInput;
private var messageOutput:TextInput;
private var dateInput:TextInput;
private var messageInput:TextInput;
private var invokeButton:Button;
private var trueRadio:RadioButton;
private var falseRadio:RadioButton;
}
Содержание FLASH REMOTING MX
Страница 1: ...Using Flash Remoting for Flash MX 2004 ActionScript 2 0...
Страница 8: ...8 Contents...
Страница 62: ...62 Chapter 3 Using the RemotingConnector component Flash Professional only...
Страница 142: ...142 Chapter 7 Using Flash Remoting for Java...