PDA

View Full Version : can't read textInput.text in mc


jbess
08-25-2005, 09:08 PM
Hi all:

Been wracking my brain over this for a while:

I have a button in Scene 1 named submit_btn, a textinput named rootText_txt.

in a movie clip called source_mc i have a textinput named sourceText_txt to which i've assigned the value "voila!"

I want to read the value of sourceText_txt from the root level. but keep getting 'undefined'

I've added this code to submit_btn's Actions:

on(click){
_root.rootText_txt.text = _root.source_mc.sourceText_txt.text
}

I've searched the web and these forums, tried many permutations of _root & _level*

What am i doing wrong?

Thanks,
-- joe

majicassassin
08-25-2005, 09:29 PM
Umm, try changing click to press? Other than that, I jsut duplicated what you said and it works fine? If that doesn't work, pst your fla please.

Sunny13
08-26-2005, 04:18 AM
first of all write these statements in your code to check whether the path of the text fields used is right or not.. then do the needful...:)
on(click){
trace(_root.rootText_txt);
trace( _root.source_mc.sourceText_txt);
}