Hi YJ,
Sure - the Cairngorm code is unmodified. For instance, in your view
you might have:
private var viewHelper : OurViewHelper;
private var searchDefinition : SearchDefinitionVO;
...
EventBroadcaster.getInstance().broadcastEvent
(OurController.SEARCH_COMMAND,
{viewHelper:viewHelper, searchDefinition:searchDefinition});
And in the command:
private var cachedViewHelper : OurViewHelper;
function execute(event : Event) : Void {
cachedViewHelper = event.data.viewHelper;
delegate.search(event.data.searchDefinition);
}
public function onResult(event : Object) : Void {
cachedViewHelper.showSearchResult(SearchResultCollectionVO
(event.result));
}
There is a bit more to talk about regarding the initial creation of
the view helpers and views which I hope to blog soon, but if you have
more specific questions fire away.
Cheers,
Robin
______________
Robin Hilliard
Director - RocketBoots Pty Ltd
Professional Services for Macromedia Technologies
http://www.rocketboots.com.au
For schedule/availability call Pamela Higgins:
w +61 7 5451 0362
m +61 419 677 151
e [EMAIL PROTECTED]
or Direct:
m +61 418 414 341
f +61 2 9798 0070
e [EMAIL PROTECTED]
*** Register for WebDU http://www.mxdu.com 2-3 March 2006 ***
On 18/01/2006, at 5:50 AM, fowleryj wrote:
> Hi Robin,
>
> Your application appears very organized and well thought-out. One
> question: If workspace instance X broadcasts an event, and workspace
> instance Y is also open (in this example, let's say that both X and Y
> are instances of the search screen, and X just broadcasted a "search
> event"), would workspace instance Y respond to the information
> returned from the search? Are you using the EventBroadcaster exactly
> as it exists in Cairngorm?
>
> Thanks,
> YJ
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/