Groups | Blog | Home
all groups > flash actionscript > february 2004 >

flash actionscript : Problem with dynamic text inside button instance


gaGeet
2/11/2004 8:00:04 PM
Hi people

I want to have dynamic text inside the button because when my program
initiates, it loads the data (from XML file) to put inside the text of the
button
However, when I use dynamic text inside a button, and put my mouse over that
button, I am able to select the text, but not click the button

I have properly defined the hit area and everything as well, but the button
area is still not clickable
Does anybody have a solution that will help me achieve my goal

Thanks. =
Sorry if multiple postings show up, it always does this but I don't know why
chrism59
2/11/2004 9:55:29 PM
I was having the same problem and finally gave up! I worked it out by loading
the buttons as movie clips and then use the onRelease property for the movie
clip.

myClip_mc.text = "what ever"
myClip_ onRelease = function()
code I wanted executed


I used the onRollover to enlarge button and onRollout to return to normal
state. This gave the user a visual to which button the were on

I hope this help
gaGeet
2/11/2004 11:24:25 PM
Thanks for the suggestion. =

How do I load a button as a movieClip

instanceName.loadMovie(buttonName); ?
Not sure how to do this..

Also, can I still load in contents from the XML file into the text of the
button? Or should I say movie
AddThis Social Bookmark Button