-
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
-
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?
-
the fact that you're using the same variable (win) in two seperate functions might be the problem
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|