07
Jun
2008

Combo Box in child swf doesn’t work (flash as2)

Well after struggling for hours on this bug i thought it would be nice to document it here …

maybe i can save some time from other coders.

welp, the problem is that the combo box , in the child swf (loaded dynamicly thru loadMovie or any other method)

is visible and pressed, but it won’t open, and won’t work.

if you run the child swf individually it will work perfectly  , but when you combine them both — > NADA!

well, any guesses ? ……

the thing is that for some reason, you need to have a copy of the combo box component in your parent swf in order for it to work in the child swf , strange solution, but it works~!

so in case someone is looking for the answer for this annoying bug — > thats a simple solution for it,

i’d prefer adobe to do some bug fixing to them components …

(i havn’t checked for the bug in as3 compiled clips, maybe they did fix it in avm1 engine ..)

thats all for now .

http://www.adylevy.com/wp-content/plugins/sociofluid/images/digg_32.png http://www.adylevy.com/wp-content/plugins/sociofluid/images/stumbleupon_32.png http://www.adylevy.com/wp-content/plugins/sociofluid/images/delicious_32.png http://www.adylevy.com/wp-content/plugins/sociofluid/images/furl_32.png http://www.adylevy.com/wp-content/plugins/sociofluid/images/technorati_32.png http://www.adylevy.com/wp-content/plugins/sociofluid/images/google_32.png http://www.adylevy.com/wp-content/plugins/sociofluid/images/myspace_32.png http://www.adylevy.com/wp-content/plugins/sociofluid/images/facebook_32.png http://www.adylevy.com/wp-content/plugins/sociofluid/images/yahoobuzz_32.png http://www.adylevy.com/wp-content/plugins/sociofluid/images/twitter_32.png http://www.adylevy.com/wp-content/plugins/sociofluid/images/meneame_32.png
Posted in as2, flash issues

5 comments »

  1. saru said,
    June 18, 2008 @ 3:15 pm

    i have similar problem. did u sort it out>

  2. admin said,
    June 21, 2008 @ 10:18 pm

    yes,
    as i wrote above you just need to put the combo box in the parent swf as well, and then it will work….

    strange as it seems, it works.

  3. Ruben said,
    September 15, 2008 @ 1:27 pm

    The problem with that solution is that it will increase the size of the root swf. Just put the combobox inside a movieclip and in the first frame write this._lockroot = true;

  4. Eunice said,
    November 4, 2008 @ 10:27 pm

    thank you, that fixed my problem

  5. Kyle Lau said,
    May 11, 2009 @ 4:07 pm

    I think it is just like scripting…

    you got to have the combo box in the root’s lib so that the function of combo box is included or something like the script that starts with import mx.somehthing.anything.*; to include the combo box function.

    i just included the combo in my root’ lib and it is working fine.

Leave a Comment