-
Scrolling text...SHOOT ME NOW
Sigh...here it goes...using MX
I have been working with this for a very long time and i just can't seem to figure it out.
I have a dynamic textfield that is in a movieclip which is cued by a button to load text from a .txt using an xml object, here is the load code for the button
//text through xml
The_Movement = new XML();
The_Movement.onData = function(data) {
data = data.split("\r\n").join("\r");
_root.body.text_window.mytextfield = data;
};
The_Movement.load("./Text/The_Movement.txt");
the text loads fine, but it does not scroll. I do not know why, i have ransacked through countless search results on this issue, but none of them were exactly the same as my situation and they didn't work, those that i tried. I know similar questions have been answered, but please help me out here. PLEASE!!! It is 4AM and i have class in 4 hours, I think I am going to shoot myself.
You can get my source code from http://www.engr.uconn.edu/nsbe/Ze/Do.../no scroll.zip
The culprit is the "About Us" button _root.menu.buttons.About_Us.button and the text field is _root.body.text_window.my_text
Sorry for the sloppy code, i am a newbie
Thanks
-
change this:
PHP Code:
The_Movement.onData = function(data) {
data = data.split("\r\n").join("\r");
_root.body.text_window.mytextfield = data;
};
to this instead:
PHP Code:
The_Movement.onData = function(data) {
data = data.split("\r\n").join("\r");
_root.body.text_window.my_text.text = data;
};
-
i am confused
I don't understand, i tried that last night and it didn't work, but it works now, somewhat, now the textfield disappears after a few seconds. But why didn't it work the way it was originally? The variable for the text in my_text was "mytextfield" which should be equivalent to my_text.text correct?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|