# Finish loading, then continue?

**URL:** <https://forum.kirupa.com/t/finish-loading-then-continue/265015>\
**Category:** Uncategorized\
**Created:** [July 2, 2008, 10:59pm UTC](https://forum.kirupa.com/t/finish-loading-then-continue/265015 "2008-07-02T22:59:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jibble](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jibble/32/2265_2.png) [@jibble](https://forum.kirupa.com/u/jibble)\
**Post date:** [July 2, 2008, 10:59pm UTC](https://forum.kirupa.com/t/finish-loading-then-continue/265015/1 "2008-07-02T22:59:42Z")

</div>

in a buttons code, how would i say finish loading, then play.

here is what i have

btn.onRelease = function(){  
loadMovie(movie.swf);  
//finish loading code goes here  
gotoAndPlay(“label”);  
}

---

<div class="post-metadata">

**Author:** ![creatify](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@creatify](https://forum.kirupa.com/u/creatify)\
**Post date:** [July 2, 2008, 11:14pm UTC](https://forum.kirupa.com/t/finish-loading-then-continue/265015/2 "2008-07-02T23:14:01Z")

</div>

search the forums for MovieClipLoader - you should find examples - it can be set up to notify when an item is finished loading

---

<div class="post-metadata">

**Author:** ![blindMelon](https://avatars.discourse-cdn.com/v4/letter/b/ec9cab/32.png) [@blindMelon](https://forum.kirupa.com/u/blindMelon)\
**Post date:** [July 2, 2008, 11:14pm UTC](https://forum.kirupa.com/t/finish-loading-then-continue/265015/3 "2008-07-02T23:14:55Z")

</div>

Why not put the “label” within the movie.swf and time the playing from there?

---

<div class="post-metadata">

**Author:** ![jibble](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jibble/32/2265_2.png) [@jibble](https://forum.kirupa.com/u/jibble)\
**Post date:** [July 2, 2008, 11:18pm UTC](https://forum.kirupa.com/t/finish-loading-then-continue/265015/4 "2008-07-02T23:18:59Z")

</div>

its an example…

what im getting at is an object(not necessarily a swf) is being loaded onRelease, but i need it to fully load before the button’s actions, however the object is being loaded with the same button.

---

<div class="post-metadata">

**Author:** ![creatify](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@creatify](https://forum.kirupa.com/u/creatify)\
**Post date:** [July 2, 2008, 11:29pm UTC](https://forum.kirupa.com/t/finish-loading-then-continue/265015/5 "2008-07-02T23:29:40Z")

</div>

MovieClipLoader works with swfs, jpgs, pngs etc… or are you loading a data? If loading data, you need to use LoadVars? does that help?

---

<div class="post-metadata">

**Author:** ![jibble](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jibble/32/2265_2.png) [@jibble](https://forum.kirupa.com/u/jibble)\
**Post date:** [July 2, 2008, 11:35pm UTC](https://forum.kirupa.com/t/finish-loading-then-continue/265015/6 "2008-07-02T23:35:59Z")

</div>

not really.

How can i say this? When the button is pressed, an object is loaded(img or swf) which has a preloader. I need to wait until that loader completes, then make a transition or whatever.

so…like the example above (in Lehman’s)

onRelease = function(){  
load something  
make sure it finishes loading  
if it finishes loading, do some action  
}

---

<div class="post-metadata">

**Author:** ![glosrfc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/glosrfc/32/8334_2.png) [@glosrfc](https://forum.kirupa.com/u/glosrfc)\
**Post date:** [July 3, 2008, 1:56am UTC](https://forum.kirupa.com/t/finish-loading-then-continue/265015/7 "2008-07-03T01:56:21Z")

</div>

onRelease = function(){  
load something - [COLOR=“Red”]use MovieClipLoader.loadClip()[/COLOR]  
make sure it finishes loading - [COLOR=“red”]use MovieClipLoader.onLoadInit[/COLOR]  
if it finishes loading, do some action  
}  
You can also use [COLOR=“red”]MovieClipLoader.onLoadProgress [/COLOR]as an alternative to a preloader.

A search in the Flash Help files for the text in red will actually provide examples of what you want to achieve.
