Ok Thanks Its Working;

On Wed, Mar 2, 2011 at 3:44 PM, kavimani shanmugam
<[email protected]>wrote:

> Hi praveen Kumar,
> *
> *
> try this
>
>  public function hello()
>  {
>    var obj:Image= HAI.getChildByName("he") as Image;
>    Alert.show(""+obj.source);
>  }
> *
> *
> *
> *
> *
> *---------------
> regards
> kavimani.s
>
>
>
> On Wed, Mar 2, 2011 at 3:25 PM, praveen Kumar 
> <[email protected]>wrote:
>
>> Hai Friends ;
>>
>> When I Click The Button ; Am Unable Get Soure Image;
>>
>> I want To  get  Image Source Value Only through   parent   Container;
>>
>> How??????
>>
>> Give Me An Idea ; About it
>>
>>
>>
>>
>> <?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 hello()
>>                {
>>                                Alert.show(""+HAI.he.source);
>>                }
>>
>>
>>        ]]>
>>
>> </mx:Script>
>>
>> <mx:Canvas id="HAI" width="200" height="200"
>> backgroundColor="#ff00cc">
>>
>>        <mx:Image id="he" source="123.jpg">
>>
>>   </mx:Image>
>>
>>
>>        </mx:Canvas>
>>
>>        <mx:Button   click="hello()">
>>
>>        </mx:Button>
>>
>> --
>> 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.
>>
>>
>  --
> 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.
>

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