flash action scritping 2004
hi to all
please consider my problem asa soon possible
i have one main applciation and two nested form in it ,form1 and form2
and i have code liek this on main applciation form
Code:
this.btn2.label = "old text";
//createTextField("greet", 0, 0, 0, 100, 100);
//greet.text = "Hello, world";
var btnListener:Object = new Object();
this.btn2.addEventListener("click",btnListener);
btnListener.click = function(evt:Object) {
// trace("fsdfs");
//this.form1.gotoNextSlide()
this.btn2.label = "new text";
gotoNextSlide();
// Checks that the user enters at least one character in the TextInput
}
but it does not changing text to "new text" when i clik on button
Any help !!
Re: flash action scritping 2004
I don't think AS2 made use of event listeners; instead you can assign a function to the "onRelease" property of the button...
Code:
this.btn2.onRelease = function(){
//your code here
}
Re: flash action scritping 2004
can any one participate in forum ...
Thanks
Re: flash action scritping 2004
good if some one help me out on this...
Thanks