The only thing i want is a play once, one object (Background 15) from 4 buttons, and if I turn off this object (button x), then i can play this again from one of 4 buttons, but only one time.
If you klick on the button, then you play movie Bacground 15. This is ok, but I do not want play this movie again, when i klick in the buttons secund time.
This is solution of my problem:
Code:
var test:Boolean = true;
button_1.onRelease = function() {
test ? foo(this._name) : null;
};
button_2.onRelease = function() {
test ? foo(this._name) : null;
};
button_3.onRelease = function() {
test ? foo(this._name) : null;
};
button_4.onRelease = function() {
test ? foo(this._name) : null;
};
function foo(n:String):Void {
trace(n);
test = false;
}
But I don't know how I can use this script on 3DFA