Not really sure what that means. But I'll explain my situation 
better...

I have multiple <mx:Image> tags whose size is 16x16. I also have a 
larger image, say 64x64, which is a tiled array of 16x16 icons. I'd 
like to show a different piece of the 64x64 image in each <mx:Image>.


--- In [email protected], "flexawesome" <[EMAIL PROTECTED]> 
wrote:
>
> are you able to use the mask?
> 
> --- In [email protected], "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>
> >
>


Reply via email to