Hi, First off, the ViewLocator gets setup the minute the first instance for any of your ViewHelpers is instantiated. Just look in the ViewHelper.as base class code and you will see this.
Second, I guess you are asking how to convert and event broadcast from Flex 1.5 to Flex 2. Well in Flex 2 it is much more simpler and it looks like so: var event : LoginEvent = new LoginEvent( loginVO ); dispatchEvent( event ); // this whole line represents the EventBroadcaster.getInstance... bla bla... from below Hope that helps :) Dimitrios "Jimmy" Gianninas Optimal Payments -----Original Message----- From: [email protected] on behalf of Scott Langeberg Sent: Thu 3/30/2006 1:37 PM To: [email protected] Subject: [flexcoders] {flexcoders} Beta 2: ViewHelper, ViewLocator Does anyone have a working example of the ViewHelper, ViewLocator strategy? I'm going off the CairngormLogin example, which doesn't include those. I'm looking at the old Store example where it does this and not sure what to change this to (dispatch event in associated view?): EventBroadcaster.getInstance().broadcastEvent( ShopController.EVENT_ADD_PRODUCT_TO_SHOPPING_CART, eventObject ); Also, where does the ViewLocator get set up? Thanks, : : ) Scott -- 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/
<<winmail.dat>>

