in flash how to give a link on static text with the mouse over=underline effect….
please reply….
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.
Adding hyperlinks to a static text is not straightforward as in the case of a normal text field because
StaticTextdoesn’t havehtmlTextproperty like aTextField– it inherits directly fromDisplayObject.DisplayObjectdoesn’t dispatch mouse events – only anInteractiveObejctwould dispatch mouse/keyboard events.graphicsproperty for aDisplayObject, hence you cannot mimic underlining behavior.May be you can work around these limitations by wrapping the static text inside a
Sprite– but I would use aTextFieldinstead of reinventing the wheel.