Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Zoom effect for tileList Images.

    Hi Friends,

    I am displaying no. of images using TilIst. I want Zoom Effect when ever mouse rollOver on the images. Plz help me on that. Sample code is below.

    <mx:TileList id="comboTilelist" visible="false" rowCount="4" x="583" y="150" width="140" height="142" paddingRight="-2" paddingTop="-2" borderColor="white" itemClick="selectedPattern(event)" ItemrollOver="patternZoomIn(event)" ItemrollOut="patternZoomOut(event)">
    <mx:itemRenderer>
    <mx:Component>
    <mx:HBox>
    <mx:Image height="30" width="30" source="{data.source}" >
    </mx:HBox>
    </mx:component>
    </mx:itemRenderer>
    </tileList>

    <mx:Zoom id="zooming" zoomWidthTo="1" zoomHeightTo="1" zoomWidthFrom=".5" zoomHeightFrom=".5" />

    function patternZoomIn(event):void
    {
    zooming.end();
    zooming.play();
    }

    Plz help in this..

    This is urgent for me.

  • #2
    Senior Coder nikos101's Avatar
    Join Date
    Dec 2006
    Location
    London
    Posts
    1,005
    Thanks
    58
    Thanked 10 Times in 10 Posts
    Nice homework


  • #3
    wac
    wac is offline
    Regular Coder wac's Avatar
    Join Date
    Sep 2002
    Location
    Cary, North Carolina, USA
    Posts
    359
    Thanks
    2
    Thanked 0 Times in 0 Posts
    don't you need to set the target for the effect somewhere?
    You should be able to get the itemRenderer off the event and use that as the effect target
    Wayne Christian


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •