4 Replies Latest reply on Feb 18, 2010 5:16 AM by K_Necelis

    Script error

    K_Necelis

      I am getting an error after doing some graphic updates to a Director 7.0 file. It is an interactive application that contains video -this error is within A Video Time Slider script.

       

      I am unsure why I am getting this error all of a sudden as I haven't modified this script at all - the text contained in the error message is the same exact text that appears in the old file version.

       

      Below is the error message I'm getting:

       

      Script error: Expected end of statement

       

      set memdefault = member (the membernum of member memref +1) of castlibnum?

       

       

      Any light anyone can shed on this would be greatly appreciated!!

       

      Thank you

        • 1. Re: Script error
          Sean_Wilson Adobe Community Professional

          Can you copy and paste a few lines before and after, and use the formatting tools under the >> menu (beside the smiley) to choose Syntax Highlighting -> Plain

          • 2. Re: Script error
            K_Necelis Level 1

            on getPropertyDescriptionList

              if the currentspritenum = 0 then

                set memdefault = 0

              else

                set memref = the member of sprite the currentspritenum

                set castlibnum = the castlibnum of memref

                set memdefault = member (the membernum of member memref + 1) of castlibnum

              end if

             

              set description = [:]

             

              addprop description, #VideoSprite, [#default: 1, #format:#integer,¬

            #comment: "Video Sprite:"]

            • 3. Re: Script error
              Sean_Wilson Adobe Community Professional

              I don't know exactly what the problem is, but I notice a deprecated line continuation character (¬), generally "ancient" verbose Lingo, and the use of reserved keywords for variable names.

               

              Try:

              on getPropertyDescriptionList
                if (the currentspritenum = 0) then 
                  memdefault = 0
                else
                  memref = sprite(the currentspritenum).member
                  libnum = the castlibnum of memref
                  memdefault = member(memref.memberNum + 1, libnum)
                end if
              
                description = [:]
                addprop description, #VideoSprite, [#default: 1, #format:#integer, #comment: "Video Sprite:"]
                -- ...
              
              
              • 4. Re: Script error
                K_Necelis Level 1

                THAT WORKED!! Thanks a million Sean!!