Someone help me?

I need very simple question about actionscript.
My problem is getbytesloaded.
and here is my idea and script:
createEmptyMovieClip(“twinkle1”,4);
twinkle1.loadMovie(“mdl3_vid2.swf”);
twinkle1._x = 5;
twinkle1._y = 100;
l = twinkle1.getBytesLoaded();
t = twinkle1.getBytesTotal();

and my problem is i don’t know how can i code that works:

until twinkle1 is loaded loading text is shows.

HELP ME !!!
PLEASE.

The preloader should be inside the loaded movie. Find a great tutorial here. When you’ve done that, you could simply put a loading text in the first two frames, so it will display it when loading, but it will be gone when loaded.

thanx, voetsjoeba
I have that tutor and that’s works online.
but doesn’t work offline items.
I did that script in 50MB file but it doesn’t work.

When you say offline, I’m assuming you mean stuff on your comp.

To test your preloader on your comp, you would press Ctrl Enter and then Enter again in flash to use the bandwidth simulater.

Thanx E G,
My problem is:
I made cd with FLASH. and that cd contains some video objects. but that file stops everything in the project. and works properly. and my preloader doesn’t work.

hmm…if you’re creating a CD, then why do you need a preloader? I’ve created CD presentations with video embeded in it and I never used a preloader.

sometimes the effect is all that matters;)