# Hm... help!

**URL:** https://forum.kirupa.com/t/hm-help/332
**Category:** Uncategorized
**Created:** [July 14, 2002, 7:49am UTC](https://forum.kirupa.com/t/hm-help/332 "2002-07-14T07:49:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nxp\_design](https://avatars.discourse-cdn.com/v4/letter/n/edb3f5/32.png) [@nxp\_design](https://forum.kirupa.com/u/nxp_design)
#### Post date: [July 14, 2002, 7:49am UTC](https://forum.kirupa.com/t/hm-help/332/1 "2002-07-14T07:49:18Z")

</div>

okay. i don’t think i was clear with what i wanted to ask. so one more time.

you know when you have those music animations. the graphics will come to a halt when you press stop. i’m kinda of trying to do the same thing. this is what i have.

on the first frame of a movieclip… this is the preload sequence i want. on the 2nd frame is the sequence i want to play when the music is loaded. so how do i make it so that when the music is done loading from an external .swf file it then goes to the next frame. there’s something with if and else… i think. not good at this programming stuff.

---

<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: [July 15, 2002, 1:19am UTC](https://forum.kirupa.com/t/hm-help/332/2 "2002-07-15T01:19:40Z")

</div>

I copied some ■■■■ and I don’t know if it works. I haven’t tested it yet. Put that in the first frame.

toLoadMovie = new loadMovie();  
toLoadMovie.load(“music.swf”);

toLoadMovie.onLoad = function(success) {  
if (success) {  
trace(“loaded”);  
gotoAndPlay(2);  
} else {  
trace(“not loaded”);  
gotoAndPlay(1);  
}  
};

\_root.brian :nerd:
