I'm french so excuse me if my langage isn't perfect :s
I've a button who make appear a pop-up. To be simplier, i put the pop-up in an other MXML file.
But when I would like to use a component who is in this other MXML, i don't know how i can call it.
It's a datagrid and i've a function who need the datagrid ni the pop-up and a datagrid in the main MXML.
Do you have a solution or a way I can use to use the component in a different MXML. (nameofthefile.nameofthecomponent ? nameofthecomponent.nameofthe file ? ....).
Thanks a lot !
Well, my case is like peterd in the comments.
I have my pop-up in a different MXML of my file.
Then, i've a datagrid in the second MXML. But, i would like to delete a row of this datagrid by using a function who is in the first MXML.
dg1 is in the first MXML
dg2 is in the second
it is a part of a function who is in the first MXML
dg1.dataProvider.removeItemAt(dg1.selectedIndex); // No problem, we are using a component who is in the same MXML
dg2.dataProvider.addItem(dg1.selectedItem); //Problem here because we want to use the component dg2 who is in the second MXML...
Thanks for your help:)