Loading Dynamic Text into a nexted movieclip

I’ve been working at this and searching forums and man, am I getting frusterated. any help would be greatly appreciated. here’s what I have on an action frame in _root.

stop();

var format = new TextField.StyleSheet();
var path = “…/main.css”;
format.load(path);
format.onLoad = function(loaded) {
if (loaded) {
_root.pa.aopindividual.styleSheet = format;
loadText = new LoadVars()
loadText.load("…/content/attorneys/practice_areas/allen_haugrud.txt");
loadText.onLoad = function() {
_root.pa.aopindividual.htmlText = this.content;
_root.pa.play(1)
};
} else {
_root.pa.aopindividual.htmlText = “Error loading CSS file!”;
}
};

now my movieclip is called “pa” and when I get to this scene via my root movie I have the script above loading. it plays the nested movieclip “pa” just fine, but it doesn’t load the text in. however, if I take the dynamic text box out of the movie clip “pa” and just have it sitting in my main _root movie and then do this instead:
stop();

var format = new TextField.StyleSheet();
var path = “…/main.css”;
format.load(path);
format.onLoad = function(loaded) {
if (loaded) {
aopindividual.styleSheet = format; //<------------
loadText = new LoadVars()
loadText.load("…/content/attorneys/practice_areas/allen_haugrud.txt");
loadText.onLoad = function() {
aopindividual.htmlText = this.content; //<----------------

          };
  } else {
      aopindividual.htmlText = "Error loading CSS file!";   //&lt;----------
  }

};

It loads the text. How do I get it to load the dynamic text into the nested movie. help. please. pretty please.
I’m VERY new to this and trying my hardest to learn. (I only know html and css so please dumb your answer down to my level)

anyone out there? help?

Hi

Well i am just giving some of my thoughts…just try since i never used css before but i am able to load dynamic text inside a MC.

I guess ur problem is
var format = new TextField.StyleSheet();
Format obj ur creating on stage which might no be accessed inside MC, so what i would suggest is

_global.format = new TextField.StyleSheet();

try using this. Let me know if ur still facing any problems…


aShIsH

Thanks for the tip ashis. I actually got it working right before you posted your reply though. I found out that the nested text box had to be in the very first frame of the movie I was targeting. kind of anoying, and I’m sure you could do it other ways, but I got it working. Thanks,
jnk