I'm trying to make use of the dynamic FormItem example of a custom component from the Webster/McLeod book. The code does work, but I'm getting a warning.

The warning is:

"The function, visible, hides a function in ancestor class, 'mx.core.UIObject'

The code is:

class DynamicFormItem extends mx.containers.FormItem
{
public function set visible(visible:Boolean)
{
super.visible = visible;
if (!visible)
{
height=0;
}
else
{
height=undefined;
}
}
}

Is there something wrong with the way I've written the code, or should I ignore the warning?

- Tom








Reply via email to