If you have a 64x64 image, you can set up a 16x16 mask: <mx:Image width='64' height='64' mask='{imageMask}' /> <mx:Canvas id='imageMask' width='16' height='16' x='0' y='0' />
Then all you'd need to do is animate the canvas to relocate when you need it to. Seems simple enough.. haha :D You could also "reverse" it by moving the image rather than the mask. --- In flexcoders@yahoogroups.com, "flexawesome" <[EMAIL PROTECTED]> wrote: > > are you able to use the mask? > > --- In flexcoders@yahoogroups.com, "whatabrain" <junk1@> wrote: > > > > Let's say I have a 64x64 image, but I only want to display one > 16x16 > > section of it. How would I do this? I tried playing with > > img.transform.pixelBounds.offset(), but it didn't do anything. > > > > > > <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" > > implements="mx.controls.listClasses.IDropInListItemRenderer"> > > > > <mx:Script> > > <![CDATA[ > > override public function set data(value:Object):void > > { > > super.data = value; > > img.transform.pixelBounds.offset(6,6); > > } > > > > // Implement IDropInListItemRenderer > > private var m_listData:BaseListData; > > public function get listData():BaseListData {return m_listData;} > > public function set listData(value:BaseListData):void {m_listData = > > value;} > > ]]> > > </mx:Script> > > > > <mx:Image height="16" width="16" source="/images/a.gif" id="img"/> > > > > </mx:VBox> > > >