Turning off caching for loading a text file

I'm new to AS3 and don't understand the properties setting
for URLRequest. I'm trying to turn caching off so when I reload the
text file, it always gets a fresh copy. I keep getting compiler
errors however with the useCache line. I'm not accessing the
properties correctly or something. When I take out that line it
works fine but always fetches the cached file.
My code is:
loadDoctorVariables();
function loadDoctorVariables() {
var requestJo:URLRequest = new URLRequest("
http://www.grxsolutions.com/gtslideshow3/"+doctorURL+".txt");
//requestJo.useCache(false);
requestJo.useCache = false;
var variables:URLLoader = new URLLoader();
variables.dataFormat = URLLoaderDataFormat.VARIABLES;
variables.addEventListener(Event.COMPLETE, completeHandler);
try
variables.load(requestJo);
catch (error:Error)
trace("Unable to load URL: " + error);
function completeHandler(event:Event):void {
var loader:URLLoader = URLLoader(event.target);
trace(loader.data.dayNames);
trace(loader.data.monthNames);
trace(loader.data);
trace(loader.data.saturationColor);
//saturationColor=10&hue=100&tint=255&bright=12&bgimage=ironman&slidesused=1,2,3,4,7,8,9, 10,11&voice=male1&alternateslides=7,doctorbob1,11,doctorbob2
}

append a random string to the URL, ie
var requestJo:URLRequest = new URLRequest("
http://www.grxsolutions.com/gtslideshow3"+doctorURL+".txt"+"?c="+Math.random());

Similar Messages

  • Document Level JavaScript to turn off caching for a PDF?

    I have been trying to find a way to ensure that a fillable PDF leaves no trace of itself on a computer that was used to open it. For example, if a user acceses a fillable PDF via browser or Reader, once they are done and have closed the browser or Reader, I want no trace of the information to remain in any cache on that machine. We don't want to require our users to try to control cache via settings in Reader, so I have been trying to find other ways to do this.
    I came across the following comment from GKaiseril in another thread - is this a way for a PDF to control its own caching? Any details or alternative approaches would be welcome!
    GKaiseril
    Re: Metadata - Can't remove
     You can also use document level JavaScirpts to turn off the auto complete and caching for a given PDF.

    Version 9 and 10 of Reader do not cache form data in a temporary FDF as previous version may have. The nocache document property it not even documented in the latest Acrobat JavaScript reference. If you're concerned about previous versions, you can use set the nocache document property at run-time, but users can disable JavaScript, so that approach is no guarantee.
    For information on controlling autocomplete, see: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.407.html

  • Turn off Cache in OBIEE

    Hi,
    I am seeing some issue with cache -
    Is it possible to turn off cache for all reports in OBIEE.
    Or
    Is it possible to purge cache automatically from RPD and from answer?
    Thanks,
    Poojak

    Hi ,
    You can diable the cache in NQSCONFIG.INI file.
    You can purge the cache from the answer
    http://bintelligencegroup.wordpress.com/2011/01/06/how-to-purge-the-cache-from-dashboard/
    and also from rpd manage -->cache you purge
    or using the event polling
    http://bintelligencegroup.wordpress.com/2011/07/27/event-polling-table-to-purge-the-cache-in-obiee/
    Hope this will help you.
    Thanks,
    Ananth

  • Can I Turn off iMessage in a group text with multiple people with different devices? There's 1 person in the group text that doesn't use iPhone anymore and they can't see any messages that are sent unless we send as regular text individually.

    Is there a way to turn off iMessage for a group text that includes multiple people with different non-apple devices? When a message is sent, only the iPhone users can see the iMessage. Those without them cannot see the texts unless we send individual Text Messages or turn off iMessage completely.

    now I have this and it still doesn't work.
    Section "ServerLayout"
    Identifier "Simple Layout"
    Screen "Screen 1" 0 0
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Touchpad" "SendCoreEvents"
    InputDevice "Keyboard1" "CoreKeyboard"
    Option "OffTime" "1"
    EndSection
    Section "ServerFlags"
    Option "AutoAddDevices" "False"
    Option "DontZap" "false"
    EndSection

  • How can I turn off imessage for just one of my contacts? Me and my husband just upgraded (both had iphone 4), I got the iphone 5s and he got he note 3. All my text to him automatically send as a imessage. Ive tried to delete his contact and then went back

    How can I turn off imessage for just one of my contacts? Me and my husband just upgraded (both had iphone 4), I got the iphone 5s and he got he note 3. All my text to him automatically send as a imessage. Ive tried to delete his contact and then went back in and reentered it but that doesnt work.

    Have your husband text the word "stop" to 48369. This should take his number out of the iMessage system.
    Go into your settings under messaging and make sure the box to send as an SMS if iMessage is unavailable is checked.
    Hopefully this will get your messages sending/receiving to each other.

  • How to load a text file?

    I'm trying to load a text file and I've run into a wall. So
    far, I've loaded swf files, image files and XML files without
    problems. But the text files just don't seem to load.
    It's not a tough situation. The files are in the same
    directory as the application. When I run it, I see no sign that the
    file has loaded, but haven't found the error trapping to tell me
    what is (not) going on.
    The code below was culled from examples on the web, they seem
    fairly consistent, and they are copied pretty much exactly. and I
    put them both into a single action to test them.
    Any clues as to what is not happening? I need to read an old
    txt data file that was used with AS2, with pairs of names and
    variables. The first example just reads a couple of variables. The
    second just reads some random text. I'm just trying to see what
    works here, so I can incorporate working code into the real
    program.
    Thanks for your help.

    Thanks Joergen,
    I put in the changes you suggested and still no sign that the
    files are even being opened., but it's very good to have the
    feedback. Just the fact that someone is getting them to run gives
    me confidence in the basic code. I'll hack on it more and let you
    know what the answer turns out to be for me.
    Thanks.

  • Loading a text file on startup into a hashtable

    I am trying to load to seperate textfiles into the same hashtable.
    The textfiles are something like an employee and employee number everything goes in at the same time. How do i load these text files into the hashtable. Also any good tutorials or code samples on hashtables would be greatly appreciated.
    Thanks In Advance

    You read the text files, one line at a time, and break up each line in whatever way you need to. Then you choose the bits to put in the hashtable (key and value) for each line and put those bits into the hashtable.
    http://java.sun.com/docs/books/tutorial/essential/index.html
    http://java.sun.com/docs/books/tutorial/collections/index.html

  • Loading a text file from a relative location in shockwave

    Hi all
    I'm REALLY sorry I have to post about such an inane problem.
    I've googled this and looked in forums and found several
    suggestions but none of them are working for me. I want to load a
    text file from the same directory as my movie. I can get this
    working in authoring mode, in a projector, and in a shockwave movie
    on the local machine (using getNetText("/text.txt")).
    But when i put the shockwave movie on a server, it does NOT
    work. The macromedia documentation says that getNetText works with
    relative URLs. But when I put in the full URL, it does work, so
    obviously the shockwave movie is having a problem finding the text
    file which IS in the same directory as it.
    Any suggestions / ideas? All i want to do is access a text
    file :)
    Sorry again for such a lame problem
    Mike

    thanks - this worked. I also had to not use a repeat loop to
    wait for netDone() to return true.
    Thanks again
    MIke

  • Error loading a text file during creation of data load rule

    Hi,
    I am trying to load this text file but whenever I open File -> Open Data File and then click on the file, it says "Invalid Blank Character in name". I tried changing the name of the file and everything but I do not understand what it really means. Can anyone help me out please? This seems like a simple error but I am unable to figure it out. Thanks.
    -- Adi

    As Glenn said, there should not be any space in the path that causes the error.For instance if you have ur file in the desktop(C:\Documents and Settings\Desktop), there would be space in between Documents and Settings. To avoid this, you could directly save in your local disk drive(C:\, D:, E:\).
    Regards
    Cnee

  • Turn off iMessage for just one person

    I have one friend that I text a lot who has an iPhone and I want to be able to text her using text message instead of iMessage. Another one of my friends only has an iPod though, so I don't want to turn off iMessage. Is there a way I could turn off iMessage for just my one friend?

    Elisa523 wrote:
    I have one friend that I text a lot who has an iPhone and I want to be able to text her using text message instead of iMessage. Another one of my friends only has an iPod though, so I don't want to turn off iMessage. Is there a way I could turn off iMessage for just my one friend?
    No.
    They can turn off iMessage and they won't send/receive them

  • "how to load a text file to oracle table"

    hi to all
    can anybody help me "how to load a text file to oracle table", this is first time i am doing, plz give me steps.
    Regards
    MKhaleel

    Usage: SQLLOAD keyword=value [,keyword=value,...]
    Valid Keywords:
    userid -- ORACLE username/password
    control -- Control file name
    log -- Log file name
    bad -- Bad file name
    data -- Data file name
    discard -- Discard file name
    discardmax -- Number of discards to allow (Default all)
    skip -- Number of logical records to skip (Default 0)
    load -- Number of logical records to load (Default all)
    errors -- Number of errors to allow (Default 50)
    rows -- Number of rows in conventional path bind array or between direct path data saves (Default: Conventional path 64, Direct path all)
    bindsize -- Size of conventional path bind array in bytes (Default 256000)
    silent -- Suppress messages during run (header, feedback, errors, discards, partitions)
    direct -- use direct path (Default FALSE)
    parfile -- parameter file: name of file that contains parameter specifications
    parallel -- do parallel load (Default FALSE)
    file -- File to allocate extents from
    skip_unusable_indexes -- disallow/allow unusable indexes or index partitions (Default FALSE)
    skip_index_maintenance -- do not maintain indexes, mark affected indexes as unusable (Default FALSE)
    commit_discontinued -- commit loaded rows when load is discontinued (Default FALSE)
    readsize -- Size of Read buffer (Default 1048576)
    external_table -- use external table for load; NOT_USED, GENERATE_ONLY, EXECUTE
    (Default NOT_USED)
    columnarrayrows -- Number of rows for direct path column array (Default 5000)
    streamsize -- Size of direct path stream buffer in bytes (Default 256000)
    multithreading -- use multithreading in direct path
    resumable -- enable or disable resumable for current session (Default FALSE)
    resumable_name -- text string to help identify resumable statement
    resumable_timeout -- wait time (in seconds) for RESUMABLE (Default 7200)
    PLEASE NOTE: Command-line parameters may be specified either by position or by keywords. An example of the former case is 'sqlldr scott/tiger foo'; an example of the latter is 'sqlldr control=foo userid=scott/tiger'. One may specify parameters by position before but not after parameters specified by keywords. For example, 'sqlldr scott/tiger control=foo logfile=log' is allowed, but 'sqlldr scott/tiger control=foo log' is not, even though the position of the parameter 'log' is correct.
    SQLLDR USERID=GROWSTAR/[email protected] CONTROL=D:\PFS2004.CTL LOG=D:\PFS2004.LOG BAD=D:\PFS2004.BAD DATA=D:\PFS2004.CSV
    SQLLDR USERID=GROWSTAR/[email protected] CONTROL=D:\CLAB2004.CTL LOG=D:\CLAB2004.LOG BAD=D:\CLAB2004.BAD DATA=D:\CLAB2004.CSV
    SQLLDR USERID=GROWSTAR/[email protected] CONTROL=D:\GROW\DEACTIVATESTAFF\DEACTIVATESTAFF.CTL LOG=D:\GROW\DEACTIVATESTAFF\DEACTIVATESTAFF.LOG BAD=D:\GROW\DEACTIVATESTAFF\DEACTIVATESTAFF.BAD DATA=D:\GROW\DEACTIVATESTAFF\DEACTIVATESTAFF.CSV

  • E71. How to turn off ringer for any contact in con...

    Hi
       Please can any one share how can I turn off ringer for any specific contact ?
    Regardds

    use your imagination: assign an empty mp3 file (or an "only silent" mp3 file) to that contact, it should work.
    GermanG from Argentina

  • TS5185 I have a friend who switched from iPhone to Samsung and I am only one that has to turn off iMessage to send a text! I have deleted her then readded and nothing seems to work and she has turned off iMessage on her other apple devices. Is there a sol

    I have a friend who switched from iPhone to Samsung and I am only one that has to turn off iMessage to send a text! I have deleted her then readded and nothing seems to work and she has turned off iMessage on her other apple devices. Is there a solution!

    I have completely deleted twice! Deleted from iCloud contacts and windows contacts! Nothing has changed! Thanks for your idea!

  • Can you turn off imessage for just one person?

    my boyfriend went from a iphone 4 to a windows phone but kept the same number and it still sends him imessages when my imessage is on and its annoying to hae to click send as a text every time. how do i fix this? can i turn it off for his number?

    Elisa523 wrote:
    I have one friend that I text a lot who has an iPhone and I want to be able to text her using text message instead of iMessage. Another one of my friends only has an iPod though, so I don't want to turn off iMessage. Is there a way I could turn off iMessage for just my one friend?
    No.
    They can turn off iMessage and they won't send/receive them

  • Can you turn off notification for emails

    How can you turn off notification for email but leave it on for text?

    Suds57  Thanks for posting, made me look a little deeper because I kept looking in general settings not specific app settings.  Appreciate both of the responses to this!

Maybe you are looking for

  • My iPhone 5 gets really hot and eats up battery with cellular turned on. Is this normal?

    The battery just went from a full charge to 40% in 3 hours and all I've done's go on instagram, some light browsing and texting. I just updated to 6.1.3, can't tell if it's the firmware cause I just got my data plan and started leaving cellular turne

  • How to use the Variants in SAP Transportation and what is its use ?

    Hi experts, How to use the Variants in SAP Transportation and what is its use & How to create a variant in SAP ? Can anybody answer this ? Regards, Shakti

  • Java for Mac OS 10.5 Update 9

    Cannot update Java for Mac OS 10.5 Update 9 - says source media is damaged irrespective whether from Sotware Updater or direct download any advice would be appreciated. thanks

  • Implementing Pivot Table like functionality using SQL

    Dear All, Please access a online document: http://docs.google.com/View?docid=dhntd3vh_0gmwgmq A 'query-output' is given. I have pasted this output in Excel and using it's Pivot table feature obtained an output given as 'Expected-Output' in the docume

  • Exporting FLA/SWF to FLV

    How can I turn my Flash 8 animation into an FLV file? The only solution I've found is exporting it as a .MOV file. But to do this I have to use Flash 5, which destroys my animation since there's no movieclip filters. There has to be a way to do this,