Hi,
I'm trying to figure out whats the best way to duplicate a TextField with the EXACT properties of TextField it was duplicated from. I want to grab all the properties from the original TextField(maybe in the form of an Object?), create an empty TextField, and populate it with all the properties of the original. What I have below I know is not right. I am populating an object with the proper variables but then I am setting their values to a string of the variable name. I want the value of the variable not it's identifier.
Code:
origProps = new Object();
for(var i in test){
	origProps[i] = i;
	trace(origProps[i]);
}
if you list the variables in origProps it looks like this:
Variable _level0.origProps = [object #1, class 'Object'] {
styleSheet:"styleSheet",
mouseWheelEnabled:"mouseWheelEnabled",
condenseWhite:"condenseWhite",
restrict:"restrict",
textHeight:"textHeight",
textWidth:"textWidth",
bottomScroll:"bottomScroll",
length:"length",
selectable:"selectable",
multiline:"multiline",
password:"password",
wordWrap:"wordWrap",
background:"background",
border:"border",
html:"html",
embedFonts:"embedFonts",
maxChars:"maxChars",
maxhscroll:"maxhscroll",
hscroll:"hscroll",
variable:"variable",
htmlText:"htmlText",
type:"type",
text:"text",
autoSize:"autoSize",
tabIndex:"tabIndex",
textColor:"textColor",
backgroundColor:"backgroundColor",
borderColor:"borderColor",
maxscroll:"maxscroll",
scroll:"scroll"
}

What is the syntax for getting the value of the variables?

DUH?
~Dev