public function hello()
                          {
                                  var img:Image=HAI.getChildByName("nm") as 
Image;
                                  Alert.show(""+img.source);
                          }

<mx:Canvas id="HAI" width="200" height="200"
                                   backgroundColor="#ff00cc">
                        <mx:Image id="he" name="nm" 
source="assets/CalcLarge.png"
width="100">
                        </mx:Image>
                </mx:Canvas>
                <mx:Button   click="hello()">
                </mx:Button>


On Mar 2, 2:55 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.

Reply via email to