dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: actionscripting2

  1. #1
    Junior Member
    Join Date
    Nov 2004
    Posts
    11

    actionscripting2

    Frame1

    this.contactForm.submitBtn.btnLabel.autoSize = "center";
    this.contactForm.submitBtn.btnLabel.text = "submit";

    //onRollOver
    this.contactForm.submitBtn.onRollOver = function(){
    contactForm.submitBtn.gotoAndStop (2);
    }

    //onRollOut
    this.contactForm.submitBtn.onRollOut = function(){
    contactForm.submitBtn.gotoAndStop (1);
    }

    //OnRelease
    this.contactForm.submitBtn.onRelease = function () {
    if (contactForm.userName.text == "" || contactForm.userEmail.text == "" || contactForm.userComments.text == ""){
    gotoAndStop("error");
    } else{
    gotoAndStop("correct");
    }
    }


    Frame 10 (labeled error, where the error message displays)

    this.contactForm.backBtn.btnLabel.autoSize = "center";
    this.contactForm.backBtn.btnLabel.text = "< back";

    //onRollOver
    this.contactForm.backBtn.onRollOver = function(){
    contactForm.backBtn.gotoAndStop (2);
    }

    //onRollOut
    this.contactForm.backBtn.onRollOut = function(){
    contactForm.backBtn.gotoAndStop (1);
    }

    //OnRelease
    this.contactForm.backBtn.onRelease = function () {
    gotoAndStop(1);
    }


    Any help would be appreciated

  2. #2
    Senior Member
    Join Date
    Jun 2003
    Location
    Florida
    Posts
    289
    you need to be a little more specific than just posting code. you can't expect someone to read thru that, guess what you want and then solve your problem

    what are you trying to do? what does your final outcome need to be?
    If it was easy, everyone would do it.

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

HTML5 Development Center