PDA

View Full Version : FMX need help with as and dynamic textfield



octerl
July 10th, 2003, 09:15 AM
sorry guys, im a quite a newbie zu flash mx

i have a movieclip called "animation" which contains a dynamic textfield "mytext" (instance)

i'm trying to access this textfield from a button on the main stage to change the text of the textfield when the button is released.

thx a lot

ak

claudio
July 10th, 2003, 09:23 AM
Use this action on the button:on(release){
_root.animation.mytext.text="your new text goes here";
}

octerl
July 10th, 2003, 09:34 AM
thx, but it doesn't work. i almost tried everything

i'll post the fla, maybe someone finds the clue

thx

ak

claudio
July 10th, 2003, 09:40 AM
Your animation movie clip doesnt have an instance name
Give it an instance name of "animation" (without quotes)

octerl
July 10th, 2003, 09:41 AM
thx a lot


ak

claudio
July 10th, 2003, 09:42 AM
No problema
:)