all groups > flash (macromedia) > october 2003 >
You're in the

flash (macromedia)

group:

Scrollbar Component not working


Scrollbar Component not working Nick_KC
10/17/2003 11:18:39 PM
flash (macromedia):
Hi,

This is probably pretty simple to most but I have never used the component.

I have a simple fla file, it has a movie clip on the main stage and then inside that movie clip is a dynamic text field that loads a text file from my server. I can't get the scrollbar component to work with this text field. I have drug it onto the text field and it has taken on the name of the text field instance... When I check it it does not work.

Can anybody help me please?

Thank you!

Re: Scrollbar Component not working Annie123
10/18/2003 3:25:17 PM
If you can zip the file, I can take a look (Flash MX).


All the best,

Re: Scrollbar Component not working Nick_KC
10/18/2003 9:27:44 PM
Re: Scrollbar Component not working Annie123
10/18/2003 10:22:53 PM
I could not get it to work either. I think you may have one too many symbols. Try placing the dynamic text and scroll bar on the same layer in the main timeline.

I also believe that your action script needs to define a new variable, such as:

aboutus = new LoadVars();
aboutus.load("http://www.webhelio.com/e.txt", "_root.aboutus");

I tried for over an hour to fix your problem, but no luck :-(

I'm wondering whether any actionscript gurus can take a look at this. Also, you might want to post this in the Actionscript forum. Please keep me posted because I really want to know why it does not work. I'm pretty sure it has to do with loading new variables from the e.txt file.


All the best,

Re: Scrollbar Component not working urami_
10/18/2003 11:29:34 PM

[quoted text, click to view]


must be timing issue, component is dynamic and assemble on the fly , it might not have the text on time . Keep in mind that component utilize linkage
, than the linkage items
are loaded prior to an other item on the timeline , so while your component getting
ready , it hasn't receive its variables and therefor does not display it .

Best is to make some check whether it is loaded before passing it to scroll bars...

here you find code and file samples :
http://www.macromedia.com/support/flash/ts/documents/dynamic_text_scrollmx.htm




Regards

urami_*



<lsym>

There's no place like 127.0.0.1

Re: Scrollbar Component not working rdoyle720
10/19/2003 4:51:41 AM
First of all, it's good coding practice to come up with unique names for all aspects of your files. Using "aboutus" for both the clip and the variable name can get you messed up fast.

In order for a scrollbar to update properly, you need to set the contents of the field by using the instance name, not by using the variable. So in your file you needed to use aboutsus.text=aboutus.

You also need something to trigger moving the content in there after it's loaded. In this case I just made the clip loop over and over for simplicity. Take a look, should work for you now.

http://webforums.macromedia.com/attachments/site-revised.zip


Re: Scrollbar Component not working Nick_KC
10/20/2003 7:25:10 PM
Thanks

AddThis Social Bookmark Button