Thanks so much guys! yeah, I've read it on the docs. One last
question guys, where will i place the createMediator method? From
the looks of it, i think i can only have access to the view inside
the ViewMediator since my view is injected from there. Really sorry
guys for such a noob question >.<
Where you call it depends entirely on your app - basically you simply need to make sure you've got access to both the mediatorMap and the view you want to mediate in the same place.
That could be in the context - as the view is a child of the contextView, if you can get to it through the contextView (but you'll obviously need to also keep a strong-typed reference to it to allow that - at least to it typed as MovieClip so that you can make use of the dynamic nature of MCs as simply targeting your nested view on an instance of DisplayObjectContainer should error).
Thanks so much stray! Ok, so yeah, I think inside the context
would be the best way to go :D but yeah, i just noticed that i dont
have any reference to the view object inside the context. any tips
I have a reference of the context inside my Document class.