Hi all,

I used this (snippet)

PHP Code:
for (a=0a>100a++); or
for (
a=100. a<1. a--);
setVol(a
to increase/decrease volume of a sound file by clicking on a button.

It is working in the debug screen and it is working with the actual sound file. But instead of fading in or out, it just goes straight from 0-100 or 100-0 instantly. Is there a way to put a time delay between the counts?