# Play remaing MC if loaded

**URL:** <https://forum.kirupa.com/t/play-remaing-mc-if-loaded/38792>\
**Category:** Uncategorized\
**Created:** [December 29, 2003, 10:57pm UTC](https://forum.kirupa.com/t/play-remaing-mc-if-loaded/38792 "2003-12-29T22:57:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandman9](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Sandman9](https://forum.kirupa.com/u/Sandman9)\
**Post date:** [December 29, 2003, 10:57pm UTC](https://forum.kirupa.com/t/play-remaing-mc-if-loaded/38792/1 "2003-12-29T22:57:49Z")

</div>

I have a MC with two motion tweens inside of it (one right after another) and I have a stop action at the end of the first motion tween. So how can I say if movie loaded and first motion tween is complete then go and play the next motion tween?

hope this makes sense :beam:

Sandman9

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 29, 2003, 11:11pm UTC](https://forum.kirupa.com/t/play-remaing-mc-if-loaded/38792/2 "2003-12-29T23:11:16Z")

</div>

That sounds like you need to add this code at the stop

gotoAndPlay(framenumber);

like

gotoAndPlay(26);

Regards Barrie

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 30, 2003, 6:27pm UTC](https://forum.kirupa.com/t/play-remaing-mc-if-loaded/38792/3 "2003-12-30T18:27:11Z")

</div>

did you read my first post?

right now it’s playing the second motion tween when my movies fully loaded … but the movie is fully loaded before the first tween is ever over so how can I get it to check to make sure the first tween is finished AND the movie is fully loaded

Thanks  
Sandman9

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 30, 2003, 7:01pm UTC](https://forum.kirupa.com/t/play-remaing-mc-if-loaded/38792/4 "2003-12-30T19:01:13Z")

</div>

Can’t you use code similar to a preloader? Like the getBytesLoaded stuff. Then you can say  
[AS]  
if (bytesLoaded == 100% or whatever) {  
gotoAndPlay(26);  
}  
[/AS]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 30, 2003, 7:10pm UTC](https://forum.kirupa.com/t/play-remaing-mc-if-loaded/38792/5 "2003-12-30T19:10:14Z")

</div>

I just try’d putting “myFlag = 1;” after the first tween … then on the maintimeline i put

```auto

if (_root.getBytesLoaded() >= _root.getBytesTotal() && myFlag == 1) {
        _root.bgn_text.gotoAndPlay("btn_ent");
}

```

this does not work though ☹

Sandman9

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 30, 2003, 7:39pm UTC](https://forum.kirupa.com/t/play-remaing-mc-if-loaded/38792/6 "2003-12-30T19:39:51Z")

</div>

i got it!!! … just turned out to be a scope problem
