Go Back   Flashtory Support Forum > Flash Files Support > Other Flash Files > Horizontal News Ticker 01

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-05-2009, 06:45 AM
Junior Member
 
Join Date: Aug 2009
Posts: 3
Default stopped reading xml file!

I have a problem. My news ticker has stopped reading updates to my xml file, although it still displays my old text which doesn't exist anymore. i have even deleted the xml file on my server and reuploaded it from my local files and it still reads the old text. if i don't even have an xml file at all, it still reads my old text. from what i understand, it will only read a data.xml file from where the swf is located. i only have one data.xml file on my server anyway. please help, i can usually fix this stuff with ease but i just don't understand now.
Reply With Quote
  #2 (permalink)  
Old 08-05-2009, 08:20 AM
Junior Member
 
Join Date: Aug 2009
Posts: 3
Default

okay, so i figured out why the xml didn't appear to be loading, i simply had to clear my cache. now the ticker does not scroll which is odd. how can i fix this. if i figure it out before your response, ill post it here.
Reply With Quote
  #3 (permalink)  
Old 08-05-2009, 08:42 AM
Junior Member
 
Join Date: Aug 2009
Posts: 3
Default

hmm, so i work for an hour and can't figure something out, post here and then i figure it out, sorry about that. i got it scrolling again but anytime i change the "total width" in the data.xml it stop scrolling. i want the scroller to fit the width of the users screen based on their resolution. can i do this or is it not possible, i have tried many different methods.
Reply With Quote
  #4 (permalink)  
Old 08-07-2009, 11:22 PM
Junior Member
 
Join Date: Aug 2009
Posts: 1
Default We're having the same issue

How can we force the Flash ticker to reload the data.xml file when it has been updated? Is there a PARAM we can use to cause a reload or perhaps choose an alternate XML file?
Reply With Quote
  #5 (permalink)  
Old 10-12-2009, 05:47 PM
Flashtory Staff
 
Join Date: Feb 2009
Posts: 239
Default

In order to fix the cache problem please send the xml to the flash using the flashvars. I have attached an archive with the html and the js file you will need.

so.addVariable("xml", "some_xml_file.xml?time="+new Date().getTime());
use this to pass the cache problem.

Cheers !
Attached Files
File Type: zip Skin 1.zip (3.0 KB, 7 views)
Reply With Quote
  #6 (permalink)  
Old 10-12-2009, 05:50 PM
Flashtory Staff
 
Join Date: Feb 2009
Posts: 239
Default

Quote:
Originally Posted by KingHubbard View Post
hmm, so i work for an hour and can't figure something out, post here and then i figure it out, sorry about that. i got it scrolling again but anytime i change the "total width" in the data.xml it stop scrolling. i want the scroller to fit the width of the users screen based on their resolution. can i do this or is it not possible, i have tried many different methods.
Hello, go to main.as and find and modify this:

bg._width = mask._width = Math.round(Stage.width);

save and compile.

Cheers
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
based on a modified theme of CompleteGFX