Load new text on click

Hello, here are the basics of what i am trying to do in flash mx:

have 4 or 5 text links.

have a text “area”

when you click each link you get new text about that subject.

I have been through the tutorial on dynamic text and that works great.

But this is going to be made into a projector and I dont know how those text files will work with a projector.

Also, I need to figure out how to make the text change each time a link is clicked.

Please let me know if you know of a tutorial or something that will help me figure this out.

Thanks for your time,
Kenny

I think this could be what you are after: http://oddhammer.com/unicode/tutorial.htm.

I have used text files with a projector before and it worked. Just keep the text files in the same folder as the projector is.

That tutorial is good…
But they dont have any scroll bars on theirs…

Thats the prob with mine right now…
I have it working great…

But the scroll bar does not work right…

It has something to do with the fact that I have a variable on the text area…

I made one without the dynamic text and the scroll bar works great… so i dont know whats up…

Can you post the fla file here?

Thanks… here it is…
i could not make it small enough to upload here for some reason…

If you click on button 2… it looks like the scroll bar works…

but if you highlight the text you will see that there is a lot more text at the bottom…

http://www.forhisglory2003.com/flashdemo/demo.fla

the text files are also there…

thanks

The fla file only appeared in the post not the text files.

sorry… they are in that dir on the server…

http://www.forhisglory2003.com/flashdemo/test.txt
http://www.forhisglory2003.com/flashdemo/test2.txt
http://www.forhisglory2003.com/flashdemo/test3.txt

thanks again

This must be part of the problem.
I am using a variable for the dynamic text area…
And using an instance name…
Look at this note I found on the Macromedia site.

Note: Do NOT give the text field a variable name. But do give it an instance name. In this example the instance name is ‘scroller’ and line type popup is set to ‘multiline’.

That must be why the scrollbars dont work…

Thats all I can think…

Sorry about the delay but unfortunately I can’t work it out maybe someone else might be able to.

There is no need to double post…

Electrogeek… I dont know what you mean…
Unless I hit my back button or something…
and it submitted it twice…

anyway… sorry if i was a pain…

peace out

I just deleted a second thread you posted on this same subject. Let’s keep it to one thread, creating more threads will only confuse people more.

No harm done…

If you want to keep a thread alive, next time just reply to the same thread so that it gets moved to the top of the section so others will see it.

Well I looked this up on the macromedia site… and they have an example of using a dynamic text area… but they say not to use assign a variable to the text area…

And to make this work we assigned a variable to the text area…

So I dont know if this will work or not…

Anyone ever done this before?

Still no takers for this one?

I don’t understand why your file size is so huge for what it’s doing. I didn’t check, but do you have a lot of things in your library that you are not using? Anyho–

I ripped out your component because it obviously loads once, and that’s it. That’s my guess anyway. I made some extra buttons and when you rollOver them they will scroll no matter what is in them.

Hope that works for you. Here’s the link to it (to lazy to zip):

http://www.freddythunder.com/flas/kmax.fla

:beam:

ya know… i still pretty new to flash…
so yeah… i probably have a ton of stuff in the library thats not used. :slight_smile: just making symbols… then deleting those layers etc…

i will try that in a bit when i get to work where there is flash mx…

thanks

thanks! that works.
i still dont know why the scroll bar wont work…
but oh well… .these custom buttons look better anyway…

now i can start building my app… thanks man.

kj

What does this line do?
scrollInt = setInterval(scrollText, 1000/24, this.a)

It looks like it sets the speed… I was trying to learn how this works…

By the way, about those buttons, I noticed after I posted it that I didn’t adjust the over state of the down button, you may want to fix that.

setInterval is a timer script kinda like getTimer();. I’m have too much of a grasp on how it works, because I use getTimer more. Kax gave that code to me a few months ago and I used it on a project. There is a thread where LostInBeta explains it. It’s here:
http://www.kirupaforum.com/forums/showthread.php?s=&threadid=24289&highlight=getTimer

You are absolutley right, though, it sets a timer. The funtion is to scroll the text.
(-: