Great, works perfectly now!

Thanks Tobias, appreciate it.

Brian

On 10/4/06, tobiaspatton <[EMAIL PROTECTED] > wrote:

'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 flexcoders@yahoogroups.com, "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
>




--
Brian Dunphy __._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to