I need to pass a variable in dispatcher tag... for instance
var google:EventName = new EventName(EventName.ADD_User,user);
dispatchEvent(google);
Now when i go to Mate dispatcher tag... how can i pass the value user.
<mate:Dispatcher id="myDispatcher" generator="{EventName}"
type="{EventName.ADD_User}">
<mate:eventProperties>
<mate:EventProperties
myProperty="myValue"
myProperty2="100" />
</mate:eventProperties>
</mate:Dispatcher>
Now how can i pass the user in the mate dispatcher tag.
You would have to declare user as a property of your GoogleEvent.as class. For GoogleEvent.as:
And in your event declaration:
Then to get the user value from your event in your Event Map:
Let me know if you have any questions. I hope this helps!