If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hi Swak, that only returns 1, 100, 1, 100, 1 ...and so on.
Not the numbers between.
I might be not clear indeed.
I need a variable that returns "1,2,3,4,5,6,7,8,9...37..68...99,100 AND GO DOWN 99,98,97,96....6,5,4,3,2,1 AND GO UP AGAIN
Thanks anyways

This is the basic idea. I just used an enterFrame function to continuously call the count() function.

Alloy Bacon
The ? is not a function really. It's more like they took an if statement and turned it into an operator like the +-*/ symbols. Bascially you have 3 parts for it to work.
s1?s2:s3
s1 needs to be a bool. If s1 is true then it returns s2. Otherwise it returns s3.
Here's an example: i=false?1:2;
with that i will be equal to 2. If it's true then i will equal 1.
I like it, it makes for a simple operator when you understand it. In fact you can use it for a if else shorthand.
Here's an example: false?trace("1"):trace("2");
That will always trace 2.