When I tried using a textfield as a button, it seems it is not having the buttonMode property.
How can I programatically create a text button using ActionScript in a Flash project.
It should be a simple text, which is clickable.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can add the
TextFieldto aSpriteand use it as the button. buttonMode is the property ofSpriteclass.If you really want to use just a
TextField, you can assign an anchor tag<a href="event:something">label</a>to itshtmlTextor listen tomouseOverandmouseOutevents and show a custom hand cursor after hiding the default mouse pointer usingMouse.hide()