You should be able to examine our source code.  It is included in Flex
2.0.

 

I don't know why you would add createAccImpl.  The key to opening and
using namespaces is in this pattern:

 

import mx.core.mx_internal;

use namespace mx_internal;

 

In theory you shouldn't need to do anything else to your packages.

 

-Alex

________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of dmiramontesval
Sent: Tuesday, November 28, 2006 7:39 AM
To: [email protected]
Subject: [flexcomponents] Re: Modifying the TabBar control

 

Well i tried using the mx_internal and it was marking a compiling
error about the internal_mx so i included the following:

mx_internal static var createAccessibilityImplementation:Function;

After that it was complaining about the package so i removed my named
package and then it worked, but that is not useful since i need it
inside my named package.

If you have a working example could you please show me? 

I need to use a custom Button for the TabBar because i need those
buttons to listen to a custom event i am dispatching.

--- In [email protected]
<mailto:flexcomponents%40yahoogroups.com> , "Alex Harui" <[EMAIL PROTECTED]>
wrote:
>
> That doesn't sound right. All of our components are in named packages
> and use mx_internal, so that shouldn't be the limiting factor.
> 
> 
> 
> You should be able to get this to work.
> 
> 
> 
> One question though: what is it about the tab button that you want to
> change?
> 
> 
> 
> ________________________________
> 
> From: [email protected]
<mailto:flexcomponents%40yahoogroups.com> 
> [mailto:[email protected]
<mailto:flexcomponents%40yahoogroups.com> ] On Behalf Of dmiramontesval
> Sent: Monday, November 27, 2006 7:42 AM
> To: [email protected]
<mailto:flexcomponents%40yahoogroups.com> 
> Subject: [flexcomponents] Re: Modifying the TabBar control
> 
> 
> 
> Sigh, well i guess i will have to do something else, i hope that in
> the future this can be possible.
> 
> By the way, i tried the navItemFactory but it gives me trouble because
> if i use the mx_internal namespace i can't have my custom tabBar in a
> named package, this obviously is wrong because i need that component
> inside on of my library packages.
> 
> Thanks anyways
> 
> --- In [email protected]
<mailto:flexcomponents%40yahoogroups.com> 
> <mailto:flexcomponents%40yahoogroups.com> , "Alex Harui" <aharui@>
> wrote:
> >
> > I am sorry to report that there is no official way to do this. The
> > unofficial way is to set the navItemFactory property in the
> mx_internal
> > namespace to an IFactory for your button. Just keep in mind that the
> > API in this area may change in a future release and break your app.
> > 
> > 
> > 
> > -Alex
> > 
> > 
> > 
> > ________________________________
> > 
> > From: [email protected]
<mailto:flexcomponents%40yahoogroups.com> 
> <mailto:flexcomponents%40yahoogroups.com> 
> > [mailto:[email protected]
<mailto:flexcomponents%40yahoogroups.com> 
> <mailto:flexcomponents%40yahoogroups.com> ] On Behalf Of
dmiramontesval
> > Sent: Friday, November 24, 2006 7:40 AM
> > To: [email protected]
<mailto:flexcomponents%40yahoogroups.com> 
> <mailto:flexcomponents%40yahoogroups.com> 
> > Subject: [flexcomponents] Re: Modifying the TabBar control
> > 
> > 
> > 
> > Thanks but it is not what i am looking for, i want to use a custom
> > Button which has some extra functionality that the default Flex
button
> > doesn't have.
> > 
> > Any ideas? anyone? please
> > 
> > --- In [email protected]
<mailto:flexcomponents%40yahoogroups.com> 
> <mailto:flexcomponents%40yahoogroups.com> 
> > <mailto:flexcomponents%40yahoogroups.com> , "Rajesh Bhadra"
> > <rbhadra@>
> > wrote:
> > >
> > > Hi,
> > > I can tell you what i have done with my requirement.I had applied
> > skin to
> > > the TabBar using the Style(CSS) tag to the TabBar.Following is the
> > snippet
> > > you have to put in the Style tag for the TabBar component..Hope
this
> > works
> > > for you.
> > > Any image can be shown instead of the normal Button looking
> > TabBar.You can
> > > draw the image in photoshop etc and give its path inside the Style
> > tag.
> > > Snippet..
> > > 
> > > 
> > > TabBar
> > > {
> > > upSkin : Embed('myImagelooking like tabbar.jpg/png/bmp');
> > > }
> > > 
> > > You can embed any image over there but i wud suggest you to use
PNG
> > file.
> > > 
> > > Regards,
> > > Rajesh Bhadra
> > > Magnet Technologies Pvt Ltd.
> > > 
> > > 
> > > 
> > > 
> > > On 11/23/06, dmiramontesval <dmiramontesval@> wrote:
> > > >
> > > > Hello i am trying to extend the TabBar control so it would use a
> > > > custom Button class that i did, so i wonder how to do this.
> > > > Accordion components for example, have a headerRenderer property
> > which
> > > > is the Button class to use, but the TabBar doesn't seem to have
> this
> > > > property.
> > > > Any ideas on how to do this? tell the TabBar which Button class
to
> > use
> > > > for its tabs?
> > > >
> > > > Thanks
> > > >
> > > > Diego
> > > >
> > > > 
> > > >
> > >
> >
>

 

Reply via email to