1 Reply Latest reply on Oct 7, 2008 6:49 AM by Newsgroup_User

    Linking components

    lerooooogk Level 1
      Hi again,

      i've an application which it's divide in a group of components MXML.

      My question is the next:

      - I have one component MXML called "LoadDatagrid" and other component "Datagrid.mxml"
      - "LoadDatagrid" has only a button "Load" and "Datagrid" a datagrid component with id=dg

      How can i link both, that is to say, when i click the button located in "LocalDatagrid" load the dataprovider of dg located in "Datagrid.mxml". (if I put both in the same component there isnt any problem but when I'm trying to do the same i couldnt access the "LoadDatagrid.mxml" from "Datagrid.mxml")

      Thanks all... (again :) )
        • 1. Re: Linking components
          Level 7

          "lerogke" <webforumsuser@macromedia.com> wrote in message
          news:gcf7i8$po4$1@forums.macromedia.com...
          > Hi again,
          >
          > i've an application which it's divide in a group of components MXML.
          >
          > My question is the next:
          >
          > - I have one component MXML called "LoadDatagrid" and other component
          > "Datagrid.mxml"
          > - "LoadDatagrid" has only a button "Load" and "Datagrid" a datagrid
          > component
          > with id=dg
          >
          > How can i link both, that is to say, when i click the button located in
          > "LocalDatagrid" load the dataprovider of dg located in "Datagrid.mxml".
          > (if I
          > put both in the same component there isnt any problem but when I'm trying
          > to do
          > the same i couldnt access the "LoadDatagrid.mxml" from "Datagrid.mxml")
          >
          > Thanks all... (again :) )

          See Q3
          http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf