PDA

View Full Version : Problems with SWFs loaded into SWF


doop
03-03-2007, 09:59 PM
Hi there --

I'm somewhat new to Flash, so forgive if this is something I should know!

I'm creating my first Flash design that's loading SWFs into the main SWF. I'm loading the SWFs into empty movie clips, which are in turn inside movie clips that display the SWF in a mask (see below), and those clips are in turn part of another movie clip that displays the SWFs on the main timeline.

The SWFs all display and the buttons all work, but I've discovered a number of quirks with them. I'm wondering if these can be controlled, if there's something I'm doing that's causing these things to happen:

1) The backgrounds are transparent (solved by creating a graphic box with the color I want on the bottom layer)

2) All the object on the pasteboard of the original FLA show up in the loaded SWF (that's why I'm using the mask)

3) Loaded SWFs take on the frame rate of the main SWF (redesigned the main SWFs frame rate to match loaded SWFs)

4) Dynamic and input text boxes don't appear at all (haven't been able to figure a workaround for this one); also, text that is set to "device fonts" rather than "anti-alias" don't appear

5) Embedded WAV audio file doesn't play -- this is a sound file that's not on a layer but loaded from the library; in another file, where I'm loading an external MP3 file, the audio plays fine --
also, I have these two players next to each other, on separate layers, in the same movie clip, and oddly, the stop button on one of the players stops the sound on the opposite player!

Can anyone shed any light on these issues? Thanks!

-- Doop

doop
03-03-2007, 10:31 PM
Well, I figured something out -- when I load the SWFs into the main timeline, instead of inside movie clips, the dynamic and input text, and "device font" text all works fine. The nesting doesn't seem to have an affect, either -- in other words, loading them inside just one clip (rather than a clip within a clip) didn't make the text appear. It seems having it within a clip at all is causing the problem.

Backgrounds are still transparent, and you still need to mask. Not sure about frame rate, because I already changed that. Also, the embedded WAV file still doesn't work, even on main timeline.

Any ideas? Taking these SWFs out of the movie clips sort of defeats the purpose, because I wanted them appear in transitioned opening and closing masks, controlled by buttons (this is a portfolio of my work).

Thanks!

-- Doop