hi
thanks for u r response.
as u mentioned, i did like that:
below is mine code:
this is how i m adding the MDIWindow container and i m adding a textbox to
inside of MDIWindow container. this works fine.... it adds a textbox for
each window.......
var mdiWindow:MDIWindow = new
MDIWindow();
mdiWindow.id = selectedCLientUid.toString();
mdiWindow.title = selectedClientName;
var MsgArea:TextArea = new TextArea();
MsgArea.name = selectedCLientUid.toString();
mdiWindow.addChild(MsgArea);
MsgArea.id = selectedCLientUid.toString();
MsgArea.name = selectedCLientUid.toString();
mdiWindow.addChild(MsgArea);
mdiCanvas.windowManager.add(mdiWindow);
later i want to refer a perticular window........... how can i refer a
perticulear textArea.. using assigner "name" ot "id"?????
please help me
yiğit boyar wrote:
>
> just keep a userVO - window dictionary (which maps users to their windows)
> then when a message comes, you can find the corresponding window looking
> at the
> dictionary.
> through the window, you can reach it's components.
> to make this easy,give id's to inner components (text input etc)
>
> shrikant.patil wrote On 01/14/2008 08:10 AM:
>>
>>
>> hi,
>> here i am with a problem, i m creating a chat based flex application in
>> which when ever i click on an name of the user it opens a new window,
>> which
>> contains a text area, input text etc... this happens each time what i
>> want
>> to chat with a person. ( think like yahoo messanger).
>>
>> So for creating seprate window i used FLEDMDI framework in flex 2.0.1
>> which
>> works well......
>> when i double click on a user name it opens a new window, inside this new
>> window i created a MXML component which is added as as a child to this
>> window container...... this addition is also works fine ,
>>
>> but the problem is how can i refer these components text box
>> etc....... bcoz
>> when a new message comes form a user then i need to populate it in his
>> window only........
>>
>> so it is neccssary for me to hold dynamically created component child
>> reference.....
>> how may i achive this.??
>> and in action script 3 we cannot create controls as in AS2 where we can
>> assign a "String+variable" name as a control name..........
>>
>> so what might b the solution??
>> thanks in advance
>> shri
>>
>> --
>> View this message in context:
>> http://www.nabble.com/adding-and-refering-the-childs-of-a-container-tp14795865p14795865.html
>>
>> <http://www.nabble.com/adding-and-refering-the-childs-of-a-container-tp14795865p14795865.html>
>> Sent from the FlexCoders mailing list archive at Nabble.com.
>>
>>
>
>
>
--
View this message in context:
http://www.nabble.com/adding-and-refering-the-childs-of-a-container-tp14795865p14796728.html
Sent from the FlexCoders mailing list archive at Nabble.com.