Skip to main content
Participant
March 25, 2007
Question

Help with if then statement

  • March 25, 2007
  • 4 replies
  • 259 views
Okay, so I'm putting this into the frames action, and I have a movie clip named "mc" on the stage"

code:

asdf = setInterval(chek, 10);

function chek(){
if (_root.mc._x<_root._xmouse) then (_root.mc._x+20)
}


I say check for errors and none come up, but when I test movie, I move my mouse further than "mc" and the movie clip doesn't move, why?
_________________
This topic has been closed for replies.

4 replies

kglad
Community Expert
Community Expert
March 25, 2007
you're welcome.
Participant
March 25, 2007
it works now, thanks
Participant
March 25, 2007
nothing happened when I changed it. It still doesn't move
kglad
Community Expert
Community Expert
March 25, 2007
there were more errors:

kglad
Community Expert
Community Expert
March 25, 2007
because that's not valid actionscript syntax. try: