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

Loading dynamic text from External Swf.

Status
Not open for further replies.

nofx1728

Technical User
Jan 26, 2006
65
US
Ok, I have a slight problem. I have an external swf titled ssfpabout.swf. When I preview it the text loads correctly, and everything is great. However, when I load it into my main movie I am not having the text show up. I assume this is just a pointing problem, but I can't figure it out.

First off I have my dynamic text on bottom layer with instance name of fpmain_txt. Then on the next layer I have two buttons (up and down) to control scrolling.

1. On my actions layer on the main timeline I have these actions:
Code:
stop();

loadText = new LoadVars();
loadText.load("about.txt");
loadText.onLoad = function() {
		fpmain_txt.text = this.abouttext;
		}

Then on my buttons (only displaying up_btn code)I have these actions:
Code:
on (press) {
	onEnterFrame = function() {
		this.fpmain_txt.scroll -= 1;
	}
}

on (release, releaseOutside) {
	delete onEnterFrame;
}

2. Then my text file is saved about.txt and on the first line it has abouttext=

3. Then in my main movie I have this action to call the swf =
Code:
_root.ssfp_mc.topmenu_mc.about_mc.onRelease = function() {
	if (_root.ssfp_mc.section != "ssfpabout.swf") {
		_root.ssfp_mc.section = "ssfpabout.swf";
		_root.ssfp_mc.transition.gotoAndPlay("closing");
	}
}

I also clicked embed on the ssfpabout.fla to see if that was the problem, but it wasn't.

Can someone please help me out, and get my text displaying properly!

much Thanks,

nofx1728
 
Sorry please disregard this post, I just retested movie, without changing a single thing, and the text is now displaying lol. No clue why. Sorry for wasting your time!

Thanks,

nofx1728
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top