Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Interaction between loaded MCs

Status
Not open for further replies.

haslo

Programmer
May 17, 2001
319
CH
Hi folks

I'm loading a swf into a level or ready-made MC as a container (I tried both) and then try to access a textfield variable inside that newly loaded swf - from the main timeline on level 0.

the loading works via:

Code:
loadMovieNum("other.swf", 3);

if I then try to access the text field via
Code:
_level3.textfield = "test";
, this does not seem to work. What do I do wrong?

Thanks for your help...
allow thyself to be the spark that lights the fire
haslo@haslo.ch - www.haslo.ch​
 
Is the textfield in level 3 looking for a variable in the main timeline of level 3 called "textfield"? Or are you just assuming that "textfield" will address the actual textfield object?

Try this ... highlight the textfield, open your TEXT OPTIONS panel, and in the box entitled "variable", type "text" (minus the ""). Then on the button in level 0 using this code:

_level3.textfield = "test";

change the code to this:

_level3.text = "test";
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top