'states' is an attribute of your custom component, and should be
prefixed with the namespace in which your component resides.
Try this:
<sl:StatsWidget>
<sl:states>
....
</sl:states>
</sl:StatsWidget>
Tobias.
--- In [email protected], "Brian Dunphy" <[EMAIL PROTECTED]>
wrote:
>
> I'm having trouble with mx related packages when they are inside a
> custom component.
>
> My structure is as follows:
>
> - I have a component, 'Widget', which is an ActionScript class that
> extends the TitleWindow container (it just adds a few custom
> show/hide/close methods, it doesn't override any default
> functionality)
>
> - I have a 'StatsWidget' in MXML that is just a few charts inside a
> <sl:Widget></sl:Widget> as a custom component (xmlns:sl is defined
> properly)
>
> - I have declared xmlns:mx properly so that I can use the mx
packages
>
> - All mx related packages compile and work inside the 'StatsWidget'
> component with the exception of <mx:states> which is giving me the
> following error message: 'Could not resolve <mx:states> to a
component
> implementation'
>
> I suspect I am missing something -- perhaps my states should be
used
> at the parent level (the 'Widget' class)?
>
> Any ideas would be appreciated.
>
> Thanks for your time,
>
> Brian
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/