Hi, My problem is the following. I use cairngorm framework. I have two views. the button in one view triggers an event that need to get data from the other view. In my case, i take a snapshot of the video so here i need the bitmap data.
I see two solutions. First, using viewhelper/viewLocator to get the data from the dedicated view inside the command class. I know that viewhelper are mostly not recommended by cairngorm in the opposite side when it's used to set views from commands but here. Secondly, use the parent of the two views to transmit the event from view1 to view2 that send the final event. The structure could be as below <!-- my composite view --> <mx:VBox ...> <mx:Script> <![CDATA[ private function handleMyEvent(event:MyCustomEvent):void { // Trigger the final event after filling up with the data view1.sendEvent(event); } ]]> </mx:Script> <view:view1 id="view1" /> <view:view1 id="view2" myInititialEvent="handleMyEvent(event)" /> </mx:VBox> What is the best way to do that? If the action was triggered from the view that hold the needed informations, i could have passed the data into a custom event that could be directly read by the command... I have browse the forum without success to get informations on this subject. Feel free to redirect me or give me an answer. Thanks -- 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/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> 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/