title: flex: 1120 access to undefined property
body: <p>I was trying to place some simple effects on an image using HBox using Hslider/Checkbox.</p>
  
  <p>I am unable to incorporate the required effects on the image.I an getting the errors 
  "120 access to undefined property" ....poinying to "HSlider/change".</p>
  
  <p>What can be the error/solution to this?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"&gt;
        &lt;mx:HBox top="10" left="10"&gt;
         &lt;mx:HSlider top="-10" left="100" value="-10" toolTip="Rotation" 
               change="myImg.rotation=event.currentTarget"    
                              liveDragging="true"&gt;
         &lt;/mx:HSlider&gt;
        &lt;/mx:HBox&gt;
        &lt;mx:CheckBox label="Visible" change="myImg.visible=event.currentTarget.selected"          
            selected="true"/&gt;
        &lt;mx:Image name="myImg" source="file:///C|/Users/terry/Desktop/test/myImage.jpg" 
                         height="100" top="60" left="30" rotation="-10"&gt;
             &lt;mx:filters&gt;
               &lt;mx:DropShadowFilter /&gt;
          &lt;/mx:filters&gt;
          &lt;/mx:Image&gt;
      &lt;/mx:Application&gt;
  </code></pre>
  
  <p>further in the "Hslider/Change" attribute it should be</p>
  
  <pre><code>"myImg.rotation=event.currentTarget.valueOf()" or 
  "myImg.rotation=event.currentTarget.value"
  </code></pre>
  
  <p>Thanks in advance?</p>