Groovy
04-15-2005, 11:10 AM
Hello everyone,
I've got a problem!
Let me explain it to you, I've got a scrollpane. I'm creating objects (comboboxes) dynamically on that scrollpane by clicking a button. Whenever the button is clicked a new combobox shows up below the lowest. After a few clicks the lowest combobox is shown below the scrollpane!
I've seen many solutions on the web but zero worked for me :(
onClipEvent(load)
{
// More code left out here
// AddButton that makes the combobox within the scrollpane
_root.addButton.onPress = function() : Void
{
_root.conditionScroll.createObject("ComboBox","fieldBox"+_global.bar, _global.objectDepth, {_width:_root.fieldBox._width, _y:(_global.bar+1)*30, _x:_root.fieldBox._x});
_root.conditionScroll["fieldBox"+_global.bar].dataProvider = _root.fieldBox.dataProvider;
_root.conditionScroll["fieldBox"+_global.bar].text = _root.fieldBox.text;
_global.objectDepth--;
}
}
This code is on the scrollpane. Is that the wrong place? It is creating the boxes...
I've got a problem!
Let me explain it to you, I've got a scrollpane. I'm creating objects (comboboxes) dynamically on that scrollpane by clicking a button. Whenever the button is clicked a new combobox shows up below the lowest. After a few clicks the lowest combobox is shown below the scrollpane!
I've seen many solutions on the web but zero worked for me :(
onClipEvent(load)
{
// More code left out here
// AddButton that makes the combobox within the scrollpane
_root.addButton.onPress = function() : Void
{
_root.conditionScroll.createObject("ComboBox","fieldBox"+_global.bar, _global.objectDepth, {_width:_root.fieldBox._width, _y:(_global.bar+1)*30, _x:_root.fieldBox._x});
_root.conditionScroll["fieldBox"+_global.bar].dataProvider = _root.fieldBox.dataProvider;
_root.conditionScroll["fieldBox"+_global.bar].text = _root.fieldBox.text;
_global.objectDepth--;
}
}
This code is on the scrollpane. Is that the wrong place? It is creating the boxes...