static function bar():Number
{
return mx.example.A.foo();
}
static var z = B.bar();
// Dependency
static var ADependency = mx.example.A;
}
The component is instantiated properly but does not show up (#2)
Verify that the
_measuredPreferredWidth
nonzero. If they are zero, ensure that you implemented the
Sometimes you have to ensure that subobjects are created in order to get the correct
measurements.
You can also check the values of the
code might have set those values to 0. If so, set a breakpoint in the setters for the
preferredWidth
You can also verify that the
property is an internal property used by Flash Player. If
_visible
_visible=false
or
measure()
layoutChildren()
The system does not call the
must call the
invalidate()
their correct size during the layout process.
The component is instantiated properly but does not show up (#3)
It is possible that there is another class or SWC file that overrides your custom class or the
symbols used in your component. Check the ActionScript classes and SWC files in the
flex_app_root/WEB-INF/flex/user_classes directory to ensure that there are no naming conflicts.
78
Chapter 3: Creating Advanced Components in Flash MX 2004
preferredWidth
, and
preferredHeight
property and the
visible
, ensure that your component called the
methods.
invalidate()
method at least once, because their layout changes as they are given
and
_measuredPreferredHeight
measure()
and
preferredHeight
properties to see what is setting them.
_visible
invalidate()
method unless you explicitly do so. All components
properties are
method correctly.
properties. Other
width
property are set to
true
and
visible=true
method in its
,
,
height
. The
Need help?
Do you have a question about the FLEX - DEVELOPING COMPONENTS AND THEMES and is the answer not in the manual?
Questions and answers