0
createClassObject - TextInput Component
Community Beginner
,
/t5/animate-discussions/createclassobject-textinput-component/td-p/887703
Apr 15, 2006
Apr 15, 2006
Copy link to clipboard
Copied
I need to create TextInput Components at runtime. I can
create the object just fine but I can not position or size the
component. I assume this is due to the properties
(x,y,width,height) being READ-ONLY but assumed that
createClassObject would at least set the initial values as per the
initObject. I am just testing right now and the initObject is
{text:"Testing", width:100} I also tried {text:"Testing",
width:"100"}.
Is it possible to use the initObject to size the TextInput Component, or does anyone know a work-around?
TNX
Is it possible to use the initObject to size the TextInput Component, or does anyone know a work-around?
TNX
TOPICS
ActionScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Guide
,
/t5/animate-discussions/createclassobject-textinput-component/m-p/887704#M332921
Apr 16, 2006
Apr 16, 2006
Copy link to clipboard
Copied
You use TextInputInstance.setSize(width,height);
And TextInputInstance.move(x,y);
And TextInputInstance.move(x,y);
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
New Here
,
LATEST
/t5/animate-discussions/createclassobject-textinput-component/m-p/11708413#M338985
Dec 27, 2020
Dec 27, 2020
Copy link to clipboard
Copied
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
mongenix1
AUTHOR
Community Beginner
,
/t5/animate-discussions/createclassobject-textinput-component/m-p/887705#M332923
Apr 16, 2006
Apr 16, 2006
Copy link to clipboard
Copied
Too busy looking at properties to consider methods.
Duh.......
Thanks for answering a question that already had an obvious answer.
Duh.......
Thanks for answering a question that already had an obvious answer.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

