No, directly it wont work. Try doing parentDocument.functionName(). Regards, Venkat www.venkatv.com
On Wed, Oct 22, 2008 at 7:48 PM, rjoshicool <[EMAIL PROTECTED]> wrote: > > i am directly accessing the function > > On Oct 21, 8:28 pm, "Venkat Viswanathan" <[EMAIL PROTECTED]> > wrote: > > Hi Rahul, > > > > Yes you are right. It doesn't make sense calling the .as file inside the > > component. But I think this is what Dinesh wanted to ask... What exact > code > > are you writing inside your component to call the method of the .as file? > > Are you trying to call the method directly... like methodName() or are > you > > doing something like parentDocument.methodName()? > > > > Regards, > > Venkatwww.venkatv.com > > > > On Tue, Oct 21, 2008 at 12:49 PM, rjoshicool <[EMAIL PROTECTED]> > wrote: > > > > > Hi, > > > > > That is the thing, I am not calling the .as file in the custom > > > component. But there are two reasons for not doing that - > > > 1) The component will ultimately become a part of the main.mxml, so do > > > i need to include it in the component also? > > > 2) If I include this .as file in the component also, then the same > > > ActionScript file get included in the Application twice, i.e., once > > > through the main.mxml and next time through the component. Won't this > > > increase the size of the swf? > > > > > Regards, > > > Rahul Joshi > > >http://www.rjdesignz.com > > > > > On Oct 21, 10:36 am, DineshKumar.T <[EMAIL PROTECTED]> wrote: > > > > Hi , > > > > > > How ur calling the actionscript file from your custom component... > > > > > > Regards, > > > > DineshKumar.T > > > > > > On Mon, Oct 20, 2008 at 11:16 PM, rjoshicool <[EMAIL PROTECTED]> > > > wrote: > > > > > > > Hi, > > > > > I tried making the methods public, but then also the problem > persists > > > > > > > On Oct 19, 4:39 pm, "Venkat Viswanathan" <[EMAIL PROTECTED]> > > > > > wrote: > > > > > > Hi, > > > > > > > > You wont be able to access private methods from anywhere else > other > > > than > > > > > the > > > > > > class itself. To access the methods from the components, make the > > > methods > > > > > > public. It will then work. > > > > > > > > Regards, > > > > > > Venkatwww.venkatv.com<http://venkatwww.venkatv.com/> > > > > > > > > On Sun, Oct 19, 2008 at 4:04 PM, rjoshicool < > [EMAIL PROTECTED]> > > > > > wrote: > > > > > > > > > methods are private and i have given the source of the as file > in > > > the > > > > > > > main mxml. > > > > > > > > > i have a form component in which i have applied validation > check on > > > > > > > the change event of text inputs. this change event calls a > > > validation > > > > > > > function in the as file. > > > > > > > > > On Oct 19, 2:00 pm, "Venkat Viswanathan" < > [EMAIL PROTECTED]> > > > > > > > wrote: > > > > > > > > Hi, > > > > > > > > > > Two questions... > > > > > > > > > > - Are the methods in the .as file public? > > > > > > > > - How are you trying to access the methods from the > component? It > > > > > should > > > > > > > > work using parentDocument. > > > > > > > > > > Regards, > > > > > > > > Venkat > > > > > > > > > > On Sat, Oct 18, 2008 at 4:08 PM, rjoshicool < > > > [EMAIL PROTECTED]> > > > > > > > wrote: > > > > > > > > > > > Hi, > > > > > > > > > I have a flex project with Flex Main Application mxml file, > one > > > > > > > > > component in mxml and an actionscript file. > > > > > > > > > I have specified the source of the as file in the main > > > application. > > > > > > > > > The components in the main application are able to access > the > > > > > > > > > functions in the as file but the components in custom > component > > > are > > > > > > > > > not. How can i access those functions in the as file from > the > > > flex > > > > > > > > > mxml component? > > > > --~--~---------~--~----~------------~-------~--~----~ 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_india@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---