dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Edit Box help

  1. #1
    Game Master ConnELITE's Avatar
    Join Date
    Apr 2005
    Location
    United States, DC
    Posts
    473

    Edit Box help

    I had an edit box that goes up 10 every second (I made a scene saying "edit box=edit box +10" [delay 1 sec]). But I want the scene to stop once the edit box reaches 100. I tried an action saying "if (edit box>99){stop movie}". I know i have the right idea but im writing it wrong. please help.
    BC

  2. #2
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Quote Originally Posted by ConnELITE
    I had an edit box that goes up 10 every second (I made a scene saying "edit box=edit box +10" [delay 1 sec]). But I want the scene to stop once the edit box reaches 100. I tried an action saying "if (edit box>99){stop movie}". I know i have the right idea but im writing it wrong. please help.
    why not just wrap the first code in an If statement

    if (editboxvar<100){
    editboxvar+=10
    }

    Also best to use a variable for the editbox when doing math with it.

  3. #3
    Game Master ConnELITE's Avatar
    Join Date
    Apr 2005
    Location
    United States, DC
    Posts
    473
    uhrrrgg!!! Sorry, I was thinking so hard to figure out what to do and you tell me and I find out the answer was sooo easy!! oh well, I guess some things you just need to be told. Thanks.
    BC

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