If frames loaded

Does anyone know howcome this code is working in “control > test movie” and in the “preview in browser” but it is not working anymore when it is published it to the web ?

The code:
if (_framesloaded>=_totalframes) {
gotoAndPlay(“leclick”,1);
} else {
gotoAndPlay(“loading”,1);
}

See tutorial:
http://www.webthang.co.uk/tutorials/gor_fmx1/mxpl3.htm

Thanks

use this preloader …just put it in your 1st scene…it will show you what your doing wrong with your also…