At 02:04 AM 3/10/2005, you wrote:
It might need to be

public function set visible(v:Boolean) : Void
{
super.visible = v;
}

Also I think you need to make sure to also include a getter that returns super.visible to make sure the full override is successful.

Public function get visible() : Boolean
{
Return super.visible;
}

Matt


Matt - that was it. Thanks!

- Tom


---------- From: Tom Fitzpatrick [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 09, 2005 1:14 PM To: [email protected] Subject: [flexcoders] Warning from custom component

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







Yahoo! Groups Sponsor
ADVERTISEMENT
<http://us.ard.yahoo.com/SIG=1290oq9no/M=298184.6018725.7038619.3001176/D=groups/S=1705007207:HM/EXP=1110524692/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075>
click here

[]



----------
Yahoo! Groups Links
* To visit your group on the web, go to:
* <http://groups.yahoo.com/group/flexcoders/>http://groups.yahoo.com/group/flexcoders/


*
* To unsubscribe from this group, send an email to:
* <mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]


*
* Your use of Yahoo! Groups is subject to the <http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.








Reply via email to