onClipEvent (enterFrame) problem

Hello,
I’ve used script like this (action for movieClip in frame 1):

[AS]
onClipEvent (enterFrame) {
var bytes = _root.getBytesTotal();
trace(bytes);
var bytes_loaded = _root.getBytesLoaded();
if (bytes_loaded == bytes) {
this.infotxt = “movie loaded”;
_root.gotoAndPlay(3);
}
else
{
this.infotxt = “loading (” + bytes_loaded + “/” + bytes +")";
_root.gotoAndStop(1);
}

}
[/AS]

When I ‘Test Movie’ it’s staying on frame 1 (WHY?!) and nothing’s happening. Next, in ‘Test Movie’ still, I enable ‘show streaming’, everything is all right - trace is working, the preloader is working and the loaded movie is showing like i want to. But when i disable ‘show streaming’ it’s bad again like for the first time. Why ‘onClipEvent (enterFrame)’ is not triggered then? ( i think so, beacuse ‘trace(bytes)’ don’t show up.

Action for frame 2 :
gotoAndPlay(1);

and two another, not so important, questions - if anyone is using debugger? how can I stop on breakpoint?

thanks for any help

I think you have answered your own question. Do you have a stop action on frame 1 of the root timeline? If you do, remove it and let the movieclip control the movie.

You also have a syntax error in your sample script…

this.infotxt = “loading (” + bytes_loaded + “/” + bytes +")";

should be

this.infotext = “loading” + (…

no, frame 1 actions of the root timeline is empty.

there’s “stop();” on frame 3 of the root timeline.

infotxt is the name of the Var I used in dynamic text I used to make this movieClip.

I don’t know what is happening :|, Sometimes when I start “test movie” the preloader doesn’t work even when I enable “show streaming” !!! sometimes it works (I don’t change anything in the code, just launch “test movie” again) !!!

what is going on?
is this possible that my windows is congested too much and there’s insufficent memory or something?

I can send this .fla file.