A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: comboBox bug, urgent help need!!!

  1. #1
    Junior Member
    Join Date
    Aug 2000
    Posts
    21
    here is clear example

    new_combo = function (){

    _root.createEmptyMovieClip("win",1);
    _root.win._x = random (200);
    _root.win._y = random (200);

    _root.win.attachMovie("FComboBoxSymbol","lis", 1);

    }
    new_list = function (){

    _root.createEmptyMovieClip("win",1);
    _root.win._x = random (200);
    _root.win._y = random (200);

    _root.win.attachMovie("FListBoxSymbol","lis", 1);
    }

    new_list function works fine, but new_combo function creates new combo only once per two calls.

    when we call new_list just after calling new_combo it also fails.

    more than this if you play whith the example u'll find out that movie with combo inside even cudn't be deleted.

    sample swf - http://www.time-line.kz/test/combo_bug.swf
    zipped fla - http://www.time-line.kz/test/combo_bug.zip




  2. #2
    Junior Member
    Join Date
    Aug 2000
    Posts
    21
    found out that that the code below works fine.

    var a = _root.createEmptyMovieClip("win",1);
    a._x = random (200);
    a._y = random (200);
    a.attachMovie("FComboBoxSymbol","lis", 1);

    but what is the reason?


  3. #3
    Senior Member
    Join Date
    Jun 2002
    Posts
    145
    the fact that you're using the same variable (win) in two seperate functions might be the problem

  4. #4
    Junior Member
    Join Date
    Aug 2000
    Posts
    21
    dave toland.com - why u didn't try to check what u say?
    the fact that i'm using the same var is not important at all


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center