|
Thanks for your answer Bjorn. I don’t
really worry about the delegate for now. Maybe I was not clear enough. My question is: should a command get all
it’s parameters through the event object or is it ok to refer to the
model to get them? Of course you can pass value objects to
the command via the event object (as Bjorn suggested) but that’s
basically the same as passing single variables - probably a bit neater though. Can’t the command just refer to the
model as shown below? public
class LoginCommand implements Command, Responder private var model:Model = Model.getInstance();
//
// this line has changed! ///delegate.login( delegate.login(
From: Hmm... I'm not sure, but I dont think you understood
the question. Your answer, as far as I can tell, does not seem responsive. But
I'm not sure that I could repeat it and make it any clearer than robin's
initial question. Perhaps you could re-read it. On 10/10/06, Bjorn
Schultheiss <bjorn.schultheiss@ Not
really necessary On
your delegate you can attached the userID to the call object and then access
through your command.onResult param.token object public
class LoginCommand implements Command, Responder public
class LoginDelegate Regards, Bjorn
Schultheiss Senior
Flash Developer QDC
Technologies From: [EMAIL PROTECTED] Hi there Let's say I want to do a
server request. I want to search my database for a particular keyword and
return a record set. The user would type in
the keyword in a text area and I would then create a SearchDatabaseEvent which
then would trigger a SearchDatabaseEvent However I also want to
send the userID when I do my server request. Should the SearchDatabaseComma This approach seems a bit
wired though because it seems that couples my command to strongly to the model.
On the other hand it seems strange to query the model from my view to populate
the SearchDatabaseEvent with userId property as well. Any thoughts? Cheers Robin -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |
- RE: [flexcoders] Cairngorm commands - best practise Robin Burrer
- [flexcoders] Cairngorm commands - best practise Bjorn Schultheiss
- Re: [flexcoders] Cairngorm commands - best practise Tom Chiverton
- Re: [flexcoders] Cairngorm commands - best prac... hank williams
- Re: [flexcoders] Cairngorm commands - best ... Ralf Bokelberg
- RE: [flexcoders] Cairngorm commands - best practise Evan Gifford

