[flexcoders] Re: multiline button on button bar

2007-11-26 Thread myasandy2
Alex -
Thanks for the help. I am still stuck. I'm newbie at extending 
classes.

NavBar.as has this note:

/**
 *  @private
 *  The factory that generates the instances of the navigation 
items.
 *  It generates instances of ButtonBarButton for ButtonBar and
 *  ToggleButtonBar, of LinkButton for LinkBar, and of Tab for 
TabBar.
 *  This var is expected to be set before the navigation items 
are created;
 *  setting it does not re-create existing navigation items based 
on the
 *  new factory.
 */
mx_internal var navItemFactory:IFactory = new ClassFactory
(Button);

I get an error that I am attemption to access an inaccessable 
property navItemFactory. I also think I may be setting the var after 
the item is created.

Thanks for your assistance.
Sandy

--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 You would set navItemFactory to a class factory for your button.
 




RE: [flexcoders] Re: multiline button on button bar

2007-11-26 Thread Alex Harui
import mx.core.mx_internal;
use namespace mx_internal;
 
Note that this API is not officially supported.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of myasandy2
Sent: Monday, November 26, 2007 11:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: multiline button on button bar



Alex -
Thanks for the help. I am still stuck. I'm newbie at extending 
classes.

NavBar.as has this note:

/**
* @private
* The factory that generates the instances of the navigation 
items.
* It generates instances of ButtonBarButton for ButtonBar and
* ToggleButtonBar, of LinkButton for LinkBar, and of Tab for 
TabBar.
* This var is expected to be set before the navigation items 
are created;
* setting it does not re-create existing navigation items based 
on the
* new factory.
*/
mx_internal var navItemFactory:IFactory = new ClassFactory
(Button);

I get an error that I am attemption to access an inaccessable 
property navItemFactory. I also think I may be setting the var after 
the item is created.

Thanks for your assistance.
Sandy

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Alex Harui [EMAIL PROTECTED] wrote:

 You would set navItemFactory to a class factory for your button.
 



 


[flexcoders] Re: multiline button on button bar

2007-11-26 Thread myasandy2
You rock!! It works like a charm. Thanks for sharing your expertise.
Sandy

--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 import mx.core.mx_internal;
 use namespace mx_internal;
  
 Note that this API is not officially supported.