Hi All,

I have seen shorty findout the solution  reload the viewstack component
data...

Same way i m using the code like this...

    if(event.newIndex==1){
                    /* var test1Obj:test1 = new test1();
                    getDocumentChildrens(test1Obj,"test1");
                    Alert.show("execute"); */

                    var obj:test1 = VS1.getChildByName("test1") as test1;
                    obj.reload();
                }
for me i got build error like..
1061: Call to a possibly undefined method reload through a reference with
static type test1.

Please let me know what i did wrong in that
Thanks for any urgent help...

Regards,
Pradeep

On Tue, Feb 9, 2010 at 11:37 AM, shorty <shorty.a...@gmail.com> wrote:

> I solved my problem =)
>
> Thanks all pepople and also recommend post from FLEXISUSH is very util
> =)
>
>
> See soon and thanks again
>
> 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<flex_india%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>

-- 
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