Swiz.dispatchEvent not working


I am using SWIZ framework. I have my code like this

public class AutoPopulate {

public var tradeLookUp : TradeDatagrid = new TradeDatagrid() ;      
public function AutoPopulate()  {
Swiz.dispatchEvent(new GlobalEvent(GlobalEvent.POPULATE_TRADE_LOOKUP));

[Mediate(event="GlobalEvent.TRADE_LOOKUP_DATA_RECEIVED", properties="data")]
public function populateLookUp( data:Object ):void{
tradeLookUp.serviceCollection = data as ArrayCollection;

Swiz.dispatchEvent  is dispatching the event but populateLookUp function is never invoked.

Any idea whats the problem?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Millions reason why you cannot get a result. Server connectivity, invalid result format, backend errors, listeners was not added. How experts can help with your small code implementation?
royjaydAuthor Commented:
can you point me to a good SWIZ tutorial?  thanks.
royjaydAuthor Commented:
I am new to SWIZ and looking at some one else code, so plz bear with me.
I want to know exactly what happens when this line is invoked
>>Swiz.dispatchEvent(new GlobalEvent(GlobalEvent.POPULATE_TRADE_LOOKUP));

public function GlobalEvent(type:String,  data:Object = null,callback:Function = null) {
super(type, true);
this.data = data;
this.callback = callback;

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mediate is a custom meta-tag in the Swiz framework, so you have to tell the compiler about it with the following setting:

-keep-as3-metadata +=Autowire,Mediate

Open in new window

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Flex

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.