Mark Jonkman:

>As for the original question, you can read and write files to the Shockwave
>dswmedia folder on the endusers harddrive, provided that you don't exceed
>64K total write, they will never know what happened, but if you exceed 64K
>in the session, they should see an alert box warning them that you are
>messing with their harddrive and improving windows performance :). However,
>you cannot write to the harddrive anywhere outside of the dswmedia folder as
>it violates Shockwave security. I believe, that the creativity Xtras (or
>whatever they are called) used by shockwave.com (and Jim Collins) create a
>dswmedia folder in the root directory of the OS installed... not sure how
>they got away with that one, but they did. The reason for the 64K limit is
>to warn end users that you are a) writing to the drive, b). keeps you honest
>as you have to consider whether you ever want to write so much as to get the
>alert.  64K really isn't alot, but if it was unlimited without warning then
>everyone might try writing copious amounts of data there.


Hi Mark.  I think you *may* be confusing the dswmedia folder with the 
Prefs folder, which is used for getPref, setPref lingo. This 64kb 
point at which you get a warning applies to getPref and setPref 
lingo.  When you use setPref, the text data gets written out to a 
Prefs folder in the Shockwave 8 folder -- different than the dswmedia 
folder.

-Jake


Jake Sapirstein  [EMAIL PROTECTED]

Developer Relations Lead
Director and Shockwave Engineering

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to