Flash - call dynamic textfield in from within movieclip

I'm trying to call a dynamic textfield from within a movieclip.

So I've got a movieclip called "txtObject_mc" and within that object I've got a textfield called "txtObject_tf".

The code
var txtObject:TextField = txtObject_tf;

Open in new window


gives an error saying that txtObject_tf does not excist. please help!
ErnstJacobsAsked:
Who is Participating?
 
deepanjandasConnect With a Mentor Commented:
var txtObject:TextField = txtObject_mc.txtObject_tf as TextField;

Warm Regards
Deepanjan Das
0
 
ErnstJacobsAuthor Commented:
Thank you, you're great :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.