This content has been marked as final. Show 3 replies
you have not mentioned where your class is and how the object of it is created.
from whereever, its as simple as you would access your root from an internal/nested timeline... jus use the following code in your class to set the value of the desired textfield
_root.myLable_txt.text = "the text value";
thank you... we can use like this. is there any another way to use. What if this swf would be loaded by some other swf.
i've "A.swf" where i've created an object like 'myLable_txt' and "A.swf " could be inside of N number of parent SWF then. what is the best idea.
abc.swf // loadMovie("123.swf")
» 123.swf // loadMovie("A.swf ")
Thanks for your time.
If the class object is contained in A.swf, you could try this._parent to access the root timeline of A.swf. If there are more MCs contained in A.swf, add _parent for each MC. To see if the path is right you can use trace(this._parent) inside your class and see where that ends up in the output window.