7 Replies Latest reply on Jul 26, 2006 3:17 PM by Newsgroup_User

    How to set cursor type for TextField uses

    shrinktight
      Hello, hope someone can help. I'm importing HTML into a TextField called "webText_htm". I'm also calling CSS and it is working to style the text. Player 8 and ActionScript 2

      When I mouseover the TextField, the cursor changes to the I-bar.
      Second problem is that <a href=""> is not signalling the Hand Cursor, and does not do anything when I click on it.

      Thanks in advance
      Greg



        • 1. Re: How to set cursor type for TextField uses
          shrinktight Level 1
          Here is some additional info
          by I-bar, I meant to say, I-beam, like the text cursor.

          Preview Link


          //create a text field
          this.createTextField("webText_htm", 1,156,148,362,334);

          // set some of the properties
          webText_htm.html = true;
          webText_htm.wordWrap = true;
          webText_htm.border = false;
          webText_htm.background = false;


          Are there other properties I could assign that might help define this field?

          Thanks!
          • 2. Re: How to set cursor type for TextField uses
            Level 7
            shrinktight,

            > Here is some additional info
            > by I-bar, I meant to say, I-beam, like the text cursor.

            Aha. If you want that, all you have to do is make the text field
            selectable. Dynamic and input text fields have this property
            (TextField.selectable), which you can set via ActionScript or the Property
            inspector.

            > // set some of the properties
            > webText_htm.html = true;
            > webText_htm.wordWrap = true;
            > webText_htm.border = false;
            > webText_htm.background = false;
            >

            > Are there other properties I could assign that might
            > help define this field?

            All available properties (as well as methods and events) are listed in
            an object's class entry. Text field functionality is defined by the
            TextField class, movie clip functionality by the MovieClip class, sounds by
            the Sound class, and so on.


            David
            stiller (at) quip (dot) net
            Dev essays: http://www.quip.net/blog/
            "Luck is the residue of good design."


            • 3. Re: How to set cursor type for TextField uses
              shrinktight Level 1
              Eureka! The source of the problem was that if calling createTextField, I didnot need to also have another instance of the TextField on it's own layer.

              Maybe this will help someone else.

              Shrinktight
              • 4. Re: How to set cursor type for TextField uses
                shrinktight Level 1
                Hello, so this is sort of a dumb question; I've become acquainted with the help docs. Is that the best place to look up properties for a class? Is thre a reference somewhere that I can study which explans each property? Where can I find that stuff?
                • 5. Re: How to set cursor type for TextField uses
                  Level 7
                  shrinktight,

                  > Hello, so this is sort of a dumb question; I've become
                  > acquainted with the help docs. Is that the best place
                  > to look up properties for a class?

                  I think so, mainly because it's so easily within reach. I tend to fire
                  up the ActionScript 2.0 and/or Component Language Reference and start there.
                  If I can't find what I need, I hit the LiveDocs version
                  ( http://livedocs.macromedia.com/), which has developer notes. If I'm still
                  stuck, I head to the forums.

                  > Is thre a reference somewhere that I can study which
                  > explans each property? Where can I find that stuff?

                  For 99% percent of it (informal estimate, of course), just hit the F1
                  key and search. Every object in ActionScript is defined by its namesake
                  class. Again, properties describe the object's characteristics, methods
                  describe things the object can do, and events describe things the object can
                  react to.

                  This may help get you started.

                  http://www.communitymx.com/abstract.cfm?cid=01B54


                  David
                  stiller (at) quip (dot) net
                  Dev essays: http://www.quip.net/blog/
                  "Luck is the residue of good design."


                  • 6. Re: How to set cursor type for TextField uses
                    shrinktight Level 1
                    David,
                    Thanks, this was the boost I needed. I'm feeling good about coming up to speed; but there is so much to learn! I've also enjoyed reading some of your blog!
                    Thanks


                    quote:

                    Originally posted by: Newsgroup User
                    shrinktight,

                    [stuff deleted]
                    For 99% percent of it (informal estimate, of course), just hit the F1
                    key and search. Every object in ActionScript is defined by its namesake
                    class. Again, properties describe the object's characteristics, methods
                    describe things the object can do, and events describe things the object can
                    react to.

                    This may help get you started.

                    http://www.communitymx.com/abstract.cfm?cid=01B54


                    • 7. Re: How to set cursor type for TextField uses
                      Level 7
                      shrinktight,

                      > Thanks, this was the boost I needed. I'm feeling good
                      > about coming up to speed; but there is so much to learn!

                      There is, but it sounds like you have the right attitude and gumption.
                      :) Chin up.

                      > I've also enjoyed reading some of your blog!

                      Thanks!


                      David
                      stiller (at) quip (dot) net
                      Dev essays: http://www.quip.net/blog/
                      "Luck is the residue of good design."