flash actionscript:
Okay...this is FlashMX...I have a swf called "data-workshops.swf" and in that
swf is a movie clip with instance name of 'text'. In that movie clip is a
dynamic text field, also with an instance name of 'text'...and a
Flash-component scrollbar that is assigned to 'text.' And on frame 1 is this
script:
loadVarsText = new loadVars();
loadVarsText.load("workshops.txt");
loadVarsText.onLoad = function (success){
if (success){
trace ("done loading");
text.html = true;
text.htmlText=this.var1;
}else{
trace ("not loaded");
}
}
So..."workshops.txt" loads in to the dynamic text field just fine when I test
THAT swf. No worries. I can see the text from the external txt document. But...
I have my Menu on a whole 'nother level. So, when someone pushes a button in
the "menu.swf", which is on level 200, here is what is supposed to happen: the
movie clip "data-workshops.swf" loads into an empty mc with an instance name of
holdClip. When I test the menu.swf, the text is now not there.
But wait - there's more!
The scrollbar THINKS there is still text there - 'cos it has adjusted itself
to the amount of text that is in the workshops.txt document. And I can scroll
the scroll bar...it's just as if I am scrolling invisible text.
Also...I added some static text to the "data-workshops.swf"...in the exact
same place as the dynamic text field. And it shows up fine! So, from this I
know that the "data-workshops.swf" has been loaded into the empty movie clip
(holdClip). It's just that the text from the "workshops.txt" file has not made
the transition - even though the scroll bar is somehow still reading it.
Do I win a prize or something for the longest question?
If this is easy, I will off myself. :-)