# Weird loadClip behaviour

**URL:** <https://forum.kirupa.com/t/weird-loadclip-behaviour/183489>\
**Category:** Uncategorized\
**Created:** [March 27, 2006, 3:00pm UTC](https://forum.kirupa.com/t/weird-loadclip-behaviour/183489 "2006-03-27T15:00:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xoc](https://avatars.discourse-cdn.com/v4/letter/x/8e7dd6/32.png) [@Xoc](https://forum.kirupa.com/u/Xoc)\
**Post date:** [March 27, 2006, 3:00pm UTC](https://forum.kirupa.com/t/weird-loadclip-behaviour/183489/1 "2006-03-27T15:00:23Z")

</div>

I’ve got a nicely functioning swf that I’m trying to make a preloader for. I’ve opted for the path of having a small preloader swf load the main one. Even though the main.swf works beautifully as a stand alone, there are all kinds of problems with it if I import it into \_root.mcHolder with loadClip.

1. One of the two music tracks doesn’t play anymore.[INDENT]The one in the timeline works, but the one loaded with actionscript doesn’t:  
[INDENT][FONT=Courier New]sound = new Sound();[/FONT]  
[FONT=Courier New] sound.attachSound(‘soundclip.mp3’);[/FONT]  
[FONT=Courier New] sound.play();[/FONT][/INDENT][/INDENT]2. The v2 scrollpane component falls apart in weird and not so wonderful ways.[INDENT]There are multiple instances of the scrollpane, and it has been skinned. When imported, the scrollpane has a green border when clicked, and all but the first instance fail to mask the content being scrolled (so it just runs up the screen).

[/INDENT]I’m at my wits end trying to work out why. I’m starting to think that it must be because Flash is broken, even though I know that there is a 99% chance the errors are mine, I just can’t work out what they could be, or why it works perfectly standalone but not imported.

I don’t think its a problem with loading the swf into the wrong level. I create a holder in the preloader to load the swf into, and the swf does not use absolute identifiers for the levels - everything is a child of the ‘app’ mc created with createEmptyMovieClip(‘app’,1);

Anyone experienced anything like this? Is there a workaround?

---

<div class="post-metadata">

**Author:** ![Soig](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Soig](https://forum.kirupa.com/u/Soig)\
**Post date:** [March 27, 2006, 9:17pm UTC](https://forum.kirupa.com/t/weird-loadclip-behaviour/183489/2 "2006-03-27T21:17:07Z")

</div>

I’m not sure about the scrollpane, but with the audio track I noticed you did not mention that you set the linkage. Did you?

---

<div class="post-metadata">

**Author:** ![Xoc](https://avatars.discourse-cdn.com/v4/letter/x/8e7dd6/32.png) [@Xoc](https://forum.kirupa.com/u/Xoc)\
**Post date:** [March 28, 2006, 12:51am UTC](https://forum.kirupa.com/t/weird-loadclip-behaviour/183489/3 "2006-03-28T00:51:33Z")

</div>

> [@Soig](#):
>
> I’m not sure about the scrollpane, but with the audio track I noticed you did not mention that you set the linkage. Did you?

Hi Soig and thanks for the reply. I’m still tearing my hair out over this one.

I did set the linkage in the sound… and it works for the main swf when I play it as a stand alone, just not when I load it with an external preloader.

---

<div class="post-metadata">

**Author:** ![Xoc](https://avatars.discourse-cdn.com/v4/letter/x/8e7dd6/32.png) [@Xoc](https://forum.kirupa.com/u/Xoc)\
**Post date:** [March 28, 2006, 4:28am UTC](https://forum.kirupa.com/t/weird-loadclip-behaviour/183489/4 "2006-03-28T04:28:25Z")

</div>

Believe it or not, it gets even weirder!

I managed to get he music to play by removing one track from the timeline and loading it with a loadSound(). It works fine as a stand alone, but when loaded with loadMovie, the sound can’t be heard unless, get this, the mouse rolls over a button! Any button. No relation to the sound whatsoever. Then the sound plays for about a second before stopping.

I think my fla must have become corrupted somehow. Is there a way to uncorrupt flas?

Someone, please help, or at least send the men in white coats to come and take me away.

btw - the sound works when the preloader is run from within the flash IDE, but the scrollpanes are still messed up. Ugh.
