In creating a popup, e.g.,
var pop1:IFlexDisplayObject = PopUpManager.createPopUp(this, MyForm, true);
Is it possible to carry an argument with the class (e.g. myForm)? The method in http://livedocs.adobe.com/flex/3/html/help.html?content=layouts_12.html - 'Passing data to and from a pop-up window' still needs another step to choose.
Var myForm:MyForm = new MyForm();
// set some properties
MyForm.foo = "bar";
// pop it up
PopUpManager.addPopUp(this, myForm, true);
As described by Flex harUI you can assign values directly to properties of your form. But ensure that the property is available on your form otherwise you will get errors. Here you will find an example of the same question.
andfor your responses. My scenario is that the value of MyForm.foo changes dynamically. If I use Var myForm:MyForm = new MyForm(); the value of MyForm.foo will be its default value only. I did try the approach you proposed before but my problem could not be solved. Thanks again.