Posted By


t3flexdev on 08/01/08

Tagged


Statistics


Viewed 101 times
Favorited by 0 user(s)

[rpcDelegatedCommand]


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. ###LICENSE###
  2. /***************************************************************
  3. * ###DATE###
  4. * ###USER:realName###
  5. ***************************************************************/
  6.  
  7. package ###PACKAGE### {
  8.  
  9.  
  10. import ###BUSINESS###.*;
  11. import ###CONTROL###.*;
  12. import ###VO###.*;
  13.  
  14. import ###MODEL###.AppModelLocator;
  15.  
  16. import com.adobe.cairngorm.commands.Command;
  17. import com.adobe.cairngorm.control.CairngormEvent;
  18. import com.adobe.cairngorm.control.CairngormEventDispatcher;
  19.  
  20. import mx.collections.ArrayCollection;
  21. import mx.rpc.IResponder;
  22.  
  23. public class ###CLASSFILENAME### implements Command, IResponder {
  24.  
  25. private var model : AppModelLocator = AppModelLocator.getInstance();
  26.  
  27. public function execute( cgEvent:CairngormEvent ) : void {
  28. var delegate : ###CLASSDELEGATE### = new ###CLASSDELEGATE###(this);
  29. delegate.###CLASSDELEGATESERVICE###();
  30. }
  31. public function result( rpcEvent : Object ) : void {
  32. // model.listDP = new ArrayCollection(rpcEvent.result);
  33. }
  34. public function fault( rpcEvent : Object ) : void {
  35. // model.errorStatus = "Fault occured in ###CLASSFILENAME###.";
  36. }
  37. }
  38. }
  39.  

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.