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

help with text scroll

Status
Not open for further replies.

HumanBean

Technical User
Oct 1, 2004
13
AR
Hi, I have a problem
I'm making a text scroll; I've a dynamic text and two buttons for the scroll action
The problem is, I need to have more than one font inside that dynamic text, and I'm not beeing able to make that work.

Is this possible? can I have more than one font ina dynamic text? Is there another way to do the scroll that allows me to use more than one font?

thanks in advance
 
I think I've solved this problem; I just used "render text as HTML" in the propierties panel, and now is displayed with different fonts and colors, just as I needed.

but, now I have another problem.

This movie I'm working on must be loaded into another movie using the loadmovie action.

I've different dynamic texts, each named scrolltext_1, scrolltext_2, etc.

I've two buttons I use for scrolling up and down; this is the type of actionscript they use:

onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
scrollup = true;
}
}
onClipEvent (mouseUp) {
scrollup = false;
}
onClipEvent (enterFrame) {
if (scrollup) {
_root.scrolltext_2.scroll += 1;
}
}



the thing is, when it loads in the main movie, the scrolling doesn't seem to work. I'm quite sure that's because I'm messing up the _root value, but I don't know how to fix it.

If you know how I could solve this, please help me
 
Ummmmmh! Are you by any chance on MX2004?

If so, look into _lockroot...

If not, you could load your movie on another level of your main movie, where then usually no script changes are necessary, or change your references to _root to the appropriate this and/or _parent's, if you still want to load it in a container clip.
 
thanks a lot, I changed the _root value for _parent in all the buttons and it works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top