Yeah, you can do that.
EventBroadcaster.getInstance().broadcastEvent( "myCommand",
this );
Why would you do it that way though? You can register a
view with its viewHelper and than your command can use ViewLocator to get that
helper that talks to your view. I don't think having your commands know about
your views is a very good idea. Unless of course you have specific
reasons.
From: Clint Tredway [mailto:[EMAIL PROTECTED]
Sent: Monday, February 21, 2005 8:38 AM
To: [email protected]
Subject: [flexcoders] passing a view to a command
I am using Cairngorm
and I am wondering if I can pass a view to a command
dynamically?
----
This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosureby others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.
To reply to our email administrator directly, send an email to
[EMAIL PROTECTED]
Littler Mendelson, P.C.
http://www.littler.com

