A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: a couple of questions.

  1. #1
    Junior Member
    Join Date
    Sep 2000
    Posts
    9
    on http://www.levitate.org/web3.swf i want to display a variable in a text field when someone goes over the buttons (i know how to do it normally, but i want to do it all from one frame). like, they go over welcome and the text from variable x is displayed in one constant text box; when they go over service, variable y is displayed. is there a way to do this without having it go to a new frame with a text field that loads a specific variable? thanks.

    justin

  2. #2
    Yes this is really easy.

    1) Just make a text field called "ButtonText"
    2) Now use this code:
    Code:
    on (rollOver) {
            // This will display in the text field
    	ButtonText = "Service";
    }
    on (rollOut) {
            // This will clear the text field
    	ButtonText = "";
    }

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