0
Help with scrolling text file inside swf.

/t5/animate-discussions/help-with-scrolling-text-file-inside-swf/td-p/879992
Oct 16, 2008
Oct 16, 2008
Copy link to clipboard
Copied
Hello, I am being brought in on a project developed by
someone else. Everything I have learned tells me to make an action
script layer that contains all the action script but this person
has not done that. It appears the script is on each component.
Anyway, LSS the Flash calls a text file that displays inside the
Flash and it is supposed to scroll but the problem is that if I add
to the text file the scroll does not extend. It stops and you can't
read the new content.
TOPICS
ActionScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/animate-discussions/help-with-scrolling-text-file-inside-swf/m-p/879993#M244657
Oct 16, 2008
Oct 16, 2008
Copy link to clipboard
Copied
then you need to adjust the parameters that control the
scolling. this should be done by script that uses the textfield's
maxscroll property AFTER loading of text is complete.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

Guest
AUTHOR
/t5/animate-discussions/help-with-scrolling-text-file-inside-swf/m-p/879994#M244663
Oct 16, 2008
Oct 16, 2008
Copy link to clipboard
Copied
Thank you for helping.
Normally I would assume that this would be in an action script layer but this person has not set up the FLA that way. All the script that I can find is directly on the elements.
When I go to the layer that has the dynamic text there is a scroll there but I can't find the script for it. Any guesses?
Normally I would assume that this would be in an action script layer but this person has not set up the FLA that way. All the script that I can find is directly on the elements.
When I go to the layer that has the dynamic text there is a scroll there but I can't find the script for it. Any guesses?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/animate-discussions/help-with-scrolling-text-file-inside-swf/m-p/879995#M244666
Oct 16, 2008
Oct 16, 2008
Copy link to clipboard
Copied
check the scrollbar for attached code, check the scrollbar
timeline for code and check the dragbar for attached code. and
check the textfield's parent timeline for code.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

Guest
AUTHOR
/t5/animate-discussions/help-with-scrolling-text-file-inside-swf/m-p/879996#M244671
Oct 20, 2008
Oct 20, 2008
Copy link to clipboard
Copied
Yep. checked there and there is nothing that defines
anything.
This is what is on the scroll bar
myData = new LoadVars();
myData.onLoad = function() {
myText_txt.html=true;
myText_txt.htmlText = this.myVariable;
};
myData.load("myText1.txt");
The scroll will go as far as the bottom of the Flash file (stage) but that is it. Is it possible to have the scroll be longer than the Flash file because the txt file that it loads is longer? Or can you only have the scroll as long as the fla is?
This is what is on the scroll bar
myData = new LoadVars();
myData.onLoad = function() {
myText_txt.html=true;
myText_txt.htmlText = this.myVariable;
};
myData.load("myText1.txt");
The scroll will go as far as the bottom of the Flash file (stage) but that is it. Is it possible to have the scroll be longer than the Flash file because the txt file that it loads is longer? Or can you only have the scroll as long as the fla is?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/animate-discussions/help-with-scrolling-text-file-inside-swf/m-p/879997#M244677
Oct 20, 2008
Oct 20, 2008
Copy link to clipboard
Copied
no object can extend beyond the stage (and be visible in the
swf). but, no matter how much text is in the textfield, it can be
all be scrolled into the visible textfield.
1. the scrollbar properties and methods should be assigned by calling a function or functions from the onLoad() method After htmlText is assigned.
2. if scrollbar interaction actually scrolls some part of the text, there must be code somewhere.
3. if the scrollbar is a component (ie, precompiled movieclip), you should wait until the the htmlText is assigned before instantiating the scrollbar.
1. the scrollbar properties and methods should be assigned by calling a function or functions from the onLoad() method After htmlText is assigned.
2. if scrollbar interaction actually scrolls some part of the text, there must be code somewhere.
3. if the scrollbar is a component (ie, precompiled movieclip), you should wait until the the htmlText is assigned before instantiating the scrollbar.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

Guest
AUTHOR
/t5/animate-discussions/help-with-scrolling-text-file-inside-swf/m-p/879998#M244683
Oct 21, 2008
Oct 21, 2008
Copy link to clipboard
Copied
I looked at the code associated witht he scroll bar and it
reads:
myData = new LoadVars();
myData.onLoad = function() {
myText_txt.html=true;
myText_txt.htmlText = this.myVariable;
};
myData.load("myText1.txt");
What I am attempting to do is exactly what you have on your web site under "publications".
I spoke to the developer of the FLA today and she use a component and more or less punted. She sent me some links on scroll bars and Flash. Bless her heart but I have Google too!
I made an attempt at making another FLA and assigned the scroll bar after I had the txt file there but it didn't make any difference.
How did you do the one on your site?
myData = new LoadVars();
myData.onLoad = function() {
myText_txt.html=true;
myText_txt.htmlText = this.myVariable;
};
myData.load("myText1.txt");
What I am attempting to do is exactly what you have on your web site under "publications".
I spoke to the developer of the FLA today and she use a component and more or less punted. She sent me some links on scroll bars and Flash. Bless her heart but I have Google too!
I made an attempt at making another FLA and assigned the scroll bar after I had the txt file there but it didn't make any difference.
How did you do the one on your site?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/animate-discussions/help-with-scrolling-text-file-inside-swf/m-p/879999#M244686
Oct 22, 2008
Oct 22, 2008
Copy link to clipboard
Copied
that's a textarea (ta) component. you don't need to do
anything with the scrollbar for a ta.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

Guest
AUTHOR
/t5/animate-discussions/help-with-scrolling-text-file-inside-swf/m-p/880000#M244690
Oct 24, 2008
Oct 24, 2008
Copy link to clipboard
Copied
OK the problem was that I was trying to put in HTML code that
won't work with flash. I was putting in a business name with an
ampersand and it won't deal with & or the askeyII either for
that matter. Once I stripped it to raw HTML code with no frills it
worked fine.
Now the issue is that I have some links in there and when I click the link it opens a new browser window like the _blank tag tells it to but it puts the root directory in the address bar and then the URL and this of course results in a 404.
Any guesses? THis is still in the TXT file that isbeing called and put into Flash.
Thanks
Now the issue is that I have some links in there and when I click the link it opens a new browser window like the _blank tag tells it to but it puts the root directory in the address bar and then the URL and this of course results in a 404.
Any guesses? THis is still in the TXT file that isbeing called and put into Flash.
Thanks
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

Guest
AUTHOR
/t5/animate-discussions/help-with-scrolling-text-file-inside-swf/m-p/880001#M244693
Oct 24, 2008
Oct 24, 2008
Copy link to clipboard
Copied
.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/animate-discussions/help-with-scrolling-text-file-inside-swf/m-p/880002#M244695
Oct 24, 2008
Oct 24, 2008
Copy link to clipboard
Copied
my guess is, there's a coding problem.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

