A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: What is wrong here-?!

  1. #1
    Bob (the singing sock)
    Join Date
    Aug 2000
    Location
    Århus, Denmark
    Posts
    472
    I want the variable "score" to increase by one when the condition is true.
    However "score" doesn't alway update and sometimes adds more than "1". "this.removeMovieClip();" only works randomly.
    The mc flip1 is triggered by keypress(left).

    if (_root.flip1._currentframe=2 and this._y<450)
    _root.score = _root.score+1;
    this.removeMovieClip();
    }

    How can it be?


  2. #2
    Junior Member
    Join Date
    Jul 2000
    Posts
    25
    hi,

    removeMovieClip works randomly.. i dont think so(i hope so

    you should check the condition-statement.. the rest would do exactly what you want.

  3. #3
    Senior Member
    Join Date
    Sep 2000
    Posts
    250
    try using this:

    _root.score = Number(_root.score) + 1;

    that might help. as for the removeMovieclip thing, i'm not sure

  4. #4
    Bob (the singing sock)
    Join Date
    Aug 2000
    Location
    Århus, Denmark
    Posts
    472
    I'd appriciate if you'd take a look at it (see for youself)

    can I send you the .fla?

    K

  5. #5
    Senior Member
    Join Date
    Sep 2000
    Posts
    250
    no prob. link is at the bottom of my posts

  6. #6
    Bob (the singing sock)
    Join Date
    Aug 2000
    Location
    Århus, Denmark
    Posts
    472
    Arghhh

    Anybody care to take a look at a .fla?

    K


    [Edited by podenphant on 10-10-2000 at 08:05 PM]

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