hi my frends
i changed moivie cilp to button. but unable to assign a text to it.
can any one help me, please…
here is my code.
i am very new to actionscripting.so please guide me.
this.createEmptyMovieClip(“but01”, 10);
but01.beginFill(0x00CC33, 100);
but01.moveTo(2, 4);
but01.lineTo(116, 4);
but01.lineTo(116, 17);
but01.lineTo(2, 17);
but01.lineTo(2, 4);
//turning into a button.
but01.hitArea = but01;
but01.onPress = function() {
trace("on press! "+this._name);
};
but01.onRelease = function() {
trace("on release! "+this._name);
};
but01.onRollOver = function() {
trace("on rollover! "+this._name);
};
but01.onRollOut = function() {
trace("on rollout! "+this._name);
};
thankx in advance
cheri