Discussion:
Combobox in external SWF
(too old to reply)
boyBacon
2006-02-02 16:32:08 UTC
Permalink
Hi All,

Bit of an odd one here... I have an swf that contains a combox along with a
load of other stuff and another swf which loads in the first one.
Initially my problem was that the combobox didn't work at all, however after
reading some threads here I realised that you need to add the combobox to the
library of the main swf as well in order for it to work.

Now the combobox opens, but when it does so the menu appears behind all other
elements.
When testing the swf to be loaded on its own, the combobox works perfectly.

Has anyone ever experienced (and corrected) this behaviour?
jonnybennett
2006-02-02 19:31:26 UTC
Permalink
Maybe it is because you are having to use a combo box from the main swf library
and not the the loaded swf library and it is therefore being attached to the
main swf at a lower depth than the loaded swf, therefore giving the appearence
of being below the items in the loaded swf... if you know what I mean??? .
Perhaps you could try fixing a depth of 1000? or this.getNextHighestDepth() to
the combo box?

I have also had a problems with loading swf files into a main swf. My problem
was that when you load external swf's, you can not dynamically attach more
movieClips to that swf, even if they are in the main timeline.
flatcoat99
2006-02-17 21:09:13 UTC
Permalink
I've had a long afternoon trying to get combo boxes to work, and this seems
like an appropriate thread to put this in. First, working on a form swf to fit
inside a masked panel in another movie, the comboBox wouldn't play ball (even
when tested outside the 'parent' swf'. Note, the form was spread on several
movieClip layers. The fix was to do a '_lockroot' on the ComboBox instance:

var comboB:ComboBox;
this.comboB.createClassObject... etc[
this.comboB._lockroot = true;

This worked, but then I found that none of my TextInput boxes in the same swf
would accept text when the swf was loaded into the parent movie. Putting
another comboBox in the parent movie library solved that. No idea why.

It's just another strategy if you're having comboBox trouble.
Saad Shams
2010-07-13 13:55:57 UTC
Permalink
I had three combo boxes in a column, and upon locking root of each combo box made my list appear behind other combo boxes, so instead I locked the root at the movie level and it worked fine.

Another post suggested to put combo box in the parent movie but since I was working with Banners using Polite load, it would have failed the purpose since the parent movie files size would go above 50KB.

function loadMovie(){
holder_mc.loadMovie("220x550.swf");
holder_mc._lockroot = true;


From http://www.developmentnow.com/g/69_2006_2_0_0_689570/Combobox-in-external-SWF.ht

Posted via DevelopmentNow.com Group
http://www.developmentnow.com/g/

Loading...