Hey all,
This is really bugging me. I have a main fla that uses a holder clip to load external swfs. One of those external swfs holds Claudio’s scroller into which I’m loading external text. I had this working just fine for awhile. Then I migrated to MX2004 and now I can’t get the text to load? I get the classic “can’t find file blah blah blah” even though the text file is sitting in the same place as the fla.
This is the code for loading the external text:
MovieClip.prototype.scrollEase = function() {
this.onEnterFrame = function() {
loadText = new LoadVars();
loadText.load(_global.filename);
loadText.onLoad = function(success) {
if (success) {
trace("success");
_root.content.holder.main.moretxt.html = true;
_root.content.holder.main.moretxt.htmlText = this.rgtxt;
}
};
if (Math.abs(dy) == 0 && drag == false) {
delete this["onEnterFrame"];
}
// end if
r = (this._y-y)/(bar._height-this._height);
dy = Math.round((top-(top-bottom)*r-main._y)/speed*friction);
main._y = main._y+dy;
};
};
“main” and “moretxt” are on the external swf; “content” and “holder” are on the main fla.
Any glaring obvious errors?