Created
March 28, 2010 19:50
-
-
Save swiz/346983 to your computer and use it in GitHub Desktop.
Code samples for Event Handling wiki page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Mediate( event="com.foo.events.UserEvent.ADD_USER" )] | |
public function mediateAddUserEvent( event:UserEvent ):void | |
{ | |
// do stuff | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Mediate( event="UserEvent.ADD_USER" )] | |
public function mediateAddUserEvent():void | |
{ | |
// do stuff | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Mediate( event="UserEvent.ADD_USER" )] | |
public function mediateAddUserEvent( event:UserEvent ):void | |
{ | |
// do stuff | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Mediate( event="addUser" )] | |
public function mediateAddUserEvent( event:UserEvent ):void | |
{ | |
// do stuff | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Mediate( event="UserEvent.ADD_USER", properties="user" )] | |
public function addUser( user:User ):void | |
{ | |
// do stuff | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment