thnx for your suggestion friends...

On Fri, Dec 19, 2008 at 9:24 PM, tweety <[email protected]> wrote:

>
> i suppose you want to call any method of that mxml file in your
> main.mxml on a button click ..if it is so then following is the thing
> which i can suggest you .
>
> make an instance of desired mxml in your main.mxml . IF don't know how
> then i suggest you to do like
>
> main.mxml
> ---------------
> <mx:Application ...blah blah>
> <script>
> import DesiredMXML;   // (if your Desired.MXML is inside src or if its
> inside com folder inside src then it will be import
> com.DesiredMXML; )
> var instance:DesiredMXML = new DesiredMXML( );
>
> private function callFunction():void {
>
> instance.anymethodInDesiredMXML;
> }
>
> </script>
>
> <mx:button id="btn" click="callFunction();"/>
> </mx:Application>
>
> this is just an idea ... other codes are omitted so it won't work as
> it is ... this is just an rough idea
>
> >
>

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

Reply via email to