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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem using Loadmovie

Status
Not open for further replies.

cybernetic

Programmer
Jul 30, 2001
6
GB
I have a movieclip called circle, which has a movieclip inside it called internal. I have loaded an external movie (Symbol4.swf) into circle.internal. Symbol4.swf has a textfield in it called text1. I need to be able to set this value, and have tried using the syntax:

Code:
_root.circle.internal.text1="test";

But have had no luck setting the text within the embedded movie clip. I can set the value in the external swf file but i cant do this, as I am loading multiple instances of the same external file to the movie and the text for each instance will be different.

Is there any way to pass variables to the loaded clip using loadmovie itself? I knwo it says in the actionscript dictionary

Code:
myMovieClip .loadMovie(" url " [, variables ])

where variables =get or post. However Im unsure which variables it posts, is is automatic or do you have to set up a loadvars object.

I would appreciate it if anyone could help me with this as soon as possible.

Thanks
 
If "text1" is the instance name of the textfield, it should really be...
Code:
_root.circle.internal.text1.text = "test";

 
Thankyou for your reply, but I have already tried that also. I cannot seem to get it to refer to the text field after I have used the loadmovie action.

I would like to be able to pass variables to the loaded movie, but am unsure how. How do you set up the variables and send them in the loadmovie statement?
 
Can you post a link to a mockup .fla?

Zipped up and in MX only format?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top