Title: viewComponent Question Post by: davidTikva on August 09, 2010, 01:32:23 Hello,
I'm using PureMVC with AS3 platform. so, I got a viewComponent. for example a Sprite or a MovieClip the component should communicate with the mediator through events. my question is how to do it? should all the components extends EventDispatcher? thanks in advanced David Title: Re: viewComponent Question Post by: puremvc on August 10, 2010, 07:06:34 MovieClip and Sprite both already extend EventDispatcher, so you're set. Just dispatch events and listen for them in your Mediator. Set your event listeners in the Mediator's onRegister method.
-=Cliff> |