Posted By

boblinl on 03/01/10


Tagged


Versions (?)

session facade


 / Published in: ActionScript 3
 

  1. public class KeywordEvent extends Event
  2. {
  3. public static const KEYWORD_MESSAGE:String = 'keywordMessage';
  4. public function KeywordEvent()
  5. {
  6. super(KEYWORD_MESSAGE);
  7. }
  8. }
  9.  
  10. [Event( name = "keywordMessage", type="KeywordEvent" )]
  11. public class ImageController extends EventDispatcher
  12. {
  13. public function getKeywordResult():void
  14. {
  15. dispatchEvent(new KeywordEvent());
  16. }
  17. }
  18.  
  19.  
  20. public class ImageSession
  21. {
  22. [Command(selector="keywordMessage")]
  23. public function getKeywordSearch(event:KeywordEvent):AsyncToken
  24. {
  25. return token;
  26. }
  27. }

Report this snippet  

You need to login to post a comment.