Jonathan wrote:
>
> I am trying to make the timex go from 1 to 50 when it hits 50 it will go
> from 50 to 1 and repeat this sequence. Its getting stuck always can somebody
> help?
[untested code]
property timex
property pIncrement -- determines the direction of the counting
on new me
timex = 1
pIncrement = 1
return me
end
on exitFrame
starttimex()
end
on starttimex
timex = timex + pIncrement
if timex = 50 then pIncrement = -1
if timex = 1 then pIncrement = 1
<do stuff>
end
--
Carl West [EMAIL PROTECTED]
617.262.8830 x246
I have no superfluous leisure; my stay must be
stolen out of other affairs; but I will attend you awhile.
- Isabella, Measure for Measure, Act 3 Scene 1
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]