4 Replies Latest reply on Jan 20, 2008 3:03 AM by WarDemonZ

    Log in Screen

    WarDemonZ Level 1
      Hi everyone, iv only just joined this forum and am relatively new to Director and all this kinda stuff and the 'help' files in the program seem pretty diar in my opinion, and never really have what im looking for.

      basically im making an interactive fitness program, and what i want is for the users to have their own login data and password etc that gets saved onto its own file somewhere when the user creates it, iv been told this is doable by a lecturer but he doesnt know himself how to do it. i was wondering if any of you very knowledgeable people might know how to make this, or the basics of it, or a book or website thats good for this kinda thing.

      Many thanks in advance

      Moza
        • 1. Re: Log in Screen
          Level 7
          Using just the built in stuff that comes with Director, you can use
          getPref and setPref to store your login info. If you want something
          that is a little more robust amd easier to use, then I would recommend
          looking up BuddyAPI

          www.mods.com.au/budapi

          It will let you do things like check to see if a file exists -

          baFileExists()

          as well as read from/ write to ini files.

          baReadIni()
          baWriteIni()

          If you want to encrypt the file, it has functions to do that as well
          • 2. Re: Log in Screen
            Level 7
            WarDemonZ wrote:

            > Hi everyone, iv only just joined this forum and am relatively new to Director
            > and all this kinda stuff and the 'help' files in the program seem pretty diar
            > in my opinion, and never really have what im looking for.
            >
            > basically im making an interactive fitness program, and what i want is for the
            > users to have their own login data and password etc that gets saved onto its
            > own file somewhere when the user creates it, iv been told this is doable by a
            > lecturer but he doesnt know himself how to do it. i was wondering if any of you
            > very knowledgeable people might know how to make this, or the basics of it, or
            > a book or website thats good for this kinda thing.
            >

            Hi Moza,

            Have a look at this demo:
            http://nonlinear.openspark.com/tips/text/password/index.htm
            Show's how you have to enter a password to continue with the application. You can
            download the source file.

            I have an application that does what you describe. I use a similar thing to the
            above demo. I save the password in an encrypted text file that the EXE loads at the
            start. I use Buddy Web to create this encrypted text file and to load it at the
            start.

            If you're new to Director and Lingo, the code may take a bit of time to absorb.
            But, the above demo definitely will do what you've described.

            regards
            Dean

            Director Lecturer / Consultant / Director Enthusiast
            http://www.fbe.unsw.edu.au/learning/director
            http://www.multimediacreative.com.au
            email: d.utian@unsw.edu.au

            • 3. Re: Log in Screen
              Level 7
              Hi again,

              Just to add something, with Buddy Web, you can save external text files as just text,
              or you can save lists (both of which can be encrypted). Having a list would work better
              for your login if you have usernames and passwords. You list may be:
              [#user1:"password1", #user1:"password2"]

              The above is a property list. More on lists can be found at:
              http://www.fbe.unsw.edu.au/learning/director/Lingo/lists.asp
              In the list example I gave, you could have 2 fields in your login page, one to allow
              the user to enter a username, the other the password associated with that username. In
              this case a property list is valuable. You could even use the username data in Director
              to restrict access - so may have an admin login for full access and a visitor login for
              restricted access,

              regards
              Dean

              Director Lecturer / Consultant / Director Enthusiast
              http://www.fbe.unsw.edu.au/learning/director
              http://www.multimediacreative.com.au
              email: d.utian@unsw.edu.au

              • 4. Re: Log in Screen
                WarDemonZ Level 1
                Hey, thanks you two

                ill have a test of both of these methods a little later on, but from what iv read so far they both sound great and just what i need, thanks again.

                Moza