Basic ActionScripting (I would Imagine)

I’m trying to make a button that plays a MC and has a value associated with it, so that when the MC instance plays it has a title that was determined by the button that was clicked.

The MC Instance name is “LinkBar”.
In the MC LinkBar there is a Dynamic text Field which I’ve given the variable name “LinkName”.

So on rollOver of the button I set the variable “LinkName” and give it a value, Right?

Right now I have this actionscript on the button:

on (rollOver) {
LinkName = “The Setup”;
_root.LinkBar.gotoAndPlay(“Down”);
}
on (rollOut) {
_root.LinkBar.gotoAndPlay(“Up”);
}

What am I missing?

Any help would be tremendously appreciated,

jOEL

Try this…


on (rollOver) {
_root.LinkBar.LinkName = "The Setup";
_root.LinkBar.gotoAndPlay("Down");
}
on (rollOut) {
_root.LinkBar.LinkName = ""
_root.LinkBar.gotoAndPlay("Up");
}


The Link Name code in the rollOut will clear the Text Field. Otherwise it will say “The Setup” until you roll over another button.

That worked sweet!

I was close, just needed the “_root.”

Thanx a bunch,

jOEL

No Problem. Glad I could help:)