Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scrollbar component not working online

Status
Not open for further replies.

raznov

Programmer
Apr 8, 2002
110
US
I am using a scrollbar component on a dynamic text field that loads a .txt file with some .htm embedded in it. All works fine locally, but when I upload to the server, the scrollbar does not work. I tried uploading to two different servers and no luck. What could be the problem?

KIM
 
Hard to say with the little info provided. At least, post a link to the movie and to the text file, and better upload your .fla (zip it up) to your server, and provide a link so we can download it from there, to have a look.

Regards,

cubalibre2.gif
 
Okay, I have uploaded a zip file here.
Inside is the .html file, the .swf file and the .txt file.
You will see if you click on the .html file that the movie plays in the browser fine, it loads in the dynamic text and scrolls.

But, if you look here...
I have uploaded the same files to my server and the scroll bar is not working. I have checked with the server and they definately have the flash 6 player enabled. I have also tested it on another server and I get the same results.

The actual finished movie can be view here...

and click on the flash version you will see that it is the same problem.

Thanks in advance for your help OldNewbie.

KIM
 
Ok! This works...


Used LoadVars() instead of loadVariables (which is much better!), and had to name all of your "newsbox" instances in your tween, in your "currentbg" layer. Didn't have the font you used, so used Arial. You should most probably embed the font you're using to ensure that all will see it!

Here's the package. Download it quickly, I won't leave up for long.




Regards,

cubalibre2.gif
 
Hey, thanks for your help OldNewbie. I think I figured an easier fix, I didn't have the instance name specified in the loadVariable action. It now reads...

loadVariables("news.txt", _root.alloftheshit.newsbox.thismonth);

whereas before it just read...
loadVariables("news.txt", "");

Silly of me, I know.
KIM
 
LoadVars() is still better!

But the decision is your's!

Regards,

cubalibre2.gif
 
Hey, I tried it like this, but it doesn't work.
LoadVars("news.txt", _root.alloftheshit.newsbox.thismonth);

KIM
 
LoadVars is not used in that way... You had all of it in the zip package I posted!

Regards,

cubalibre2.gif
 
Yes I do have it in that format... Thanks for all of your help OldNewbie.

KIM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top