Hi Tim,
    Thanks.....I got it working....

Thanks & Regards
  Manju
--- In [email protected], "Tim Hoff" <timh...@...> wrote:
>
> 
> Looks like you may be thinking about a little backwards.  First add this
> method to the script in contentpane:
> 
> import mx.events.ItemClickEvent;
> 
> public function handleBreadCrumbItemClick( event:ItemClickEvent ):void
> {
>       // do something
> }
> 
> Then Main.mxml would have:
> 
> <mx:Canvas>
>       <mx:LinkBar itemClick="cp.handleBreadCrumbItemClick(event)"/>
> </mx:Canvas>
> 
> <mycomponents:contentpane id="cp"/>
> 
> -TH
> 
> --- In [email protected], "n_manjunatha" <nmanjunatha@>
> wrote:
> >
> > Hi Tim
> > Thanks for your time and reply. Yes you are right, I am not using MVC
> Framework.
> >
> > I tried this
> > my main.mxml is like this...of course not with exact format of flex...
> > script
> > {
> > breadcrumclicked(event:Event) which comes canvas below
> > }
> > <mx:canvas.....
> > <mx:linkbar click=breadcrumclicked(event)/>
> > </mx:canvas>
> > <mycomponents:contentpane>
> > <mycomponents:informationpane>
> >
> > I guess i cant send the public method breadcrumclicked(event) in
> > my contentpane.... bcoz i cant give something like this
> > <mycomponents:contentpane
> breadcrumclicked="breadcrumlistenerfunction(event)"/>
> >
> > i tried this it doesnt work..it says cant resolve attribute
> breadcrumclicked for contentpane.........
> >
> > Thanks
> >
> >
> > --- In [email protected], "Tim Hoff" TimHoff@ wrote:
> > >
> > >
> > > Hi,
> > >
> > > If you're not using an MVC framework, an easy way is to create a
> public
> > > method in contentpane.mxml, that will set the tree selection. On
> > > breadcrumb click, pass the event:
> contentpane.myPublicSelectionMethod(
> > > event ).
> > >
> > > -TH
> > >
> >
>


Reply via email to