hi,
Your code is:
if(event.newIndex==1)
{
var obj:test1 = VS1.getChildByName(“test1″) as test1;
obj.reload();
}
Comment: This code will give the compile time error told by u bcoz the
class ‘test1′ doesn’t have reload() method defined. Make sure that u
have reload() method defined in class ‘test1′. obj acts as a reference
to ‘test1′ bcoz u r passing “test1″ in getChildByName method.Regards, http://flexphpworld.wordpress.com/ On Mar 9, 9:48 am, pradeepflex <[email protected]> wrote: > Hi All, > > I have seen the forum "i need reload data in viewStack" ,In that > > 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 -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

