Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Help with scrolling text file inside swf.

Guest
Oct 16, 2008 Oct 16, 2008
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
685
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 16, 2008 Oct 16, 2008
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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 16, 2008 Oct 16, 2008
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?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 16, 2008 Oct 16, 2008
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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 20, 2008 Oct 20, 2008
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?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 20, 2008 Oct 20, 2008
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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 21, 2008 Oct 21, 2008
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?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 22, 2008 Oct 22, 2008
that's a textarea (ta) component. you don't need to do anything with the scrollbar for a ta.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 24, 2008 Oct 24, 2008
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 24, 2008 Oct 24, 2008
.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 24, 2008 Oct 24, 2008
LATEST
my guess is, there's a coding problem.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines