It’s just adding a slider control to rotate an image, based on the first example I saw, but the exercise of looking through the API docs and figuring out how to create an event handler helped me understand what was going on and gave me confidence about being able to learn on the fly.
See it here on the Fluffy QA Site: Flash Source
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Image id="shell" source="@Embed('C:/users/Aaron/Pictures/shell2.png')" height="100" top="225" left="208">
<mx:Script>
<![CDATA[
import mx.events.SliderEvent;
import mx.controls.Text;
private function sliderHandler(event:SliderEvent) :void {
degrees.text = event.value.toString();
shell.rotation = event.value;
}
]]>
</mx:Script>
<mx:filters>
<mx:DropShadowFilter />
</mx:filters>
</mx:Image>
<mx:HSlider x="25" y="42" id="slider" minimum="-360" maximum="360" snapInterval="10" tickInterval="360" change="sliderHandler(event)">
</mx:HSlider>
<mx:Label x="208" y="42" text="degrees:" id="lbl_degrees"/>
<mx:TextInput x="271" y="40" width="45" id="degrees"/>
<mx:Text x="25" y="10" text="Rotator" fontSize="16"/>
</mx:Application>
Now I’ll go read the manual.
