PDA

View Full Version : Problem: Movieclip & gotoAndPlay



pete_zahut
August 3rd, 2004, 09:11 AM
Hi,

I'm making a flash site but I'm having a little problem:

I preload my site whit this code:


bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
this.loadBar._width = getPercent * 200;
this.loadText = Math.round(getPercent * 100) + "%";
if(bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}

This code works perfectly when I test it, but if it goes to frame 3, the MC's on that frame won't start playing... ?
If I just remove the frames with the preload bar (so frame 3 becomes frame 1), all works perfectly...
...I'm confused...

Can anyone help me?

pete_zahut
August 4th, 2004, 07:20 AM
No body, an idea?

dal platinum
August 4th, 2004, 08:05 AM
try this thread - http://www.kirupaforum.com/forums/showthread.php?t=65327 - he seems to be having a similar problem.

pete_zahut
August 4th, 2004, 11:06 AM
OK, it works now, but i have another problem see:

LINK (http://www.kirupaforum.com/forums/showthread.php?p=593839#post593839)

So mods please close this thread ...

ty