Hi,
How to assign a value to a variable in a titlewindow while initializing
the titlewindow.
e.g.,
FilterWindow.mxml:
<mx:TitleWindow>
<mx:Script>
private var op:String;
</mx:Script>
<mx:TextInput id="ti"/>
</mx:TitleWindow>
and when we create it as a popup
textWindow=FilterWindow(PopUpManager.createPopUp(this, FilterWindow, true));
PopUpManager.centerPopUp(textWindow as IFlexDisplayObject);
i need to restrict the textinput depending on the value of op (not on
pressing ENTER , it should restrict as they type);
if the op value is "int", i should only allow 0-9, or if that is "string",
then i shouldn't allow some characters like /,\,{,}
This won't work if i do like this
textWindow=FilterWindow(PopUpManager.createPopUp(this, FilterWindow, true));
PopUpManager.centerPopUp(textWindow as IFlexDisplayObject);
textWindow.op = "int";
That "int" value should be assigned to op while initializing or in
creationcomplete of FilterWindow.
--
Thanks
Pavan
814-431-0669
--
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.