# ifFrameLoaded

**URL:** <https://forum.kirupa.com/t/ifframeloaded/160153>\
**Category:** flash\
**Created:** [August 23, 2005, 8:37pm UTC](https://forum.kirupa.com/t/ifframeloaded/160153 "2005-08-23T20:37:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![1234567](https://avatars.discourse-cdn.com/v4/letter/1/9de053/32.png) [@1234567](https://forum.kirupa.com/u/1234567)\
**Post date:** [August 23, 2005, 8:37pm UTC](https://forum.kirupa.com/t/ifframeloaded/160153/1 "2005-08-23T20:37:15Z")

</div>

I have a button that tells a movie clip, currently loaded on level2, to play a frame named “next”. After “next” is played and the movie clip reached frame “end” I want another movie to load onto the exact same level.

What I have now works only half way, it loads a new movie, yet doesn’t allow the previous one to play the needed frame. Only when I get rid of ifFrameLoaded etc. it plays “next” etc.

on (release) {  
tellTarget ("\_level2")  
gotoAndPlay (“next”);  
ifFrameLoaded ("\_level2", “end”)  
loadMovieNum (“services.swf”, 2);  
}

Thank you, guys!
