2 Replies Latest reply on Dec 5, 2006 12:16 PM by Flakx

    Chat Tutorial

    Flakx Level 1
      RIght i have followed the tutorial found at the below address:

      http://www.adobe.com/support/director/multiuser/chatinminutes/

      I have got it to function using the sample file, however when i go to make my own using my own graphics it comes up with errors.
      The error i get when i start my own, you can see the error here http://www.flakx.com/random/director%20error.PNG.

      Any help anyone can offer to sort this problem would be GREATLY recieved !

      thanks
      Andy Archer.
        • 1. Re: Chat Tutorial
          duckets Level 1
          The problem is that you're using the 'old style' syntax for creating a timeout object in a fresh movie created in Director MX 04. This worked in th sample file, because the sample file came from an older version of director, and therefore the old style syntax usage is 'remembered' in the file.

          It's a slightly confusing issue, but basically there were a number of improvements to the syntax of lingo in director 10. To preserve compatibility and to allow you to still use older files, director works like this:

          When opening an movie created in an older version of director, director assumes you will stick with the old style syntax unless you issue a special command which alters the syntax style.

          When creating a fresh movie, director assumes you will start using the newer syntax.

          The new syntax for creating timeout objects is this:

          variableName = timeout().new(timeoutName, timeoutPeriod, timeoutHandler, targetObject)

          read more here:

          http://www.mail-archive.com/lingo-l@mail4.fcgnetworks.net/msg13012.html

          hope this helps!

          - Ben




          • 2. Re: Chat Tutorial
            Flakx Level 1
            Thanks that was helpful :)

            this was the piece of code i added in order to make it work.

            timeout().new("cleanup",the maxinteger, #fakeHandler, me)

            I altered the existing script from the above tutorial for anyone else that has problems with it.

            Cheers
            Andy.