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

LoadVars into a Dynamic Textbox-Inside a movieclip

Status
Not open for further replies.

Kirderf

Technical User
Oct 4, 2000
183
0
0
US
Is there a path needed to call LoadVars into a dynamic textbox that is not on the _root level?

Here is my code:

myData = new LoadVars();
myData.onLoad = function() {
productInfo.text = this.myVariable;
};
myData.load("myText1.txt");

When I use it on the main timeline it works fine. When I place the dynamic textbox on a timeline inside of a nested movie, nothing happens.??

I'd gladly pay you on Thursday
for a hamburger today!
 
Yes, that works absolutely perfectly...until I move the dynamic textbox down the timeline of the movie. I wonder if the LoadVars class calls the information and then does not display it because there is no container on the first frame? Any ideas?

I'd gladly pay you on Thursday
for a hamburger today!
 
It looks like I will need to find a way to assign the information to a variable at load time and then call the variable into the dynamic box. My new quest.

I'd gladly pay you on Thursday
for a hamburger today!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top