# Problem: Movieclip & gotoAndPlay

**URL:** <https://forum.kirupa.com/t/problem-movieclip-gotoandplay/118180>\
**Category:** Uncategorized\
**Created:** [August 3, 2004, 1:11pm UTC](https://forum.kirupa.com/t/problem-movieclip-gotoandplay/118180 "2004-08-03T13:11:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pete\_zahut](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@pete\_zahut](https://forum.kirupa.com/u/pete_zahut)\
**Post date:** [August 3, 2004, 1:11pm UTC](https://forum.kirupa.com/t/problem-movieclip-gotoandplay/118180/1 "2004-08-03T13:11:20Z")

</div>

Hi,

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

I preload my site whit this code:

```auto
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?

---

<div class="post-metadata">

**Author:** ![pete\_zahut](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@pete\_zahut](https://forum.kirupa.com/u/pete_zahut)\
**Post date:** [August 4, 2004, 11:20am UTC](https://forum.kirupa.com/t/problem-movieclip-gotoandplay/118180/2 "2004-08-04T11:20:35Z")

</div>

No body, an idea?

---

<div class="post-metadata">

**Author:** ![dal\_platinum](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@dal\_platinum](https://forum.kirupa.com/u/dal_platinum)\
**Post date:** [August 4, 2004, 12:05pm UTC](https://forum.kirupa.com/t/problem-movieclip-gotoandplay/118180/3 "2004-08-04T12:05:58Z")

</div>

try this thread - [http://www.kirupaforum.com/forums/showthread.php?t=65327](http://www.kirupaforum.com/forums/showthread.php?t=65327) - he seems to be having a similar problem.

---

<div class="post-metadata">

**Author:** ![pete\_zahut](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@pete\_zahut](https://forum.kirupa.com/u/pete_zahut)\
**Post date:** [August 4, 2004, 3:06pm UTC](https://forum.kirupa.com/t/problem-movieclip-gotoandplay/118180/4 "2004-08-04T15:06:54Z")

</div>

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
