Didn't realize I had to embed it in a movieclip. Now it all
seems to make sense, except it's not working...!
OK. So, here's what I've got so far:
I have a button called
btn_blue in my library with the four states,
up/over/down/hit.
Within
btn_blue, I have two layers:
textLayer and
bgLayer.
Within
textLayer, I have a textField called
optionText (set to dynamic text, obviously.)
In my movieClip, I have an instance of
btn_blue called
thisButton.
The code at the top of the movieClip (Layer 1, Frame 1), I
have:
onLoad = function() {
thisButton.optionText.text = this._name;
}
But no workie. I must have my references wrong somehow, but
I'm feeling a bit lost.
Halp?