Hi Mman,

Assuming that you are opening a new window using Popupmanager.

*Passing value to Popup*
In *main.mxml*

 On Button click, it call a function to open Popup window

private function showTitleWindow():void {
    var titleWindowInstance:TitleWindowData
= TitleWindowData(PopUpManager.createPopUp(this, TitleWindowData, false));
    titleWindowInstance.mainApp = this;                      //Reference to
the main app scope
    titleWindowInstance.gnMyNumber = parseFloat(tiMyNumber.text);  //Pass a
simple value to the popup - perhaps you can pass ArrayCollection too.

// gnMyNumber  is a varibale defined in TitleWindowData
}

*TitleWindowData.mxml*
 [Bindable]public var gnMyNumber:Number;
  <mx:Label id="lblMyNumber" text="{gnMyNumber}"  width="100"/>  // this
text will display the value that was transferred from Main.mxml

To send the data back to Main Application from Popup window , you can use
the mainApp variable

Hope this helps.

Thanks,
Hemanth




On Thu, Oct 22, 2009 at 7:08 PM, mman <[email protected]> wrote:

>
> Hi everybody,
> the goal os to open a new window after clicking a button in my Flex
> Application. Openning the window is not a problem, however, what I
> could not do is:
> - sending an ArrayCollection object to the window
> - receiving this ArrayCollection in the new window
>
> I want to use this ArraCollection as adata provider for an
> AdvancedDataGrid that the new window should show.
>
> I need an urgent help!
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to