Results 1 to 4 of 4

Thread: flash action scritping 2004

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2007
    Posts
    270

    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 !!

  2. #2
    Frenzied Member
    Join Date
    Apr 2009
    Location
    CA, USA
    Posts
    1,516

    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
    }

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2007
    Posts
    270

    Re: flash action scritping 2004

    can any one participate in forum ...

    Thanks

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2007
    Posts
    270

    Re: flash action scritping 2004

    good if some one help me out on this...

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width