<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute" >
<mx:Script>
        <![CDATA[
                import mx.controls.Alert;
                public function onclick():void{
                        var temp:C_MyCmp=new C_MyCmp();
                        temp.myLabel.text='Some Text';
                        //I need to some function so that my creation complete 
function is
called or i can do  the above operation

                }
        ]]>
</mx:Script>
        <mx:Button x="143" y="60" label="Button" click="onclick()"/>

</mx:Application>



Compenent

<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"; width="400"
height="300" creationComplete="init()">
<mx:Script>
        <![CDATA[
                import mx.controls.Alert;
                public function init():void{
                        Alert.show('I m created')
                }
        ]]>
</mx:Script>
        <mx:Label x="51" y="112" text="Label" id="myLabel"/>

</mx:Canvas>


On Mar 6, 9:18 am, kalpesh mahida <[email protected]> wrote:
> can you post your code here?
>
> Kalpesh Mahida
>
> On Fri, Mar 6, 2009 at 12:04 AM, kaal <[email protected]> wrote:
>
> > Still not able to get
>
> > On Mar 4, 2:45 am, kaal <[email protected]> wrote:
> > > Hi ,
>
> > > I have a main application and a  custom component (c1), i am creating
> > > a object of c1
>
> > > var myObj:c1=new c1();
> > > when i am accessing the inner components of c1 i am having null
> > > pointer (without attaching it to main application)
> > > can somebody tell me how to access the properties of c1 without
> > > actually appending it to main application in short
> > > i need to call creation complete listener , i have tried initialze()
> > > it didnt work please help me
>
> > > Thanks
> > > Rahul kumar

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