Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Banned
    Join Date
    Aug 2010
    Location
    everywhere
    Posts
    63
    Thanks
    2
    Thanked 3 Times in 3 Posts

    How to change text on frame number?

    I want to change the text of a dynamic text box based on the frame number. Something like this:
    Code:
    if (_currentframe > 222 && _currentframe < 2222) {
    	txtMessage.text = "Pump turned on";
    }else{
    	txtMessage.text = "";
    }
    But this doesn't work. All help is much appreciated!

  • #2
    Regular Coder
    Join Date
    Nov 2009
    Location
    Scotland / Glasgow
    Posts
    184
    Thanks
    1
    Thanked 19 Times in 19 Posts
    Try tracing the current frame as your code looks fine.
    .:To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Glasgow Flasher


  •  

    Posting Permissions

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