A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Scrolling text box caching problem.

  1. #1
    Member
    Join Date
    Apr 2004
    Location
    IA, USA
    Posts
    57

    Scrolling text box caching problem.

    I have a site that utilizes a number of scrolling text boxes. The boxes call text dynamically from a text file. However, I am having a problem where it is reading the text from the cache so you have to reload the scene two or three times before the correct text shows up.

    Once the text is loaded once, I tried setting the variable back to blank, but it still caches on some machines.

    Any suggestions?

  2. #2
    Senior Member
    Join Date
    Jun 2002
    Location
    Southern Cal. USA
    Posts
    136
    Try this where U call the external txt file-
    rn=random(1000000);
    loadVariables("content.txt?"+rn);

    This will give the user a 1 in 1,000,000 chance they will load the cached file.
    Not bad odds the content will be fresh every page load.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center