Hello :)
try the [] notation :
function getField ( i )
{
return _root["rec"+ i].text ;
}
// test
var reference = getField(1) ;
EKA+ :)
2006/10/7, Laurent CUCHET <[EMAIL PROTECTED]>:
I would like to take textfield value.
How can I convert string ?
function sqr(x) {
var tx = "_level0.rec"+x;
var c1 = tx+"1.text";
trace(c1); // give
}
Sqr(1); // Give string ³_level0.rec1.text² not the textfield value
Thank You
_______________________________________________
[email protected]
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
_______________________________________________
[email protected]
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