1 Reply Latest reply on Nov 26, 2007 4:10 AM by Greg Dove

    saving user settings?

    Level 7
      Hi all,

      I have a simple (web based) flash media player that is used to play mp3's
      (play, pause fwd etc)

      There is a volume control on the player that sets the volume to 80% by
      default when the player loads

      The problem is, if the user changes the volume (to say 20%), then refreshes
      the page, the volume is reset back to 80%

      Does anyone know of a way to allow the web user to set their own volume and
      have it stay there, even is they refresh the page or click a link to the
      next page? (each page has the media player on it). So it somehow stores the
      volume setting for each individual user, and if it finds this setting, uses
      that, if not, then uses the default?

      Anyone have an idea? or can point me in the right direction?



        • 1. Re: saving user settings?
          Greg Dove Level 4
          I can think of two ways.
          Server based:
          You could have the setting stored in your user's account and (assuming the player is only accessible by authenticated users) you could pass the setting in a flashvar when the page holding the swf is generated.

          Client based:
          You could use a local sharedObject to save the user preferences and retrieve it the next time the swf is played. check out sharedObject in the help files.