Hi,
I am able to get the zoom in and zoom out functionality by declaring a Zoom
variable and setting the zoomHeightTo and ZoomWidthto varaibles.But the
problem is the custom component BorderContainer is also changing its
position.Could anyone tell me how to stop the container from changing its
position
Below is the code I used:
*
//function for mouseover
*
*public* *function* onRollOver(event:MouseEvent):*void*{
zoom_var.zoomHeightTo=2;
zoom_var.zoomWidthTo=1.5;
*this*.setStyle(*"rollOverEffect"*,zoom_var);
*//this.height=this.height+50;
*
*//this.width=this.width+50;
*
}
*public* *function* onRollOut(event:MouseEvent):*void*{
zoom_var.zoomHeightTo=1;
zoom_var.zoomWidthTo=1;
*this*.setStyle(*"rollOutEffect"*,zoom_var);
*//this.height=this.height-50;
*
*//this.width=this.width-50;
*
}
Thanks,
Madhavi
On Wed, Mar 23, 2011 at 6:53 PM, madhavi chinni <[email protected]
> wrote:
> Hi,
>
> I have a custom component whose root is the Border Container.I want to
> add a zoom functionality to the Border Container on a mousrOver or
> rollOver event at run time.Since there is no fx:Declaration tag I cant
> declare zoomOut or zoomIn
> Can anyone please tell me how can I do it?.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.