Thanks to all ppl that help me , i solved my problem, with the
solution FlexiSush, but also with ur help. NIRMAL SHING, thanks also
=) and ranjan for remote help and coding with me.

Greetings =)

On 8 feb, 06:11, NIRMAL SINGH <nirmal...@gmail.com> wrote:
> Hi Shorty,
>                      You are getting error code 1118 of implicit
> coercion because you are trying to convert DisplayObject type to
> verPrendas directly use "as" operater to get rid of the error as shown
> below ..
>
>         private function stackHandle(event:IndexChangedEvent):void
>         {
>            var obj : verPrendas =
> viewstack1.getChildByName("verPrendas") as verPrendas ;
>            obj.reload();
>         }
>
> Thanks
> Nirmal Singh
>
> On Feb 7, 11:50 pm, FlexiSush <sushant...@gmail.com> wrote:
>
> > Hey,
> >      u can refer my blog for the 
> > solutionhttp://flexphpworld.wordpress.com/2010/02/07/viewstack-example-with-c...
>
> > On Feb 5, 11:47 am, shorty <shorty.a...@gmail.com> wrote:
>
> > > Hi guys, im new in this group, im from chile, then i speak spanish
> > > native, my english is not good.
>
> > > Well, my question: i have a viewStack and with two contents, one for
> > > add items and other for show items in a datagrid, then when i add a
> > > item and i change contents for see new items, my datagrid it's same
> > > don't refresh or reload data, then i read that i can make a function
> > > for each time that i change of container, this function reload data.
> > > but doesn't work.
>
> > > Below  i let u my code from my viewstack:
>
> > > <mx:ViewStack creationPolicy="all" selectedIndex="0"
> > > change="stackHandle(event)" x="21.5" y="10" id="viewstack1"
> > > width="716.5" height="518">
> > >                   <com:verPrendas id="verPrendas" label="Mi Ropa"
> > >                                   height="518" width="714"/>
>
> > >                   <com:crearPrendas id="agregarPrenda"
> > > label="Agregar"
> > >                                   height="518" width="714"/>
>
> > > </mx:ViewStack>
>
> > > and here my function that assume it will reload my data.
>
> > >          private function stackHandle(event:IndexChangedEvent):void{
>
> > >             var obj:Object = viewstack1.getChildAt(event.newIndex);
> > >             obj.reload();
> > >          }
>
> > > I need u help, other function or any other idea. i saw a theme similar
> > > in this group, but i can't understand.
>
> > > Sorry for my english
>
> > > greetings
>
> > > i will be waiting

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_in...@googlegroups.com.
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to