RE: [Flashcoders] Text Input Component

2007-07-17 Thread vivek
Can you give some hint of what actually you have done? Some code? That will
help.

Peace, veiky

-Original Message-
From: payal [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 17, 2007 4:31 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Text Input Component

Hi All

I am trying to attach a movieclip containg  textInput component to the
stage. Its attaching successfully But I am not able to set its Text.

Regards
Payal

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Text Input Component

2007-07-17 Thread Paul Andrews
- Original Message - 
From: payal [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, July 17, 2007 12:00 PM
Subject: [Flashcoders] Text Input Component



Hi All

I am trying to attach a movieclip containg  textInput component to the
stage. Its attaching successfully But I am not able to set its Text.


If you don't show what you are doing to set the text, we can't tell what's 
wrong..


Are you trying to assign to the textinput object itself  rather than the 
text property?



Regards
Payal

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Text Input Component

2007-07-17 Thread payal
I am using the following code



for (var i = 0; i  20; i++)
{
this.con_mc.data_mc.attachMovie (kid_mc, kid_mc+i, i);

this.con_mc.data_mc[kid_mc + i]._x = 0;
if (i == 0)
{
this.con_mc.data_mc[kid_mc + i]._y = 0;
}
else
{
var prev = i-1;
this.con_mc.data_mc[kid_mc + i]._y =
this.con_mc.data_mc[kid_mc + prev]._y + this.con_mc.data_mc[kid_mc +
prev]._height + 4

}


this.con_mc.data_mc[kid_mc + i].ifBD1.text = Test
trace(this.con_mc.data_mc[kid_mc + i].ifBD1.text)
//trace(this.con_mc.data_mc[kid_mc + i].ifBD1.text)
//trace(this.con_mc.data_mc[kid_mc + i])
}

Regards
Payal
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Andrews
Sent: Tuesday, July 17, 2007 04:47 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Text Input Component

- Original Message - 
From: payal [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, July 17, 2007 12:00 PM
Subject: [Flashcoders] Text Input Component


 Hi All

 I am trying to attach a movieclip containg  textInput component to the
 stage. Its attaching successfully But I am not able to set its Text.

If you don't show what you are doing to set the text, we can't tell what's 
wrong..

Are you trying to assign to the textinput object itself  rather than the 
text property?

 Regards
 Payal

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Text Input Component

2007-07-17 Thread vivek


-Original Message-
From: payal [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 17, 2007 5:04 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Text Input Component

I am using the following code



for (var i = 0; i  20; i++)
{
this.con_mc.data_mc.attachMovie (kid_mc, kid_mc+i, i);

this.con_mc.data_mc[kid_mc + i]._x = 0;
if (i == 0)
{
this.con_mc.data_mc[kid_mc + i]._y = 0;
}
else
{
var prev = i-1;
this.con_mc.data_mc[kid_mc + i]._y =
this.con_mc.data_mc[kid_mc + prev]._y + this.con_mc.data_mc[kid_mc +
prev]._height + 4

}


this.con_mc.data_mc[kid_mc + i].ifBD1.text = Test 

// what is this .ifBD1? try tracing any of the property of the text field,
so that you will come to know whether the reference is working or not.
trace(con_mc.data_mc[kid_mc + i].ifBD1._x); // if this line gives you the
x co ordinate then it's ok and we can find out the next problem. I don't
think it will give the value of _x. I am concerned for ifBD1.

trace(this.con_mc.data_mc[kid_mc + i].ifBD1.text)
//trace(this.con_mc.data_mc[kid_mc + i].ifBD1.text)
//trace(this.con_mc.data_mc[kid_mc + i])
}

Regards
Payal
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Andrews
Sent: Tuesday, July 17, 2007 04:47 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Text Input Component

- Original Message - 
From: payal [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, July 17, 2007 12:00 PM
Subject: [Flashcoders] Text Input Component


 Hi All

 I am trying to attach a movieclip containg  textInput component to the
 stage. Its attaching successfully But I am not able to set its Text.

If you don't show what you are doing to set the text, we can't tell what's 
wrong..

Are you trying to assign to the textinput object itself  rather than the 
text property?

 Regards
 Payal

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Text Input Component

2007-07-17 Thread Helen Triolo
The component needs time to initialize.  If you're coding on the main 
timeline, you can replace the line that assigns the text with this:


   this.con_mc.data_mc[kid_mc + i].onEnterFrame = function() {
   if (this.ifBD1.text != undefined) {
   this.ifBD1.text = Test;
   this.onEnterFrame = null;
   }
   }

If you're coding with classes, you can use something like

   reference to kid_mc.onLoad = Delegate.create(this, setText);

instead and do the text assignment inside the setText method.

Helen


payal wrote:


I am using the following code



for (var i = 0; i  20; i++)
{
this.con_mc.data_mc.attachMovie (kid_mc, kid_mc+i, i);

this.con_mc.data_mc[kid_mc + i]._x = 0;
if (i == 0)
{
this.con_mc.data_mc[kid_mc + i]._y = 0;
}
else
{
var prev = i-1;
this.con_mc.data_mc[kid_mc + i]._y =
this.con_mc.data_mc[kid_mc + prev]._y + this.con_mc.data_mc[kid_mc +
prev]._height + 4

}


this.con_mc.data_mc[kid_mc + i].ifBD1.text = Test
trace(this.con_mc.data_mc[kid_mc + i].ifBD1.text)
//trace(this.con_mc.data_mc[kid_mc + i].ifBD1.text)
//trace(this.con_mc.data_mc[kid_mc + i])
}

Regards
Payal


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Andrews
Sent: Tuesday, July 17, 2007 04:47 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Text Input Component

- Original Message - 
From: payal [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, July 17, 2007 12:00 PM
Subject: [Flashcoders] Text Input Component


 


Hi All

I am trying to attach a movieclip containg  textInput component to the
stage. Its attaching successfully But I am not able to set its Text.
   



If you don't show what you are doing to set the text, we can't tell what's 
wrong..


Are you trying to assign to the textinput object itself  rather than the 
text property?


 


Regards
Payal

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

   



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com