Weird loadClip behaviour

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?

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.

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.