8 Replies Latest reply on Feb 24, 2007 5:23 AM by Newsgroup_User

    sprite properties

    Level 7
      Is there a way to see all of the properties of a sprite in tree form in the
      property inspector (especially the ones I create)? If I add a property list
      to the inspector I can click on the + sign to expand the list and see each
      name/data pair. Since I believe sprite properties are also kept in a
      property list I would think I could see them as well.

      It's a real pain to have to type in the various properties I want to watch
      each time I open Director.

      One more tedious solution is to create a list of all properties in the
      beginSprite handler and add that to the property inspector but I was hoping
      there was an easier solution.

      --
      Craig Wollman
      Lingo Specialist
      Word of Mouth Productions
      212-928-9581

      www.wordofmouthpros.com


        • 1. Re: sprite properties
          Level 7
          I meant to write object inspector where I wrote property inspector.

          --
          Craig Wollman
          Lingo Specialist
          Word of Mouth Productions
          212-928-9581

          www.wordofmouthpros.com
          "forum.macromedia.com" <lingoboy@wordofmo.com> wrote in message
          news:erk7ns$cvm$1@forums.macromedia.com...
          > Is there a way to see all of the properties of a sprite in tree form in
          > the property inspector (especially the ones I create)? If I add a
          > property list to the inspector I can click on the + sign to expand the
          > list and see each name/data pair. Since I believe sprite properties are
          > also kept in a property list I would think I could see them as well.
          >
          > It's a real pain to have to type in the various properties I want to watch
          > each time I open Director.
          >
          > One more tedious solution is to create a list of all properties in the
          > beginSprite handler and add that to the property inspector but I was
          > hoping there was an easier solution.
          >
          > --
          > Craig Wollman
          > Lingo Specialist
          > Word of Mouth Productions
          > 212-928-9581
          >
          > www.wordofmouthpros.com
          >


          • 2. Re: sprite properties
            Level 7

            Hi Craig,

            sprite(1) (or any other number) would give all it's properties of which
            the scriptinstanceList is one. It's entries store all the properties of
            the scripts attached.
            You can then drill down with:
            sprite(1).scriptInstanceList[1]

            Manno

            forum.macromedia.com wrote:
            > Is there a way to see all of the properties of a sprite in tree form in the
            > property inspector (especially the ones I create)? If I add a property list
            > to the inspector I can click on the + sign to expand the list and see each
            > name/data pair. Since I believe sprite properties are also kept in a
            > property list I would think I could see them as well.
            >
            > It's a real pain to have to type in the various properties I want to watch
            > each time I open Director.
            >
            > One more tedious solution is to create a list of all properties in the
            > beginSprite handler and add that to the property inspector but I was hoping
            > there was an easier solution.
            >

            --
            ----------
            Manno Bult
            http://www.aloft.nl
            manno@xs4all.nl
            • 3. Re: sprite properties
              Level 7
              Awesome Manno, that's exactly what I was looking for.

              Craig


              --
              Craig Wollman
              Lingo Specialist
              Word of Mouth Productions
              212-928-9581

              www.wordofmouthpros.com
              "Manno Bult" <removethis.manno@xs4all.nl> wrote in message
              news:erkfn1$ls3$1@forums.macromedia.com...
              >
              > Hi Craig,
              >
              > sprite(1) (or any other number) would give all it's properties of which
              > the scriptinstanceList is one. It's entries store all the properties of
              > the scripts attached.
              > You can then drill down with:
              > sprite(1).scriptInstanceList[1]
              >
              > Manno
              >
              > forum.macromedia.com wrote:
              >> Is there a way to see all of the properties of a sprite in tree form in
              >> the property inspector (especially the ones I create)? If I add a
              >> property list to the inspector I can click on the + sign to expand the
              >> list and see each name/data pair. Since I believe sprite properties are
              >> also kept in a property list I would think I could see them as well.
              >>
              >> It's a real pain to have to type in the various properties I want to
              >> watch each time I open Director.
              >>
              >> One more tedious solution is to create a list of all properties in the
              >> beginSprite handler and add that to the property inspector but I was
              >> hoping there was an easier solution.
              >>
              >
              > --
              > ----------
              > Manno Bult
              > http://www.aloft.nl
              > manno@xs4all.nl


              • 4. Re: sprite properties
                the real POTMO Level 1
                b.t.w sprite(0).scriptInstanceList[1] is the framescript
                good to know
                • 5. Re: sprite properties
                  Level 7
                  I have found that using 0 as a reference to the frameScript doesn't work in
                  all instances but for the object inspector its good to know.


                  --
                  Craig Wollman
                  Lingo Specialist
                  Word of Mouth Productions
                  212-928-9581

                  www.wordofmouthpros.com
                  "the real POTMO" <webforumsuser@macromedia.com> wrote in message
                  news:erkm3f$bl$1@forums.macromedia.com...
                  > b.t.w sprite(0).scriptInstanceList[1] is the framescript
                  > good to know


                  • 6. Re: sprite properties
                    Level 7
                    forum.macromedia.com wrote:
                    > I have found that using 0 as a reference to the frameScript doesn't
                    > work in all instances but for the object inspector its good to know.

                    Try -5 for the frame script. IIRC, it used to work in D7...

                    Andrew


                    • 7. Re: sprite properties
                      Level 7
                      "Andrew Morton" <akm@in-press.co.uk.invalid> posted in
                      macromedia.director.lingo:

                      > forum.macromedia.com wrote:
                      >> I have found that using 0 as a reference to the frameScript doesn't
                      >> work in all instances but for the object inspector its good to know.
                      >
                      > Try -5 for the frame script. IIRC, it used to work in D7...

                      IIRC, you couldn't execute a handler or access a property directly with
                      sprite(-5).methodOrProperty

                      but you could use
                      sendSprite(<any negative number>, #mGetProperty)

                      where the frame script has a handler named mGetProperty.

                      mGetProperty could return all properties by iterating through me[n] with n =
                      1 to me.paramCount or something close to that.

                      Been a while.


                      --
                      Mark A. Boyd
                      Keep-On-Learnin' :)
                      • 8. Re: sprite properties
                        Level 7
                        In any event was a very weak implementation on MM part. It's never been
                        clear and it's never been easy when that access is needed.


                        --
                        Craig Wollman
                        Lingo Specialist
                        Word of Mouth Productions
                        212-928-9581

                        www.wordofmouthpros.com
                        "Mark A. Boyd" <mblist@sanDotrr.com.invalid> wrote in message
                        news:Xns98E05F6217FC7mblistssanDotrrcom@216.104.212.96...
                        > "Andrew Morton" <akm@in-press.co.uk.invalid> posted in
                        > macromedia.director.lingo:
                        >
                        >> forum.macromedia.com wrote:
                        >>> I have found that using 0 as a reference to the frameScript doesn't
                        >>> work in all instances but for the object inspector its good to know.
                        >>
                        >> Try -5 for the frame script. IIRC, it used to work in D7...
                        >
                        > IIRC, you couldn't execute a handler or access a property directly with
                        > sprite(-5).methodOrProperty
                        >
                        > but you could use
                        > sendSprite(<any negative number>, #mGetProperty)
                        >
                        > where the frame script has a handler named mGetProperty.
                        >
                        > mGetProperty could return all properties by iterating through me[n] with n
                        > =
                        > 1 to me.paramCount or something close to that.
                        >
                        > Been a while.
                        >
                        >
                        > --
                        > Mark A. Boyd
                        > Keep-On-Learnin' :)