4/6/2011 8:27:29 AM
Title:
Flex zoom in and zoom out
Dear All , Is there any way for flex applications to respond for browser zoom in and zoom out ( control ++, control --)?
I have the simple flex application below with one text field .
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Label text="Please expand " fontSize="36" color="#F50437"/>
</mx:Application>
If I click on browser control ++ for zoom in , is there any way the text will grow bigger just like normal websites .
Thanks for your help
Regards
Kiran
4/6/2011 9:54:22 AM
you can create a keypress listener and on Ctrl+ you can increase the size of text and on Ctril- decrease the font size
4/7/2011 2:25:28 AM
Thanks Andrid for your response . Could you please let me know how to get the browser zoom level to zoom the size ?
Regards
Kiran
4/10/2011 5:57:44 AM
when we click on browser the keys control is with browser and flash does not listen to the keys . So you cannot get event when zoom keys are pressed. Note that this behavior is different with different browsers. As far as remember firefox allows flash player to listen key press events but IE does not.