PDA

View Full Version : Help with combo box


Noviak
06-27-2007, 10:38 PM
Hello,

I am loading an external swf into a main swf. I have two combo boxes in the external swf. When I test the external swf. The combo boxes work fine but when the external swf is loaded into the main swf and I test the main swf, the combo boxes will not work.

Please help?

CyanBlue
06-27-2007, 10:55 PM
Howdy and Welcome... :)

Open up the main FLA file... Drag the combo box you are using onto the stage... and remove it by pressing the delete key... That'll save the component into the library... Publish the main.swf file and try loading it agiain...

Moving this to the Components forum... ;)

Noviak
06-27-2007, 11:18 PM
Hello, Thank you so much for your response. I am new to the forum. I apologize for posting in the wrong place. Thanks again.

Noviak
06-27-2007, 11:30 PM
I tried dragging the component from the external swf (6.swf) onto the main swf. stage and then deleted it. Now when I test it the combo boxes are still not working however there was a slight change in one of the combo boxes. the first combo box (state_cb) is just a blank combo box where as before it showed the default value but you could not access the rest of the list. The second combo box (country_cb) there was no change. The default value shows but you cannot access the rest of the list.

LOLFlash
06-27-2007, 11:35 PM
please make two fla files and attach to post

make sure you have all your components in first frame

Noviak
06-27-2007, 11:44 PM
I am not understanding. The combo boxes are within a form (mc_contact form)

LOLFlash
06-27-2007, 11:57 PM
I never did framed movie but I noticed ppl have problems with components if they not in first frame

extend your mc_contact to first frame and make it invisible and in frame what you need it set visible.

hope it helps...

silverfish
07-05-2007, 04:14 AM
please make two fla files and attach to post

make sure you have all your components in first frame

I'm having the exact same problem as Noviak, and I've created a stripped down demo to illustrate. The forum won't let me attach fla's directly, so I've attached a zip (with fla's and swf's). external.swf, when run by itself, does just what we want, but when loaded into main.swf the list items don't display. Note also that
cb_box.dropdown traces fine from external.swf but is undefined when loaded into main.swf. One thing I didn't think to include in the demo is that if you trace cw_box.length it shows the correct value either way.

Anyone have any ideas on this? Is it a Flash bug? Anyone know if it's been fixed in Flash 9?

LOLFlash
07-05-2007, 05:30 AM
in your main movie in first frame drop the combobox somewhere on stage or out of stage and test it'll give you idea.

silverfish
07-05-2007, 05:49 AM
doh! Now I get it. Thanks LOLFlash. It wasn't clear from the earlier responses, but now I understand: you must have ComboBox in the library of your root swf in order for ComboBoxes in child mc's to work properly. Thanks also to CyanBlue. BTW, is this subtlety documented?

seanlail
07-05-2007, 05:30 PM
I only have one swf and I am getting the blank text.
Component is obviously in the library.

Any idea of how this could be fixed?

silverfish
07-05-2007, 05:44 PM
Others helped me, so I'd like to try to help you. I have to run off to a meeting now, but if you attach your fla I'll have a look later.

LOLFlash
07-05-2007, 06:02 PM
all depends of your Flash version. But if you put your component in firs frame and leave it, it will work fine. Otherwise in flash publish settings you have to set frame for exporting classes and in library uncheck export class in first frame