2 Replies Latest reply on Jun 18, 2009 1:12 AM by Dean Utian

    Adding text on a vector graphic

    IbrahimFromAustralia

      Is there a way of adding text on top of a vector graphic instead of using a standard button in Director? My intention is to attach words to a button designed as a vector graphic. Something like adding the words "Click Here" to the button. Also is there a tutorial on the net to show how to design three interactive buttons that change when the cursor is entering or clicking on them or can this only be done through a behaviour? Thanks for your help.

        • 1. Re: Adding text on a vector graphic
          Sean_Wilson Adobe Community Professional

          Is there a way of adding text on top of a vector graphic instead of using a standard button in Director? My intention is to attach words to a button designed as a vector graphic. Something like adding the words "Click Here" to the button.

          You could place a text sprite in the next higher channel than the vectorShape sprite in the score. Or you could use imaging lingo to combine the vectorShape member's image and the text member's image into a bitmap member.

          Also is there a tutorial on the net to show how to design three interactive buttons that change when the cursor is entering or clicking on them or can this only be done through a behaviour?

          It is readily done in the Director environment using a behavior/script. If you want to use Flash to create (and import) buttons from there, such buttons can be created in Flash without using code and don't require any code in Director to display their various states.

          • 2. Re: Adding text on a vector graphic
            Dean Utian Adobe Community Professional


            Hi Ibrahim,

             

            The Library Palette has a  number of button type behaviors  - such as:

            In 'Interactive > Animation' category

            Rollover Cursor Change - as the name suggests, changes the cursor

            Rollover Member Change - switchescast members of a sorite, one when the mouse is over, the other whne it is off the sprite

             

            'Controls' category

            Multi-State Button

            Push Button

            The above give a few more states than available in the 'Rollover Member Change' behavior.

             

            Experiment with the behaviors in the library. There are some good ones in there. And they are teh easiest way to get this type of effect (as compared to writing the code yourself).

             

            Dean

             

            Director Lecturer / Consultant / Director Enthusiast
            http://www.deansdirectortutorials.com/
            http://www.multimediacreative.com.au