Re: [flexcoders] Passing View to Presentation Model

2009-12-17 Thread Christophe Herreman
new PModel(this) should do the trick without casting. This usage is really defeating the purpose of the Presentation Model pattern though. The PM should not know anything about the view it works for. regards, Christophe -- Christophe Herreman http://www.herrodius.com http://www.springactionscri

[flexcoders] Passing View to Presentation Model

2009-12-17 Thread vikram
Hello all I need to pass my view to the presentation model I have created for the view. I need to pass the view object in the constructor of presentation model. How can I do that? I tried doing this... public var pmodel:PModel = new PModel( View(this) ); // This gives an undefined View functi